OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/utf_string_conversions.h" |
6 #include "chrome/browser/sync/profile_sync_service_harness.h" | 6 #include "chrome/browser/sync/profile_sync_service_harness.h" |
7 #include "chrome/browser/sync/test/integration/autofill_helper.h" | 7 #include "chrome/browser/sync/test/integration/autofill_helper.h" |
8 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" | 8 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" |
9 #include "chrome/browser/sync/test/integration/sync_test.h" | 9 #include "chrome/browser/sync/test/integration/sync_test.h" |
10 #include "chrome/browser/webdata/autofill_entry.h" | |
11 #include "chrome/browser/webdata/autofill_table.h" | |
12 #include "components/autofill/browser/autofill_profile.h" | 10 #include "components/autofill/browser/autofill_profile.h" |
13 #include "components/autofill/browser/credit_card.h" | 11 #include "components/autofill/browser/credit_card.h" |
14 #include "components/autofill/browser/personal_data_manager.h" | 12 #include "components/autofill/browser/personal_data_manager.h" |
| 13 #include "components/webdata/autofill/autofill_entry.h" |
| 14 #include "components/webdata/autofill/autofill_table.h" |
15 | 15 |
16 using autofill_helper::AddKeys; | 16 using autofill_helper::AddKeys; |
17 using autofill_helper::AddProfile; | 17 using autofill_helper::AddProfile; |
18 using autofill_helper::CreateAutofillProfile; | 18 using autofill_helper::CreateAutofillProfile; |
19 using autofill_helper::GetAllKeys; | 19 using autofill_helper::GetAllKeys; |
20 using autofill_helper::GetAllProfiles; | 20 using autofill_helper::GetAllProfiles; |
21 using autofill_helper::GetPersonalDataManager; | 21 using autofill_helper::GetPersonalDataManager; |
22 using autofill_helper::KeysMatch; | 22 using autofill_helper::KeysMatch; |
23 using autofill_helper::ProfilesMatch; | 23 using autofill_helper::ProfilesMatch; |
24 using autofill_helper::PROFILE_FRASIER; | 24 using autofill_helper::PROFILE_FRASIER; |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 SetCreditCards(0, &credit_cards); | 464 SetCreditCards(0, &credit_cards); |
465 | 465 |
466 MakeABookmarkChange(0); | 466 MakeABookmarkChange(0); |
467 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); | 467 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); |
468 ASSERT_TRUE(ProfilesMatch(0, 1)); | 468 ASSERT_TRUE(ProfilesMatch(0, 1)); |
469 ASSERT_EQ(1U, GetAllProfiles(0).size()); | 469 ASSERT_EQ(1U, GetAllProfiles(0).size()); |
470 | 470 |
471 PersonalDataManager* pdm = GetPersonalDataManager(1); | 471 PersonalDataManager* pdm = GetPersonalDataManager(1); |
472 ASSERT_EQ(0U, pdm->credit_cards().size()); | 472 ASSERT_EQ(0U, pdm->credit_cards().size()); |
473 } | 473 } |
OLD | NEW |