OLD | NEW |
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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 9 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
10 #include "chrome/browser/sync/test/integration/sync_test.h" | 10 #include "chrome/browser/sync/test/integration/sync_test.h" |
11 #include "chrome/browser/sync/test/integration/wifi_credentials_helper.h" | 11 #include "chrome/browser/sync/test/integration/wifi_credentials_helper.h" |
12 #include "components/browser_sync/common/browser_sync_switches.h" | 12 #include "components/browser_sync/browser_sync_switches.h" |
13 #include "components/wifi_sync/wifi_credential.h" | 13 #include "components/wifi_sync/wifi_credential.h" |
14 #include "components/wifi_sync/wifi_security_class.h" | 14 #include "components/wifi_sync/wifi_security_class.h" |
15 | 15 |
16 using wifi_sync::WifiCredential; | 16 using wifi_sync::WifiCredential; |
17 | 17 |
18 using WifiCredentialSet = wifi_sync::WifiCredential::CredentialSet; | 18 using WifiCredentialSet = wifi_sync::WifiCredential::CredentialSet; |
19 | 19 |
20 class TwoClientWifiCredentialsSyncTest : public SyncTest { | 20 class TwoClientWifiCredentialsSyncTest : public SyncTest { |
21 public: | 21 public: |
22 TwoClientWifiCredentialsSyncTest() : SyncTest(TWO_CLIENT) {} | 22 TwoClientWifiCredentialsSyncTest() : SyncTest(TWO_CLIENT) {} |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 EXPECT_EQ(1U, verifier_credentials.size()); | 68 EXPECT_EQ(1U, verifier_credentials.size()); |
69 EXPECT_EQ(WifiCredential::MakeSsidBytesForTest(ssid), | 69 EXPECT_EQ(WifiCredential::MakeSsidBytesForTest(ssid), |
70 verifier_credentials.begin()->ssid()); | 70 verifier_credentials.begin()->ssid()); |
71 | 71 |
72 const size_t profile_b_index = 1; | 72 const size_t profile_b_index = 1; |
73 ASSERT_TRUE(GetClient(profile_a_index)->AwaitMutualSyncCycleCompletion( | 73 ASSERT_TRUE(GetClient(profile_a_index)->AwaitMutualSyncCycleCompletion( |
74 GetClient(profile_b_index))); | 74 GetClient(profile_b_index))); |
75 EXPECT_FALSE(wifi_credentials_helper::VerifierIsEmpty()); | 75 EXPECT_FALSE(wifi_credentials_helper::VerifierIsEmpty()); |
76 EXPECT_TRUE(wifi_credentials_helper::AllProfilesMatch()); | 76 EXPECT_TRUE(wifi_credentials_helper::AllProfilesMatch()); |
77 } | 77 } |
OLD | NEW |