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

Unified Diff: chrome/browser/sync/test/integration/single_client_wifi_credentials_sync_test.cc

Issue 709683004: components: add wifi_sync component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@submit-1-security-class
Patch Set: update 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/single_client_wifi_credentials_sync_test.cc
diff --git a/chrome/browser/sync/test/integration/single_client_wifi_credentials_sync_test.cc b/chrome/browser/sync/test/integration/single_client_wifi_credentials_sync_test.cc
new file mode 100644
index 0000000000000000000000000000000000000000..877b6f53002e1d68652229feb1b2e30c45d49309
--- /dev/null
+++ b/chrome/browser/sync/test/integration/single_client_wifi_credentials_sync_test.cc
@@ -0,0 +1,27 @@
+// 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.
+
+#include "base/command_line.h"
+#include "chrome/browser/sync/test/integration/sync_test.h"
+#include "chrome/browser/sync/test/integration/wifi_credentials_helper.h"
+#include "chrome/common/chrome_switches.h"
+
+class SingleClientWifiCredentialsSyncTest : public SyncTest {
+ public:
+ SingleClientWifiCredentialsSyncTest() : SyncTest(SINGLE_CLIENT) {}
+ virtual ~SingleClientWifiCredentialsSyncTest() {}
stevenjb 2014/11/13 22:55:36 override
mukesh agrawal 2014/11/14 02:14:54 Done.
+
+ void SetUpCommandLine(CommandLine* command_line) override {
+ SyncTest::SetUpCommandLine(command_line);
+ command_line->AppendSwitch(switches::kEnableWifiCredentialSync);
+ }
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(SingleClientWifiCredentialsSyncTest);
+};
+
+IN_PROC_BROWSER_TEST_F(SingleClientWifiCredentialsSyncTest, NoCredentials) {
+ ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
+ ASSERT_TRUE(wifi_credentials_helper::ServiceMatchesVerifier(0));
+}

Powered by Google App Engine
This is Rietveld 408576698