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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 | 225 |
225 // Gets detailed status from |service_| in pretty-printable form. | 226 // Gets detailed status from |service_| in pretty-printable form. |
226 std::string GetServiceStatus(); | 227 std::string GetServiceStatus(); |
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 // An bridge between the ProfileSyncService and P2PInvalidationService. |
235 invalidation::P2PInvalidationService* p2p_invalidation_service_; | 236 scoped_ptr<P2PInvalidationForwarder> p2p_invalidation_forwarder_; |
236 | 237 |
237 // The harness of the client whose update progress marker we're expecting | 238 // The harness of the client whose update progress marker we're expecting |
238 // eventually match. | 239 // eventually match. |
239 ProfileSyncServiceHarness* progress_marker_partner_; | 240 ProfileSyncServiceHarness* progress_marker_partner_; |
240 | 241 |
241 // Credentials used for GAIA authentication. | 242 // Credentials used for GAIA authentication. |
242 std::string username_; | 243 std::string username_; |
243 std::string password_; | 244 std::string password_; |
244 | 245 |
245 // Number used by GenerateFakeOAuth2RefreshTokenString() to make sure that | 246 // Number used by GenerateFakeOAuth2RefreshTokenString() to make sure that |
246 // all refresh tokens used in the tests are different. | 247 // all refresh tokens used in the tests are different. |
247 int oauth2_refesh_token_number_; | 248 int oauth2_refesh_token_number_; |
248 | 249 |
249 // Used for logging. | 250 // Used for logging. |
250 const std::string profile_debug_name_; | 251 const std::string profile_debug_name_; |
251 | 252 |
252 // Keeps track of the state change on which we are waiting. PSSHarness can | 253 // Keeps track of the state change on which we are waiting. PSSHarness can |
253 // wait on only one status change at a time. | 254 // wait on only one status change at a time. |
254 StatusChangeChecker* status_change_checker_; | 255 StatusChangeChecker* status_change_checker_; |
255 | 256 |
256 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceHarness); | 257 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceHarness); |
257 }; | 258 }; |
258 | 259 |
259 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_PROFILE_SYNC_SERVICE_HARNESS_H_ | 260 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_PROFILE_SYNC_SERVICE_HARNESS_H_ |
OLD | NEW |