OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/utf_string_conversions.h" |
5 #include "chrome/test/live_sync/live_autofill_sync_test.h" | 6 #include "chrome/test/live_sync/live_autofill_sync_test.h" |
6 | 7 |
7 IN_PROC_BROWSER_TEST_F(TwoClientLiveAutofillSyncTest, Client1HasData) { | 8 IN_PROC_BROWSER_TEST_F(TwoClientLiveAutofillSyncTest, Client1HasData) { |
8 ASSERT_TRUE(SetupClients()) << "SetupClients() failed."; | 9 ASSERT_TRUE(SetupClients()) << "SetupClients() failed."; |
9 | 10 |
10 AutofillKeys keys; | 11 AutofillKeys keys; |
11 keys.insert(AutofillKey("name0", "value0")); | 12 keys.insert(AutofillKey("name0", "value0")); |
12 keys.insert(AutofillKey("name0", "value1")); | 13 keys.insert(AutofillKey("name0", "value1")); |
13 keys.insert(AutofillKey("name1", "value2")); | 14 keys.insert(AutofillKey("name1", "value2")); |
14 keys.insert(AutofillKey(WideToUTF16(L"Sigur R\u00F3s"), | 15 keys.insert(AutofillKey(WideToUTF16(L"Sigur R\u00F3s"), |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 STLDeleteElements(&expected_profiles); | 277 STLDeleteElements(&expected_profiles); |
277 RemoveProfile(GetPersonalDataManager(1), ASCIIToUTF16("Billing")); | 278 RemoveProfile(GetPersonalDataManager(1), ASCIIToUTF16("Billing")); |
278 RemoveProfile(GetPersonalDataManager(1), ASCIIToUTF16("Billing2")); | 279 RemoveProfile(GetPersonalDataManager(1), ASCIIToUTF16("Billing2")); |
279 EXPECT_TRUE(GetClient(1)->AwaitMutualSyncCycleCompletion(GetClient(0))); | 280 EXPECT_TRUE(GetClient(1)->AwaitMutualSyncCycleCompletion(GetClient(0))); |
280 | 281 |
281 EXPECT_TRUE(CompareAutoFillProfiles(expected_profiles, | 282 EXPECT_TRUE(CompareAutoFillProfiles(expected_profiles, |
282 GetAllAutoFillProfiles(GetPersonalDataManager(0)))); | 283 GetAllAutoFillProfiles(GetPersonalDataManager(0)))); |
283 EXPECT_TRUE(CompareAutoFillProfiles(expected_profiles, | 284 EXPECT_TRUE(CompareAutoFillProfiles(expected_profiles, |
284 GetAllAutoFillProfiles(GetPersonalDataManager(1)))); | 285 GetAllAutoFillProfiles(GetPersonalDataManager(1)))); |
285 } | 286 } |
OLD | NEW |