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

Side by Side Diff: chrome/browser/sync/test/integration/two_client_wifi_credentials_sync_test.cc

Issue 1408003010: [sync] Componentize switches used by ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@more_pss_chrome_deps
Patch Set: Rebase Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/macros.h" 6 #include "base/macros.h"
7 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" 7 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h"
8 #include "chrome/browser/sync/test/integration/sync_test.h" 8 #include "chrome/browser/sync/test/integration/sync_test.h"
9 #include "chrome/browser/sync/test/integration/wifi_credentials_helper.h" 9 #include "chrome/browser/sync/test/integration/wifi_credentials_helper.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "components/browser_sync/common/browser_sync_switches.h"
11 #include "components/wifi_sync/wifi_credential.h" 11 #include "components/wifi_sync/wifi_credential.h"
12 #include "components/wifi_sync/wifi_security_class.h" 12 #include "components/wifi_sync/wifi_security_class.h"
13 13
14 using wifi_sync::WifiCredential; 14 using wifi_sync::WifiCredential;
15 15
16 using WifiCredentialSet = wifi_sync::WifiCredential::CredentialSet; 16 using WifiCredentialSet = wifi_sync::WifiCredential::CredentialSet;
17 17
18 class TwoClientWifiCredentialsSyncTest : public SyncTest { 18 class TwoClientWifiCredentialsSyncTest : public SyncTest {
19 public: 19 public:
20 TwoClientWifiCredentialsSyncTest() : SyncTest(TWO_CLIENT) {} 20 TwoClientWifiCredentialsSyncTest() : SyncTest(TWO_CLIENT) {}
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 EXPECT_EQ(1U, verifier_credentials.size()); 66 EXPECT_EQ(1U, verifier_credentials.size());
67 EXPECT_EQ(WifiCredential::MakeSsidBytesForTest(ssid), 67 EXPECT_EQ(WifiCredential::MakeSsidBytesForTest(ssid),
68 verifier_credentials.begin()->ssid()); 68 verifier_credentials.begin()->ssid());
69 69
70 const size_t profile_b_index = 1; 70 const size_t profile_b_index = 1;
71 ASSERT_TRUE(GetClient(profile_a_index)->AwaitMutualSyncCycleCompletion( 71 ASSERT_TRUE(GetClient(profile_a_index)->AwaitMutualSyncCycleCompletion(
72 GetClient(profile_b_index))); 72 GetClient(profile_b_index)));
73 EXPECT_FALSE(wifi_credentials_helper::VerifierIsEmpty()); 73 EXPECT_FALSE(wifi_credentials_helper::VerifierIsEmpty());
74 EXPECT_TRUE(wifi_credentials_helper::AllProfilesMatch()); 74 EXPECT_TRUE(wifi_credentials_helper::AllProfilesMatch());
75 } 75 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698