OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_INTEGRATION_PROFILE_SYNC_SERVICE_HARNESS_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_PROFILE_SYNC_SERVICE_HARNESS_H_ |
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_PROFILE_SYNC_SERVICE_HARNESS_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_PROFILE_SYNC_SERVICE_HARNESS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "chrome/browser/sync/profile_sync_service.h" | 13 #include "chrome/browser/sync/profile_sync_service.h" |
14 #include "chrome/browser/sync/profile_sync_service_observer.h" | 14 #include "chrome/browser/sync/profile_sync_service_observer.h" |
15 #include "sync/internal_api/public/base/model_type.h" | 15 #include "sync/internal_api/public/base/model_type.h" |
16 | 16 |
17 class Profile; | 17 class Profile; |
18 class StatusChangeChecker; | 18 class StatusChangeChecker; |
| 19 class P2PInvalidationForwarder; |
19 | 20 |
20 namespace invalidation { | 21 namespace invalidation { |
21 class P2PInvalidationService; | 22 class P2PInvalidationService; |
22 } | 23 } |
23 | 24 |
24 namespace browser_sync { | 25 namespace browser_sync { |
25 namespace sessions { | 26 namespace sessions { |
26 class SyncSessionSnapshot; | 27 class SyncSessionSnapshot; |
27 } | 28 } |
28 } | 29 } |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 228 |
228 // Sync profile associated with this sync client. | 229 // Sync profile associated with this sync client. |
229 Profile* profile_; | 230 Profile* profile_; |
230 | 231 |
231 // ProfileSyncService object associated with |profile_|. | 232 // ProfileSyncService object associated with |profile_|. |
232 ProfileSyncService* service_; | 233 ProfileSyncService* service_; |
233 | 234 |
234 // P2PInvalidationService associated with |profile_|. | 235 // P2PInvalidationService associated with |profile_|. |
235 invalidation::P2PInvalidationService* p2p_invalidation_service_; | 236 invalidation::P2PInvalidationService* p2p_invalidation_service_; |
236 | 237 |
| 238 // An bridge between the ProfileSyncService and P2PInvalidationService. |
| 239 scoped_ptr<P2PInvalidationForwarder> p2p_invalidation_forwarder_; |
| 240 |
237 // The harness of the client whose update progress marker we're expecting | 241 // The harness of the client whose update progress marker we're expecting |
238 // eventually match. | 242 // eventually match. |
239 ProfileSyncServiceHarness* progress_marker_partner_; | 243 ProfileSyncServiceHarness* progress_marker_partner_; |
240 | 244 |
241 // Credentials used for GAIA authentication. | 245 // Credentials used for GAIA authentication. |
242 std::string username_; | 246 std::string username_; |
243 std::string password_; | 247 std::string password_; |
244 | 248 |
245 // Number used by GenerateFakeOAuth2RefreshTokenString() to make sure that | 249 // Number used by GenerateFakeOAuth2RefreshTokenString() to make sure that |
246 // all refresh tokens used in the tests are different. | 250 // all refresh tokens used in the tests are different. |
247 int oauth2_refesh_token_number_; | 251 int oauth2_refesh_token_number_; |
248 | 252 |
249 // Used for logging. | 253 // Used for logging. |
250 const std::string profile_debug_name_; | 254 const std::string profile_debug_name_; |
251 | 255 |
252 // Keeps track of the state change on which we are waiting. PSSHarness can | 256 // Keeps track of the state change on which we are waiting. PSSHarness can |
253 // wait on only one status change at a time. | 257 // wait on only one status change at a time. |
254 StatusChangeChecker* status_change_checker_; | 258 StatusChangeChecker* status_change_checker_; |
255 | 259 |
256 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceHarness); | 260 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceHarness); |
257 }; | 261 }; |
258 | 262 |
259 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_PROFILE_SYNC_SERVICE_HARNESS_H_ | 263 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_PROFILE_SYNC_SERVICE_HARNESS_H_ |
OLD | NEW |