| 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 22 matching lines...) Expand all Loading... |
| 33 : public SyncBackendHost, public JsBackend { | 33 : public SyncBackendHost, public JsBackend { |
| 34 public: | 34 public: |
| 35 // |synchronous_init| causes initialization to block until the syncapi has | 35 // |synchronous_init| causes initialization to block until the syncapi has |
| 36 // completed setting itself up and called us back. | 36 // completed setting itself up and called us back. |
| 37 SyncBackendHostForProfileSyncTest( | 37 SyncBackendHostForProfileSyncTest( |
| 38 Profile* profile, | 38 Profile* profile, |
| 39 bool set_initial_sync_ended_on_init, | 39 bool set_initial_sync_ended_on_init, |
| 40 bool synchronous_init); | 40 bool synchronous_init); |
| 41 virtual ~SyncBackendHostForProfileSyncTest(); | 41 virtual ~SyncBackendHostForProfileSyncTest(); |
| 42 | 42 |
| 43 MOCK_METHOD0(RequestPause, bool()); | |
| 44 MOCK_METHOD0(RequestResume, bool()); | |
| 45 MOCK_METHOD1(RequestNudge, void(const tracked_objects::Location&)); | 43 MOCK_METHOD1(RequestNudge, void(const tracked_objects::Location&)); |
| 46 | 44 |
| 47 virtual void ConfigureDataTypes( | 45 virtual void ConfigureDataTypes( |
| 48 const DataTypeController::TypeMap& data_type_controllers, | 46 const DataTypeController::TypeMap& data_type_controllers, |
| 49 const syncable::ModelTypeSet& types, | 47 const syncable::ModelTypeSet& types, |
| 50 CancelableTask* ready_task); | 48 CancelableTask* ready_task); |
| 51 | 49 |
| 52 // Called when a nudge comes in. | 50 // Called when a nudge comes in. |
| 53 void SimulateSyncCycleCompletedInitialSyncEnded( | 51 void SimulateSyncCycleCompletedInitialSyncEnded( |
| 54 const tracked_objects::Location&); | 52 const tracked_objects::Location&); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 bool synchronous_sync_configuration_; | 128 bool synchronous_sync_configuration_; |
| 131 bool set_expect_resume_expectations_; | 129 bool set_expect_resume_expectations_; |
| 132 | 130 |
| 133 Task* initial_condition_setup_task_; | 131 Task* initial_condition_setup_task_; |
| 134 bool set_initial_sync_ended_on_init_; | 132 bool set_initial_sync_ended_on_init_; |
| 135 }; | 133 }; |
| 136 | 134 |
| 137 | 135 |
| 138 | 136 |
| 139 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 137 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |