Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: chrome/browser/sync/test/integration/sync_test.h

Issue 772513004: Add new E2E sync multi profiles tests. This should not affect any existing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile issues Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_SYNC_TEST_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_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 "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/scoped_vector.h" 14 #include "base/memory/scoped_vector.h"
15 #include "base/process/process.h" 15 #include "base/process/process.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/test/base/in_process_browser_test.h" 17 #include "chrome/test/base/in_process_browser_test.h"
18 #include "net/dns/mock_host_resolver.h" 18 #include "net/dns/mock_host_resolver.h"
19 #include "net/http/http_status_code.h" 19 #include "net/http/http_status_code.h"
20 #include "net/url_request/url_request_status.h" 20 #include "net/url_request/url_request_status.h"
21 #include "sync/internal_api/public/base/model_type.h" 21 #include "sync/internal_api/public/base/model_type.h"
22 #include "sync/protocol/sync_protocol_error.h" 22 #include "sync/protocol/sync_protocol_error.h"
23 #include "sync/test/fake_server/fake_server.h" 23 #include "sync/test/fake_server/fake_server.h"
24 #include "sync/test/local_sync_test_server.h" 24 #include "sync/test/local_sync_test_server.h"
25 25
26 class ProfileSyncService; 26 class ProfileSyncService;
27 class ProfileSyncServiceHarness; 27 class ProfileSyncServiceHarness;
28 class P2PInvalidationForwarder; 28 class P2PInvalidationForwarder;
29 class P2PSyncRefresher;
29 30
30 namespace base { 31 namespace base {
31 class CommandLine; 32 class CommandLine;
32 } 33 }
33 34
34 namespace fake_server { 35 namespace fake_server {
35 class FakeServer; 36 class FakeServer;
36 class FakeServerInvalidationService; 37 class FakeServerInvalidationService;
37 } 38 }
38 39
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 359
359 // Collection of sync clients used by a test. A sync client is associated with 360 // Collection of sync clients used by a test. A sync client is associated with
360 // a sync profile, and implements methods that sync the contents of the 361 // a sync profile, and implements methods that sync the contents of the
361 // profile with the server. 362 // profile with the server.
362 ScopedVector<ProfileSyncServiceHarness> clients_; 363 ScopedVector<ProfileSyncServiceHarness> clients_;
363 364
364 // A set of objects to listen for commit activity and broadcast notifications 365 // A set of objects to listen for commit activity and broadcast notifications
365 // of this activity to its peer sync clients. 366 // of this activity to its peer sync clients.
366 ScopedVector<P2PInvalidationForwarder> invalidation_forwarders_; 367 ScopedVector<P2PInvalidationForwarder> invalidation_forwarders_;
367 368
369 // A set of objects to listen for commit activity and broadcast refresh
370 // notifications of this activity to its peer sync clients.
371 ScopedVector<P2PSyncRefresher> sync_refreshers_;
372
368 // Collection of pointers to FakeServerInvalidation objects for each profile. 373 // Collection of pointers to FakeServerInvalidation objects for each profile.
369 std::vector<fake_server::FakeServerInvalidationService*> 374 std::vector<fake_server::FakeServerInvalidationService*>
370 fake_server_invalidation_services_; 375 fake_server_invalidation_services_;
371 376
372 // Sync profile against which changes to individual profiles are verified. We 377 // Sync profile against which changes to individual profiles are verified. We
373 // don't need a corresponding verifier sync client because the contents of the 378 // don't need a corresponding verifier sync client because the contents of the
374 // verifier profile are strictly local, and are not meant to be synced. 379 // verifier profile are strictly local, and are not meant to be synced.
375 Profile* verifier_; 380 Profile* verifier_;
376 381
377 // Indicates whether changes to a profile should also change the verifier 382 // Indicates whether changes to a profile should also change the verifier
(...skipping 15 matching lines...) Expand all
393 // Fake URLFetcher factory used to mock out GAIA signin. 398 // Fake URLFetcher factory used to mock out GAIA signin.
394 scoped_ptr<net::FakeURLFetcherFactory> fake_factory_; 399 scoped_ptr<net::FakeURLFetcherFactory> fake_factory_;
395 400
396 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|. 401 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|.
397 scoped_ptr<net::URLFetcherImplFactory> factory_; 402 scoped_ptr<net::URLFetcherImplFactory> factory_;
398 403
399 DISALLOW_COPY_AND_ASSIGN(SyncTest); 404 DISALLOW_COPY_AND_ASSIGN(SyncTest);
400 }; 405 };
401 406
402 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ 407 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/single_client_e2e_test.cc ('k') | chrome/browser/sync/test/integration/sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698