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

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

Issue 10388206: [sync] Add --port and --xmpp-port parameters to run_testserver.cc (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/sync/test/integration/sync_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/test_server.h" 21 #include "net/test/local_sync_test_server.h"
22 #include "sync/protocol/sync_protocol_error.h" 22 #include "sync/protocol/sync_protocol_error.h"
23 #include "sync/syncable/model_type.h" 23 #include "sync/syncable/model_type.h"
24 24
25 class CommandLine; 25 class CommandLine;
26 class Profile; 26 class Profile;
27 class ProfileSyncServiceHarness; 27 class ProfileSyncServiceHarness;
28 class FakeURLFetcherFactory; 28 class FakeURLFetcherFactory;
29 class URLFetcherImplFactory; 29 class URLFetcherImplFactory;
30 30
31 namespace net { 31 namespace net {
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 // clearing an invalid proxy configuration. 291 // clearing an invalid proxy configuration.
292 void SetProxyConfig(net::URLRequestContextGetter* context, 292 void SetProxyConfig(net::URLRequestContextGetter* context,
293 const net::ProxyConfig& proxy_config); 293 const net::ProxyConfig& proxy_config);
294 294
295 // Helper method used to set up fake responses for kClientLoginUrl, 295 // Helper method used to set up fake responses for kClientLoginUrl,
296 // kIssueAuthTokenUrl, kGetUserInfoUrl and kSearchDomainCheckUrl in order to 296 // kIssueAuthTokenUrl, kGetUserInfoUrl and kSearchDomainCheckUrl in order to
297 // mock out calls to GAIA servers. 297 // mock out calls to GAIA servers.
298 void SetupMockGaiaResponses(); 298 void SetupMockGaiaResponses();
299 299
300 // Test server of type sync, started on demand. 300 // Test server of type sync, started on demand.
301 net::TestServer sync_server_; 301 net::LocalSyncTestServer sync_server_;
302 302
303 // Helper class to whitelist the notification port. 303 // Helper class to whitelist the notification port.
304 scoped_ptr<net::ScopedPortException> xmpp_port_; 304 scoped_ptr<net::ScopedPortException> xmpp_port_;
305 305
306 // Used to differentiate between single-client, two-client, multi-client and 306 // Used to differentiate between single-client, two-client, multi-client and
307 // many-client tests. 307 // many-client tests.
308 TestType test_type_; 308 TestType test_type_;
309 309
310 // Tells us what kind of server we're using (some tests run only on certain 310 // Tells us what kind of server we're using (some tests run only on certain
311 // server types). 311 // server types).
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 scoped_ptr<URLFetcherImplFactory> factory_; 357 scoped_ptr<URLFetcherImplFactory> factory_;
358 358
359 // Number of default entries (as determined by the existing entries at setup 359 // Number of default entries (as determined by the existing entries at setup
360 // time on client 0). 360 // time on client 0).
361 size_t number_of_default_sync_items_; 361 size_t number_of_default_sync_items_;
362 362
363 DISALLOW_COPY_AND_ASSIGN(SyncTest); 363 DISALLOW_COPY_AND_ASSIGN(SyncTest);
364 }; 364 };
365 365
366 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ 366 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/test/integration/sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698