Vitaly Buka | ece713e | 2015-12-09 10:59:33 -0800 | [diff] [blame] | 1 | // Copyright 2015 The Weave 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. |
| 4 | |
| 5 | #ifndef LIBWEAVE_SRC_TEST_MOCK_CLOCK_H_ |
| 6 | #define LIBWEAVE_SRC_TEST_MOCK_CLOCK_H_ |
| 7 | |
| 8 | #include <base/time/clock.h> |
| 9 | #include <gmock/gmock.h> |
| 10 | |
| 11 | namespace weave { |
| 12 | namespace test { |
| 13 | |
| 14 | class MockClock : public base::Clock { |
| 15 | public: |
| 16 | MOCK_METHOD0(Now, base::Time()); |
| 17 | }; |
| 18 | |
| 19 | } // namespace test |
| 20 | } // namespace weave |
| 21 | |
| 22 | #endif // LIBWEAVE_SRC_TEST_MOCK_CLOCK_H_ |