OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_H_ |
| 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_H_ |
| 7 |
| 8 #include "components/wifi_sync/wifi_security_class.h" |
| 9 |
| 10 class Profile; |
| 11 |
| 12 namespace wifi_sync { |
| 13 class WifiCredentialSyncableService; |
| 14 } |
| 15 |
| 16 namespace wifi_credentials_helper { |
| 17 |
| 18 // Used to access the WiFi credentials within a particular sync profile. |
| 19 wifi_sync::WifiCredentialSyncableService* |
| 20 GetServiceForBrowserContext(int profile_index); |
| 21 |
| 22 // Used to access the WiFi credentials within the verifier sync profile. |
| 23 wifi_sync::WifiCredentialSyncableService* GetVerifierService(); |
| 24 |
| 25 // Compare the WifiCredentialSyncableService for a given profile to |
| 26 // the verifier. Returns true iff their user-visible fields match. |
| 27 bool ServiceMatchesVerifier(int profile_index); |
| 28 |
| 29 // Returns true iff all WifiCredentialSyncableServices match with the verifier. |
| 30 bool AllServicesMatch(); |
| 31 |
| 32 } // namespace wifi_credentials_helper |
| 33 |
| 34 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_H_ |
OLD | NEW |