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

Side by Side Diff: chrome/test/live_sync/live_sync_test.h

Issue 5519015: Explicitly whitelist the test server port. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 10 years 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
« no previous file with comments | « no previous file | chrome/test/live_sync/live_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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ 5 #ifndef CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_
6 #define CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ 6 #define CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/test/in_process_browser_test.h" 9 #include "chrome/test/in_process_browser_test.h"
10 10
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 bool IsTestServerRunning(); 167 bool IsTestServerRunning();
168 168
169 // Used to disable and enable network connectivity by providing and 169 // Used to disable and enable network connectivity by providing and
170 // clearing an invalid proxy configuration. 170 // clearing an invalid proxy configuration.
171 void SetProxyConfig(URLRequestContextGetter* context, 171 void SetProxyConfig(URLRequestContextGetter* context,
172 const net::ProxyConfig& proxy_config); 172 const net::ProxyConfig& proxy_config);
173 173
174 // Test server of type sync, started on demand. 174 // Test server of type sync, started on demand.
175 net::TestServer sync_server_; 175 net::TestServer sync_server_;
176 176
177 // Helper class to whitelist the notification port.
178 scoped_ptr<net::ScopedPortException> xmpp_port_;
179
177 // Used to differentiate between single-client, two-client, multi-client and 180 // Used to differentiate between single-client, two-client, multi-client and
178 // many-client tests. 181 // many-client tests.
179 TestType test_type_; 182 TestType test_type_;
180 183
181 // Number of sync clients that will be created by a test. 184 // Number of sync clients that will be created by a test.
182 int num_clients_; 185 int num_clients_;
183 186
184 // Collection of sync profiles used by a test. A sync profile maintains sync 187 // Collection of sync profiles used by a test. A sync profile maintains sync
185 // data contained within its own subdirectory under the chrome user data 188 // data contained within its own subdirectory under the chrome user data
186 // directory. 189 // directory.
(...skipping 14 matching lines...) Expand all
201 // to override the default resolver while the test is active. 204 // to override the default resolver while the test is active.
202 scoped_ptr<net::ScopedDefaultHostResolverProc> mock_host_resolver_override_; 205 scoped_ptr<net::ScopedDefaultHostResolverProc> mock_host_resolver_override_;
203 206
204 // Used to start and stop the local test server. 207 // Used to start and stop the local test server.
205 base::ProcessHandle test_server_handle_; 208 base::ProcessHandle test_server_handle_;
206 209
207 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest); 210 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest);
208 }; 211 };
209 212
210 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ 213 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/test/live_sync/live_sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698