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_; |