// Checks if encryption is complete for profile |index|.
bool IsEncryptionComplete(int index);
+ // Waits until IsEncryptionComplete returns true or a timeout is reached.
+ bool AwaitEncryptionComplete(int index);
+
// Blocks until all sync clients have completed their mutual sync cycles.
// Returns true if a quiescent state was successfully reached.
bool AwaitQuiescence();
// on by default yet.
virtual void AddOptionalTypesToCommandLine(base::CommandLine* cl);
- // InProcessBrowserTest override. Destroys all the sync clients and sync
+ // BrowserTestBase override. Destroys all the sync clients and sync
// profiles created by a test.
- virtual void CleanUpOnMainThread() OVERRIDE;
+ virtual void TearDownOnMainThread() OVERRIDE;
// InProcessBrowserTest override. Changes behavior of the default host
// resolver to avoid DNS lookup errors.
void SetProxyConfig(net::URLRequestContextGetter* context,
const net::ProxyConfig& proxy_config);
+ void SetupNetwork(net::URLRequestContextGetter* context);
+
// Helper method used to set up fake responses for kClientLoginUrl,
// kIssueAuthTokenUrl, kGetUserInfoUrl and kSearchDomainCheckUrl in order to
// mock out calls to GAIA servers.