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

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: fix android_aosp build Created 6 years 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..31cc156851dbe3d4b245d6992db361601e42c481
--- /dev/null
+++ b/chrome/browser/sync/test/integration/wifi_credentials_helper.h
@@ -0,0 +1,26 @@
+// 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_
+
+// Functions needed by multiple wifi_credentials integration
+// tests. This module is platfrom-agnostic, and calls out to
+// platform-specific code as needed.
+namespace wifi_credentials_helper {
+
+// Checks if the verifier has any items in it. Returns true iff the
+// verifier has no items.
+bool VerifierIsEmpty();
+
+// Compares the BrowserContext for |profile_index| with the
+// verifier. Returns true iff their WiFi credentials match.
+bool ProfileMatchesVerifier(int profile_index);
+
+// Returns true iff all BrowserContexts match with the verifier.
+bool AllProfilesMatch();
+
+} // namespace wifi_credentials_helper
+
+#endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_WIFI_CREDENTIALS_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698