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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/mock_time_provider.cc » ('j') | chrome/browser/search_engines/template_url_service.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« 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