OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/autofill/autofill_profile.h" | 6 #include "chrome/browser/autofill/autofill_profile.h" |
7 #include "chrome/browser/sync/profile_sync_service_harness.h" | 7 #include "chrome/browser/sync/profile_sync_service_harness.h" |
| 8 #include "chrome/browser/sync/test/live_sync/autofill_helper.h" |
| 9 #include "chrome/browser/sync/test/live_sync/live_sync_test.h" |
8 #include "chrome/browser/webdata/autofill_entry.h" | 10 #include "chrome/browser/webdata/autofill_entry.h" |
9 #include "chrome/test/live_sync/autofill_helper.h" | |
10 #include "chrome/test/live_sync/live_sync_test.h" | |
11 | 11 |
12 using autofill_helper::AddKeys; | 12 using autofill_helper::AddKeys; |
13 using autofill_helper::AddProfile; | 13 using autofill_helper::AddProfile; |
14 using autofill_helper::CreateAutofillProfile; | 14 using autofill_helper::CreateAutofillProfile; |
15 using autofill_helper::GetAllKeys; | 15 using autofill_helper::GetAllKeys; |
16 using autofill_helper::GetAllProfiles; | 16 using autofill_helper::GetAllProfiles; |
17 using autofill_helper::KeysMatch; | 17 using autofill_helper::KeysMatch; |
18 using autofill_helper::ProfilesMatch; | 18 using autofill_helper::ProfilesMatch; |
19 using autofill_helper::PROFILE_FRASIER; | 19 using autofill_helper::PROFILE_FRASIER; |
20 using autofill_helper::PROFILE_HOMER; | 20 using autofill_helper::PROFILE_HOMER; |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 AutofillType(EMAIL_ADDRESS), | 400 AutofillType(EMAIL_ADDRESS), |
401 exceeds_max_length_string); | 401 exceeds_max_length_string); |
402 UpdateProfile(0, | 402 UpdateProfile(0, |
403 GetAllProfiles(0)[0]->guid(), | 403 GetAllProfiles(0)[0]->guid(), |
404 AutofillType(ADDRESS_HOME_LINE1), | 404 AutofillType(ADDRESS_HOME_LINE1), |
405 exceeds_max_length_string); | 405 exceeds_max_length_string); |
406 | 406 |
407 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); | 407 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); |
408 ASSERT_FALSE(ProfilesMatch(0, 1)); | 408 ASSERT_FALSE(ProfilesMatch(0, 1)); |
409 } | 409 } |
OLD | NEW |