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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 const std::string& test_user, | 92 const std::string& test_user, |
93 bool synchronous_backend_initialization, | 93 bool synchronous_backend_initialization, |
94 Task* initial_condition_setup_task); | 94 Task* initial_condition_setup_task); |
95 | 95 |
96 virtual ~TestProfileSyncService(); | 96 virtual ~TestProfileSyncService(); |
97 | 97 |
98 void SetInitialSyncEndedForEnabledTypes(); | 98 void SetInitialSyncEndedForEnabledTypes(); |
99 | 99 |
100 virtual void OnBackendInitialized(); | 100 virtual void OnBackendInitialized(); |
101 | 101 |
102 virtual void Observe(NotificationType type, | 102 virtual void Observe(int type, |
103 const NotificationSource& source, | 103 const NotificationSource& source, |
104 const NotificationDetails& details); | 104 const NotificationDetails& details); |
105 | 105 |
106 // If this is called, configuring data types will require a syncer | 106 // If this is called, configuring data types will require a syncer |
107 // nudge. | 107 // nudge. |
108 void dont_set_initial_sync_ended_on_init(); | 108 void dont_set_initial_sync_ended_on_init(); |
109 void set_synchronous_sync_configuration(); | 109 void set_synchronous_sync_configuration(); |
110 | 110 |
111 browser_sync::TestIdFactory* id_factory(); | 111 browser_sync::TestIdFactory* id_factory(); |
112 | 112 |
(...skipping 20 matching lines...) Expand all Loading... |
133 bool synchronous_sync_configuration_; | 133 bool synchronous_sync_configuration_; |
134 bool set_expect_resume_expectations_; | 134 bool set_expect_resume_expectations_; |
135 | 135 |
136 Task* initial_condition_setup_task_; | 136 Task* initial_condition_setup_task_; |
137 bool set_initial_sync_ended_on_init_; | 137 bool set_initial_sync_ended_on_init_; |
138 }; | 138 }; |
139 | 139 |
140 | 140 |
141 | 141 |
142 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 142 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |