|
OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #include "testing/gmock/include/gmock/gmock.h" | |
6 | |
7 #include "base/time.h" | |
scherkus (not reviewing)
2011/06/22 22:12:51
needs a header guard
SteveT
2011/06/23 21:15:55
Oops. Done.
| |
8 | |
9 namespace base { | |
10 | |
11 class MockTimeProvider { | |
scherkus (not reviewing)
2011/06/22 22:12:51
class could also use some usage notes
I do have t
brettw
2011/06/22 22:52:41
I don't understand how this works at all. If it's
SteveT
2011/06/23 21:15:55
Added a description and some usage examples.
I ag
SteveT
2011/06/23 21:15:55
I've moved this to base/test and added it to the t
| |
12 public: | |
13 MockTimeProvider(); | |
14 ~MockTimeProvider(); | |
15 | |
16 MOCK_METHOD0(Now, Time()); | |
17 | |
18 static Time StaticNow(); | |
19 | |
20 private: | |
21 static MockTimeProvider* instance_; | |
22 DISALLOW_COPY_AND_ASSIGN(MockTimeProvider); | |
23 }; | |
24 | |
25 } // namespace | |
OLD | NEW |