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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 bool synchronous_init_; | 60 bool synchronous_init_; |
61 bool fail_initial_download_; | 61 bool fail_initial_download_; |
62 }; | 62 }; |
63 | 63 |
64 } // namespace browser_sync | 64 } // namespace browser_sync |
65 | 65 |
66 class TestProfileSyncService : public ProfileSyncService { | 66 class TestProfileSyncService : public ProfileSyncService { |
67 public: | 67 public: |
68 // |initial_condition_setup_task| can be used to populate nodes | 68 // |initial_condition_setup_task| can be used to populate nodes |
69 // before the OnBackendInitialized callback fires. | 69 // before the OnBackendInitialized callback fires. |
70 TestProfileSyncService(ProfileSyncFactory* factory, | 70 TestProfileSyncService(ProfileSyncComponentsFactory* factory, |
71 Profile* profile, | 71 Profile* profile, |
72 const std::string& test_user, | 72 const std::string& test_user, |
73 bool synchronous_backend_initialization, | 73 bool synchronous_backend_initialization, |
74 Task* initial_condition_setup_task); | 74 Task* initial_condition_setup_task); |
75 | 75 |
76 virtual ~TestProfileSyncService(); | 76 virtual ~TestProfileSyncService(); |
77 | 77 |
78 void SetInitialSyncEndedForAllTypes(); | 78 void SetInitialSyncEndedForAllTypes(); |
79 | 79 |
80 virtual void OnBackendInitialized( | 80 virtual void OnBackendInitialized( |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 Task* initial_condition_setup_task_; | 116 Task* initial_condition_setup_task_; |
117 bool set_initial_sync_ended_on_init_; | 117 bool set_initial_sync_ended_on_init_; |
118 | 118 |
119 bool fail_initial_download_; | 119 bool fail_initial_download_; |
120 }; | 120 }; |
121 | 121 |
122 | 122 |
123 | 123 |
124 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 124 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |