Paul Stewart | e692740 | 2012-01-23 16:11:30 -0800 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 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 SHILL_MOCK_TIME_H_ |
| 6 | #define SHILL_MOCK_TIME_H_ |
| 7 | |
| 8 | #include <base/basictypes.h> |
| 9 | #include <gmock/gmock.h> |
| 10 | |
| 11 | #include "shill/shill_time.h" |
| 12 | |
| 13 | namespace shill { |
| 14 | |
| 15 | class MockTime : public Time { |
| 16 | public: |
| 17 | MockTime(); |
| 18 | virtual ~MockTime(); |
| 19 | |
Paul Stewart | e692740 | 2012-01-23 16:11:30 -0800 | [diff] [blame] | 20 | MOCK_METHOD1(GetTimeMonotonic, int(struct timeval *tv)); |
Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame] | 21 | MOCK_METHOD2(GetTimeOfDay, int(struct timeval *tv, struct timezone *tz)); |
| 22 | |
| 23 | private: |
| 24 | DISALLOW_COPY_AND_ASSIGN(MockTime); |
| 25 | }; |
| 26 | |
| 27 | } // namespace shill |
| 28 | |
| 29 | #endif // SHILL_MOCK_TIME_H_ |