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

Side by Side 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: rebase, and resolve (trivial) conflict Created 5 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS_H_
7 7
8 #include "components/wifi_sync/wifi_credential.h" 8 #include "components/wifi_sync/wifi_credential.h"
9 9
10 class Profile; 10 namespace content {
11 class BrowserContext;
12 }
11 13
12 namespace wifi_credentials_helper { 14 namespace wifi_credentials_helper {
13 15
14 // Returns the ChromeOS WiFi credentials associated with |profile|. 16 namespace chromeos {
17
18 // Performs ChromeOS-specific setup.
19 void SetUpChromeOs();
20
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);
25
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);
32
33 // Returns the ChromeOS WiFi credentials associated with |browser_context|.
15 wifi_sync::WifiCredential::CredentialSet GetWifiCredentialsForProfileChromeOs( 34 wifi_sync::WifiCredential::CredentialSet GetWifiCredentialsForProfileChromeOs(
16 const Profile* profile); 35 const content::BrowserContext* profile);
36
37 } // namespace chromeos
17 38
18 } // namespace wifi_credentials_helper 39 } // namespace wifi_credentials_helper
19 40
20 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS _H_ 41 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698