| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 virtual ~SyncBackendHostForProfileSyncTest(); | 40 virtual ~SyncBackendHostForProfileSyncTest(); |
| 41 | 41 |
| 42 MOCK_METHOD1(RequestNudge, void(const tracked_objects::Location&)); | 42 MOCK_METHOD1(RequestNudge, void(const tracked_objects::Location&)); |
| 43 | 43 |
| 44 // Called when a nudge comes in. | 44 // Called when a nudge comes in. |
| 45 void SimulateSyncCycleCompletedInitialSyncEnded( | 45 void SimulateSyncCycleCompletedInitialSyncEnded( |
| 46 const tracked_objects::Location&); | 46 const tracked_objects::Location&); |
| 47 | 47 |
| 48 virtual void StartConfiguration(const base::Closure& callback) OVERRIDE; | 48 virtual void StartConfiguration(const base::Closure& callback) OVERRIDE; |
| 49 | 49 |
| 50 static void SetDefaultExpectationsForWorkerCreation(ProfileMock* profile); | |
| 51 | |
| 52 static void SetHistoryServiceExpectations(ProfileMock* profile); | 50 static void SetHistoryServiceExpectations(ProfileMock* profile); |
| 53 | 51 |
| 54 protected: | 52 protected: |
| 55 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE; | 53 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE; |
| 56 | 54 |
| 57 private: | 55 private: |
| 58 bool synchronous_init_; | 56 bool synchronous_init_; |
| 59 bool fail_initial_download_; | 57 bool fail_initial_download_; |
| 60 }; | 58 }; |
| 61 | 59 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 114 |
| 117 base::Closure callback_; | 115 base::Closure callback_; |
| 118 bool set_initial_sync_ended_on_init_; | 116 bool set_initial_sync_ended_on_init_; |
| 119 | 117 |
| 120 bool fail_initial_download_; | 118 bool fail_initial_download_; |
| 121 }; | 119 }; |
| 122 | 120 |
| 123 | 121 |
| 124 | 122 |
| 125 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 123 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |