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

Unified Diff: components/browser_sync/browser/profile_sync_test_util.h

Issue 1607473003: Create profile_sync_test_util in components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix iOS Created 4 years, 11 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 | « components/browser_sync/browser/BUILD.gn ('k') | components/browser_sync/browser/profile_sync_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browser_sync/browser/profile_sync_test_util.h
diff --git a/components/browser_sync/browser/profile_sync_test_util.h b/components/browser_sync/browser/profile_sync_test_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..d0b700746f16927b9b8d3a2197e65b1d608f0864
--- /dev/null
+++ b/components/browser_sync/browser/profile_sync_test_util.h
@@ -0,0 +1,35 @@
+// Copyright 2016 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.
+
+#ifndef COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_TEST_UTIL_H_
+#define COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_TEST_UTIL_H_
+
+#include "base/time/time.h"
+#include "components/sync_driver/sync_service_observer.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace base {
+class Time;
+class TimeDelta;
+}
+
+namespace browser_sync {
+
+// An empty syncer::NetworkTimeUpdateCallback. Used in various tests to
+// instantiate ProfileSyncService.
+void EmptyNetworkTimeUpdate(const base::Time&,
+ const base::TimeDelta&,
+ const base::TimeDelta&);
+
+class SyncServiceObserverMock : public sync_driver::SyncServiceObserver {
+ public:
+ SyncServiceObserverMock();
+ virtual ~SyncServiceObserverMock();
+
+ MOCK_METHOD0(OnStateChanged, void());
+};
+
+} // namespace browser_sync
+
+#endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_TEST_UTIL_H_
« no previous file with comments | « components/browser_sync/browser/BUILD.gn ('k') | components/browser_sync/browser/profile_sync_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698