| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 int num_expected_resumes, | 39 int num_expected_resumes, |
| 40 int num_expected_pauses, | 40 int num_expected_pauses, |
| 41 bool set_initial_sync_ended_on_init, | 41 bool set_initial_sync_ended_on_init, |
| 42 bool synchronous_init); | 42 bool synchronous_init); |
| 43 virtual ~SyncBackendHostForProfileSyncTest(); |
| 43 | 44 |
| 44 MOCK_METHOD0(RequestPause, bool()); | 45 MOCK_METHOD0(RequestPause, bool()); |
| 45 MOCK_METHOD0(RequestResume, bool()); | 46 MOCK_METHOD0(RequestResume, bool()); |
| 46 MOCK_METHOD0(RequestNudge, void()); | 47 MOCK_METHOD0(RequestNudge, void()); |
| 47 | 48 |
| 48 virtual void ConfigureDataTypes( | 49 virtual void ConfigureDataTypes( |
| 49 const DataTypeController::TypeMap& data_type_controllers, | 50 const DataTypeController::TypeMap& data_type_controllers, |
| 50 const syncable::ModelTypeSet& types, | 51 const syncable::ModelTypeSet& types, |
| 51 CancelableTask* ready_task); | 52 CancelableTask* ready_task); |
| 52 | 53 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 int num_expected_resumes_; | 136 int num_expected_resumes_; |
| 136 int num_expected_pauses_; | 137 int num_expected_pauses_; |
| 137 | 138 |
| 138 Task* initial_condition_setup_task_; | 139 Task* initial_condition_setup_task_; |
| 139 bool set_initial_sync_ended_on_init_; | 140 bool set_initial_sync_ended_on_init_; |
| 140 }; | 141 }; |
| 141 | 142 |
| 142 | 143 |
| 143 | 144 |
| 144 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 145 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |