| OLD | NEW |
| 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_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_H_ |
| 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 // Returns a new WifiCredential constructed from the given parameters. | 41 // Returns a new WifiCredential constructed from the given parameters. |
| 42 scoped_ptr<wifi_sync::WifiCredential> MakeWifiCredential( | 42 scoped_ptr<wifi_sync::WifiCredential> MakeWifiCredential( |
| 43 const std::string& ssid, | 43 const std::string& ssid, |
| 44 wifi_sync::WifiSecurityClass security_class, | 44 wifi_sync::WifiSecurityClass security_class, |
| 45 const std::string& passphrase); | 45 const std::string& passphrase); |
| 46 | 46 |
| 47 // Adds a WiFi credential to the service at index |profile_index|, | 47 // Adds a WiFi credential to the service at index |profile_index|, |
| 48 // and the verifier (if the SyncTest uses a verifier). | 48 // and the verifier (if the SyncTest uses a verifier). |
| 49 void AddWifiCredential(int profile_index, | 49 void AddWifiCredential(int profile_index, |
| 50 const std::string& sync_id, | |
| 51 const wifi_sync::WifiCredential& credential); | 50 const wifi_sync::WifiCredential& credential); |
| 52 | 51 |
| 53 // Returns the set of WifiCredentials configured in local network | 52 // Returns the set of WifiCredentials configured in local network |
| 54 // settings, for |profile|. | 53 // settings, for |profile|. |
| 55 wifi_sync::WifiCredential::CredentialSet GetWifiCredentialsForProfile( | 54 wifi_sync::WifiCredential::CredentialSet GetWifiCredentialsForProfile( |
| 56 const Profile* profile); | 55 const Profile* profile); |
| 57 | 56 |
| 58 } // namespace wifi_credentials_helper | 57 } // namespace wifi_credentials_helper |
| 59 | 58 |
| 60 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_H_ | 59 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_H_ |
| OLD | NEW |