| 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/sync/profile_sync_service_harness.h" | 7 #include "chrome/browser/sync/profile_sync_service_harness.h" |
| 7 #include "chrome/browser/webdata/autofill_entry.h" | 8 #include "chrome/browser/webdata/autofill_entry.h" |
| 8 #include "chrome/test/live_sync/autofill_helper.h" | 9 #include "chrome/test/live_sync/autofill_helper.h" |
| 9 #include "chrome/test/live_sync/live_sync_test.h" | 10 #include "chrome/test/live_sync/live_sync_test.h" |
| 10 | 11 |
| 11 // Autofill entry length is limited to 1024. See http://crbug.com/49332. | 12 // Autofill entry length is limited to 1024. See http://crbug.com/49332. |
| 12 const size_t kMaxDataLength = 1024; | 13 const size_t kMaxDataLength = 1024; |
| 13 | 14 |
| 14 class TwoClientAutofillSyncTest : public LiveSyncTest { | 15 class TwoClientAutofillSyncTest : public LiveSyncTest { |
| 15 public: | 16 public: |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 exceeds_max_length_string); | 429 exceeds_max_length_string); |
| 429 AutofillHelper::UpdateProfile( | 430 AutofillHelper::UpdateProfile( |
| 430 0, | 431 0, |
| 431 AutofillHelper::GetAllProfiles(0)[0]->guid(), | 432 AutofillHelper::GetAllProfiles(0)[0]->guid(), |
| 432 AutofillType(ADDRESS_HOME_LINE1), | 433 AutofillType(ADDRESS_HOME_LINE1), |
| 433 exceeds_max_length_string); | 434 exceeds_max_length_string); |
| 434 | 435 |
| 435 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); | 436 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); |
| 436 ASSERT_FALSE(AutofillHelper::ProfilesMatch(0, 1)); | 437 ASSERT_FALSE(AutofillHelper::ProfilesMatch(0, 1)); |
| 437 } | 438 } |
| OLD | NEW |