1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS_H_
8 #include "components/wifi_sync/wifi_credential.h"
14 namespace wifi_credentials_helper
{
18 // Performs ChromeOS-specific setup.
21 // Performs ChromeOS-specific setup for a given sync client, given
22 // that client's BrowserContext. Should be called only after SetUpChromeOs.
23 void SetupClientForProfileChromeOs(
24 const content::BrowserContext
* browser_context
);
26 // Adds a WiFi credential to the ChromeOS networking backend,
27 // associating the credential with the ChromeOS networking state that
28 // corresponds to |browser_context|.
29 void AddWifiCredentialToProfileChromeOs(
30 const content::BrowserContext
* browser_context
,
31 const wifi_sync::WifiCredential
& credential
);
33 // Returns the ChromeOS WiFi credentials associated with |browser_context|.
34 wifi_sync::WifiCredential::CredentialSet
GetWifiCredentialsForProfileChromeOs(
35 const content::BrowserContext
* profile
);
37 } // namespace chromeos
39 } // namespace wifi_credentials_helper
41 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS_H_