| 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/macros.h" |
| 5 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
| 6 #include "chrome/browser/sync/test/integration/autofill_helper.h" | 7 #include "chrome/browser/sync/test/integration/autofill_helper.h" |
| 7 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" | 8 #include "chrome/browser/sync/test/integration/bookmarks_helper.h" |
| 8 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 9 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
| 9 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" | 10 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" |
| 10 #include "chrome/browser/sync/test/integration/sync_test.h" | 11 #include "chrome/browser/sync/test/integration/sync_test.h" |
| 11 #include "components/autofill/core/browser/autofill_profile.h" | 12 #include "components/autofill/core/browser/autofill_profile.h" |
| 12 #include "components/autofill/core/browser/credit_card.h" | 13 #include "components/autofill/core/browser/credit_card.h" |
| 13 #include "components/autofill/core/browser/personal_data_manager.h" | 14 #include "components/autofill/core/browser/personal_data_manager.h" |
| 14 #include "components/autofill/core/browser/webdata/autofill_entry.h" | 15 #include "components/autofill/core/browser/webdata/autofill_entry.h" |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 AddProfile(0, CreateUniqueAutofillProfile()); | 424 AddProfile(0, CreateUniqueAutofillProfile()); |
| 424 | 425 |
| 425 ASSERT_TRUE(AwaitProfilesMatch(0, 1)); | 426 ASSERT_TRUE(AwaitProfilesMatch(0, 1)); |
| 426 | 427 |
| 427 // Check that the total number of autofill profiles is as expected | 428 // Check that the total number of autofill profiles is as expected |
| 428 for (int i = 0; i < num_clients(); ++i) { | 429 for (int i = 0; i < num_clients(); ++i) { |
| 429 ASSERT_EQ(GetProfileCount(i), init_autofill_profiles_count + 1) << | 430 ASSERT_EQ(GetProfileCount(i), init_autofill_profiles_count + 1) << |
| 430 "Total autofill profile count is wrong."; | 431 "Total autofill profile count is wrong."; |
| 431 } | 432 } |
| 432 } | 433 } |
| OLD | NEW |