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

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

Issue 10581012: Move test_url_fetcher_factory.* from content/ to net/url_request (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove export annotations Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #pragma once 7 #pragma once
8 8
9 #include "chrome/test/base/in_process_browser_test.h" 9 #include "chrome/test/base/in_process_browser_test.h"
10 10
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/file_util.h" 16 #include "base/file_util.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/memory/scoped_vector.h" 18 #include "base/memory/scoped_vector.h"
19 #include "base/process_util.h" 19 #include "base/process_util.h"
20 #include "net/base/mock_host_resolver.h" 20 #include "net/base/mock_host_resolver.h"
21 #include "net/test/local_sync_test_server.h" 21 #include "net/test/local_sync_test_server.h"
22 #include "sync/internal_api/public/syncable/model_type.h" 22 #include "sync/internal_api/public/syncable/model_type.h"
23 #include "sync/protocol/sync_protocol_error.h" 23 #include "sync/protocol/sync_protocol_error.h"
24 24
25 class CommandLine; 25 class CommandLine;
26 class Profile; 26 class Profile;
27 class ProfileSyncServiceHarness; 27 class ProfileSyncServiceHarness;
28 class FakeURLFetcherFactory;
29 class URLFetcherImplFactory;
30 28
31 namespace net { 29 namespace net {
30 class FakeURLFetcherFactory;
32 class ProxyConfig; 31 class ProxyConfig;
33 class ScopedDefaultHostResolverProc; 32 class ScopedDefaultHostResolverProc;
33 class URLFetcherImplFactory;
34 class URLRequestContextGetter; 34 class URLRequestContextGetter;
35 } 35 }
36 36
37 // This is the base class for integration tests for all sync data types. Derived 37 // This is the base class for integration tests for all sync data types. Derived
38 // classes must be defined for each sync data type. Individual tests are defined 38 // classes must be defined for each sync data type. Individual tests are defined
39 // using the IN_PROC_BROWSER_TEST_F macro. 39 // using the IN_PROC_BROWSER_TEST_F macro.
40 class SyncTest : public InProcessBrowserTest { 40 class SyncTest : public InProcessBrowserTest {
41 public: 41 public:
42 // The different types of live sync tests that can be implemented. 42 // The different types of live sync tests that can be implemented.
43 enum TestType { 43 enum TestType {
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 341
342 // Sync integration tests need to make live DNS requests for access to 342 // Sync integration tests need to make live DNS requests for access to
343 // GAIA and sync server URLs under google.com. We use a scoped version 343 // GAIA and sync server URLs under google.com. We use a scoped version
344 // to override the default resolver while the test is active. 344 // to override the default resolver while the test is active.
345 scoped_ptr<net::ScopedDefaultHostResolverProc> mock_host_resolver_override_; 345 scoped_ptr<net::ScopedDefaultHostResolverProc> mock_host_resolver_override_;
346 346
347 // Used to start and stop the local test server. 347 // Used to start and stop the local test server.
348 base::ProcessHandle test_server_handle_; 348 base::ProcessHandle test_server_handle_;
349 349
350 // Fake URLFetcher factory used to mock out GAIA signin. 350 // Fake URLFetcher factory used to mock out GAIA signin.
351 scoped_ptr<FakeURLFetcherFactory> fake_factory_; 351 scoped_ptr<net::FakeURLFetcherFactory> fake_factory_;
352 352
353 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|. 353 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|.
354 scoped_ptr<URLFetcherImplFactory> factory_; 354 scoped_ptr<net::URLFetcherImplFactory> factory_;
355 355
356 // Number of default entries (as determined by the existing entries at setup 356 // Number of default entries (as determined by the existing entries at setup
357 // time on client 0). 357 // time on client 0).
358 size_t number_of_default_sync_items_; 358 size_t number_of_default_sync_items_;
359 359
360 DISALLOW_COPY_AND_ASSIGN(SyncTest); 360 DISALLOW_COPY_AND_ASSIGN(SyncTest);
361 }; 361 };
362 362
363 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ 363 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_unittest.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