OLD | NEW |
---|---|
(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 | |
droger
2016/01/18 16:58:44
Should this be in the browser_sync namespace?
vabr (Chromium)
2016/01/18 17:04:24
I was thinking about that, but the component does
stanisc
2016/01/19 19:04:00
The code in components/browser_sync has been moved
vabr (Chromium)
2016/01/20 16:43:41
Thanks!
Done.
| |
17 // An empty syncer::NetworkTimeUpdateCallback. Used in various tests to | |
18 // instantiate ProfileSyncService. | |
19 void EmptyNetworkTimeUpdate(const base::Time&, | |
20 const base::TimeDelta&, | |
21 const base::TimeDelta&); | |
22 | |
23 class SyncServiceObserverMock : public sync_driver::SyncServiceObserver { | |
24 public: | |
25 SyncServiceObserverMock(); | |
26 virtual ~SyncServiceObserverMock(); | |
27 | |
28 MOCK_METHOD0(OnStateChanged, void()); | |
29 }; | |
30 | |
31 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_TEST_UTIL_H_ | |
OLD | NEW |