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

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: use directory-level deps (instead of file-level) 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 class Profile;
11 11
12 namespace wifi_credentials_helper { 12 namespace wifi_credentials_helper {
pneubeck (no reviews) 2015/01/30 14:38:45 some of this code is for testing only, please cons
mukesh agrawal 2015/01/30 22:28:14 Actually, _all_ of this code is for testing only :
pneubeck (no reviews) 2015/01/31 10:26:40 sorry, I actually missed the /test/ part of the pa
mukesh agrawal 2015/02/02 20:36:40 Acknowledged.
13 13
14 namespace chromeos {
15
16 // Performs ChromeOS-specific setup.
17 void SetUpChromeOs();
18
19 // Performs ChromeOS-specific setup for a given sync client, given
pneubeck (no reviews) 2015/01/30 14:38:45 should be called only after SetUpChromeOs ?
mukesh agrawal 2015/01/30 22:28:14 Done.
20 // that client's Profile.
21 bool SetupClientForProfileChromeOs(const Profile* profile);
pneubeck (no reviews) 2015/01/30 14:38:45 if these function can use BrowserContext instead o
mukesh agrawal 2015/01/30 22:28:14 Done.
22
23 // Adds a WiFi credential to the ChromeOS networking backend,
24 // associating the credential with the ChromeOS networking state that
25 // corresonds to |profile|.
26 void AddWifiCredentialToProfileChromeOs(
27 Profile* profile, const wifi_sync::WifiCredential& credential);
28
14 // Returns the ChromeOS WiFi credentials associated with |profile|. 29 // Returns the ChromeOS WiFi credentials associated with |profile|.
15 wifi_sync::WifiCredential::CredentialSet GetWifiCredentialsForProfileChromeOs( 30 wifi_sync::WifiCredential::CredentialSet GetWifiCredentialsForProfileChromeOs(
16 const Profile* profile); 31 const Profile* profile);
17 32
33 } // namespace chromeos
34
18 } // namespace wifi_credentials_helper 35 } // namespace wifi_credentials_helper
19 36
20 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS _H_ 37 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_CHROMEOS _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698