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 |
| 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_ |
OLD | NEW |