Chromium Code Reviews| Index: base/mock_time_provider.h |
| =================================================================== |
| --- base/mock_time_provider.h (revision 0) |
| +++ base/mock_time_provider.h (revision 0) |
| @@ -0,0 +1,25 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "testing/gmock/include/gmock/gmock.h" |
| + |
| +#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.
|
| + |
| +namespace base { |
| + |
| +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
|
| + public: |
| + MockTimeProvider(); |
| + ~MockTimeProvider(); |
| + |
| + MOCK_METHOD0(Now, Time()); |
| + |
| + static Time StaticNow(); |
| + |
| + private: |
| + static MockTimeProvider* instance_; |
| + DISALLOW_COPY_AND_ASSIGN(MockTimeProvider); |
| +}; |
| + |
| +} // namespace |
| Property changes on: base\mock_time_provider.h |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| + LF |