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

Unified Diff: chrome/browser/sync/test/integration/two_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: 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/two_client_wifi_credentials_sync_test.cc
diff --git a/chrome/browser/sync/test/integration/two_client_wifi_credentials_sync_test.cc b/chrome/browser/sync/test/integration/two_client_wifi_credentials_sync_test.cc
new file mode 100644
index 0000000000000000000000000000000000000000..dc9a4dc0ce68a9cd56fc56ec23336c8b14ecfe98
--- /dev/null
+++ b/chrome/browser/sync/test/integration/two_client_wifi_credentials_sync_test.cc
@@ -0,0 +1,30 @@
+// 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_integration_test_util.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"
+
+using sync_integration_test_util::AwaitCommitActivityCompletion;
+
+class TwoClientWifiCredentialsSyncTest : public SyncTest {
+ public:
+ TwoClientWifiCredentialsSyncTest() : SyncTest(TWO_CLIENT) {}
+ virtual ~TwoClientWifiCredentialsSyncTest() {}
+
+ void SetUpCommandLine(CommandLine* command_line) override {
+ SyncTest::SetUpCommandLine(command_line);
+ command_line->AppendSwitch(switches::kEnableWifiCredentialSync);
+ }
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(TwoClientWifiCredentialsSyncTest);
+};
+
+IN_PROC_BROWSER_TEST_F(TwoClientWifiCredentialsSyncTest, NoCredentials) {
+ ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
+ ASSERT_TRUE(wifi_credentials_helper::AllServicesMatch());
+}

Powered by Google App Engine
This is Rietveld 408576698