Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: base/mock_time_provider.h

Issue 7232023: Added last_modified field to TemplateURL and database. Updated unit tests, including refactoring ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Initial upload. Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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
OLDNEW
« no previous file with comments | « no previous file | base/mock_time_provider.cc » ('j') | chrome/browser/search_engines/template_url_service.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698