Files.app: Dispatch 'drive-connection-changed' event on initialization of VolumeManag...
[chromium-blink-merge.git] / extensions / browser / extension_throttle_test_support.h
bloba6fde034924ba8b05b2898cb68f27e67dfad16b0
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_BROWSER_EXTENSION_THROTTLE_TEST_SUPPORT_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_THROTTLE_TEST_SUPPORT_H_
8 #include <string>
10 #include "base/macros.h"
11 #include "base/time/tick_clock.h"
12 #include "base/time/time.h"
13 #include "net/base/backoff_entry.h"
15 namespace extensions {
17 class TestTickClock : public base::TickClock {
18 public:
19 TestTickClock();
20 explicit TestTickClock(base::TimeTicks now);
21 ~TestTickClock() override;
23 base::TimeTicks NowTicks() override;
24 void set_now(base::TimeTicks now) { now_ticks_ = now; }
26 private:
27 base::TimeTicks now_ticks_;
28 DISALLOW_COPY_AND_ASSIGN(TestTickClock);
31 } // namespace extensions
33 #endif // EXTENSIONS_BROWSER_EXTENSION_THROTTLE_TEST_SUPPORT_H_