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

Unified Diff: chrome/browser/sync/test/integration/wifi_credentials_helper.h

Issue 709683004: components: add wifi_sync component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@submit-1-security-class
Patch Set: update BUILD.gn and commit message Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/test/integration/wifi_credentials_helper.h
diff --git a/chrome/browser/sync/test/integration/wifi_credentials_helper.h b/chrome/browser/sync/test/integration/wifi_credentials_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..cc11b5bdbf6282fb6cf249eeab5ee2640f2149e5
--- /dev/null
+++ b/chrome/browser/sync/test/integration/wifi_credentials_helper.h
@@ -0,0 +1,34 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_H_
+#define CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_H_
+
+#include "components/wifi_sync/wifi_security_class.h"
+
+class Profile;
+
+namespace wifi_sync {
+class WifiCredentialSyncableService;
+}
+
+namespace wifi_credentials_helper {
+
+// Used to access the WiFi credentials within a particular sync profile.
mukesh agrawal 2014/12/03 01:44:43 Removed this, since the test cases no longer use t
+wifi_sync::WifiCredentialSyncableService*
+ GetServiceForBrowserContext(int profile_index);
+
+// Used to access the WiFi credentials within the verifier sync profile.
mukesh agrawal 2014/12/03 01:44:43 Same as above.
+wifi_sync::WifiCredentialSyncableService* GetVerifierService();
+
+// Compare the WifiCredentialSyncableService for a given profile to
+// the verifier. Returns true iff their user-visible fields match.
+bool ServiceMatchesVerifier(int profile_index);
+
+// Returns true iff all WifiCredentialSyncableServices match with the verifier.
+bool AllServicesMatch();
+
+} // namespace wifi_credentials_helper
+
+#endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698