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

Unified Diff: chrome/browser/sync/test/integration/wifi_credentials_helper_chromeos.h

Issue 843483004: sync: add more integration tests for wifi_sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@submit-4.3-syncable-service
Patch Set: address pneubeck's comments on PS7 Created 5 years, 11 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
Index: chrome/browser/sync/test/integration/wifi_credentials_helper_chromeos.h
diff --git a/chrome/browser/sync/test/integration/wifi_credentials_helper_chromeos.h b/chrome/browser/sync/test/integration/wifi_credentials_helper_chromeos.h
index dc10c3f67f8a59d496355726f049fe9c177e7fad..834e37e4e7bf179a4d91baa930c282e93a11a821 100644
--- a/chrome/browser/sync/test/integration/wifi_credentials_helper_chromeos.h
+++ b/chrome/browser/sync/test/integration/wifi_credentials_helper_chromeos.h
@@ -7,13 +7,34 @@
#include "components/wifi_sync/wifi_credential.h"
-class Profile;
+namespace content {
+class BrowserContext;
+}
namespace wifi_credentials_helper {
-// Returns the ChromeOS WiFi credentials associated with |profile|.
+namespace chromeos {
+
+// Performs ChromeOS-specific setup.
+void SetUpChromeOs();
+
+// Performs ChromeOS-specific setup for a given sync client, given
+// that client's BrowserContext. Should be called only after SetUpChromeOs.
+void SetupClientForProfileChromeOs(
+ const content::BrowserContext* browser_context);
+
+// Adds a WiFi credential to the ChromeOS networking backend,
+// associating the credential with the ChromeOS networking state that
+// corresponds to |browser_context|.
+void AddWifiCredentialToProfileChromeOs(
+ const content::BrowserContext* browser_context,
+ const wifi_sync::WifiCredential& credential);
+
+// Returns the ChromeOS WiFi credentials associated with |browser_context|.
wifi_sync::WifiCredential::CredentialSet GetWifiCredentialsForProfileChromeOs(
- const Profile* profile);
+ const content::BrowserContext* profile);
+
+} // namespace chromeos
} // namespace wifi_credentials_helper

Powered by Google App Engine
This is Rietveld 408576698