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/strings/utf_string_conversions.h" | 5 #include "base/strings/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 "components/autofill/browser/autofill_profile.h" | 10 #include "components/autofill/core/browser/autofill_profile.h" |
11 #include "components/autofill/browser/credit_card.h" | 11 #include "components/autofill/core/browser/credit_card.h" |
12 #include "components/autofill/browser/personal_data_manager.h" | 12 #include "components/autofill/core/browser/personal_data_manager.h" |
13 #include "components/autofill/browser/webdata/autofill_entry.h" | 13 #include "components/autofill/core/browser/webdata/autofill_entry.h" |
14 #include "components/autofill/browser/webdata/autofill_table.h" | 14 #include "components/autofill/core/browser/webdata/autofill_table.h" |
15 | 15 |
16 using autofill::AutofillKey; | 16 using autofill::AutofillKey; |
17 using autofill::AutofillTable; | 17 using autofill::AutofillTable; |
18 using autofill::AutofillProfile; | 18 using autofill::AutofillProfile; |
19 using autofill::AutofillType; | 19 using autofill::AutofillType; |
20 using autofill::CreditCard; | 20 using autofill::CreditCard; |
21 using autofill::PersonalDataManager; | 21 using autofill::PersonalDataManager; |
22 using autofill_helper::AddKeys; | 22 using autofill_helper::AddKeys; |
23 using autofill_helper::AddProfile; | 23 using autofill_helper::AddProfile; |
24 using autofill_helper::CreateAutofillProfile; | 24 using autofill_helper::CreateAutofillProfile; |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 SetCreditCards(0, &credit_cards); | 472 SetCreditCards(0, &credit_cards); |
473 | 473 |
474 MakeABookmarkChange(0); | 474 MakeABookmarkChange(0); |
475 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); | 475 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); |
476 ASSERT_TRUE(ProfilesMatch(0, 1)); | 476 ASSERT_TRUE(ProfilesMatch(0, 1)); |
477 ASSERT_EQ(1U, GetAllProfiles(0).size()); | 477 ASSERT_EQ(1U, GetAllProfiles(0).size()); |
478 | 478 |
479 PersonalDataManager* pdm = GetPersonalDataManager(1); | 479 PersonalDataManager* pdm = GetPersonalDataManager(1); |
480 ASSERT_EQ(0U, pdm->GetCreditCards().size()); | 480 ASSERT_EQ(0U, pdm->GetCreditCards().size()); |
481 } | 481 } |
OLD | NEW |