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

Unified Diff: chrome/test/live_sync/live_sync_test.h

Issue 3078031: Simple offline startup integration test. (Closed)
Patch Set: Disable test. Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/live_sync/live_sync_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/live_sync/live_sync_test.h
diff --git a/chrome/test/live_sync/live_sync_test.h b/chrome/test/live_sync/live_sync_test.h
index 3774ecc550d17adbbb9072acd2d8b13fff166206..0026251568885d00b398d3a84e34d4bdfd901afe 100644
--- a/chrome/test/live_sync/live_sync_test.h
+++ b/chrome/test/live_sync/live_sync_test.h
@@ -21,8 +21,10 @@
class CommandLine;
class Profile;
+class URLRequestContextGetter;
namespace net {
+class ProxyConfig;
class ScopedDefaultHostResolverProc;
}
@@ -120,6 +122,15 @@ class LiveSyncTest : public InProcessBrowserTest {
// Initializes sync clients and profiles if required and syncs each of them.
virtual bool SetupSync();
+ // Disable outgoing network connections for the given profile.
+ virtual void DisableNetwork(Profile* profile);
+
+ // Enable outgoing network connections for the given profile.
+ virtual void EnableNetwork(Profile* profile);
+
+ // Configure mock server with test's options.
+ virtual bool EnsureSyncServerConfiguration();
+
protected:
// InProcessBrowserTest override. Destroys all the sync clients and sync
// profiles created by a test.
@@ -153,6 +164,14 @@ class LiveSyncTest : public InProcessBrowserTest {
// created.
virtual void TearDownLocalTestServer();
+ // Used to disable and enable network connectivity by providing and
+ // clearing an invalid proxy configuration.
+ void SetProxyConfig(URLRequestContextGetter* context,
+ const net::ProxyConfig& proxy_config);
+
+ // Sends configuration options to the mock sync server.
+ bool ConfigureSyncServer(const std::string& name, const std::string& value);
+
// Used to differentiate between single-client, two-client, multi-client and
// many-client tests.
TestType test_type_;
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/live_sync/live_sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698