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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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 #ifndef COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_TEST_UTIL_H_
6 #define COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_TEST_UTIL_H_
7
8 #include "base/time/time.h"
9 #include "components/sync_driver/sync_service_observer.h"
10 #include "testing/gmock/include/gmock/gmock.h"
11
12 namespace base {
13 class Time;
14 class TimeDelta;
15 }
16
17 namespace browser_sync {
18
19 // An empty syncer::NetworkTimeUpdateCallback. Used in various tests to
20 // instantiate ProfileSyncService.
21 void EmptyNetworkTimeUpdate(const base::Time&,
22 const base::TimeDelta&,
23 const base::TimeDelta&);
24
25 class SyncServiceObserverMock : public sync_driver::SyncServiceObserver {
26 public:
27 SyncServiceObserverMock();
28 virtual ~SyncServiceObserverMock();
29
30 MOCK_METHOD0(OnStateChanged, void());
31 };
32
33 } // namespace browser_sync
34
35 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_TEST_UTIL_H_
OLDNEW
« 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