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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/ref_counted.h" | 7 #include "base/ref_counted.h" |
8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
9 #include "base/scoped_vector.h" | 9 #include "base/scoped_vector.h" |
10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 } | 369 } |
370 } | 370 } |
371 } | 371 } |
372 | 372 |
373 void ExpectFilledAddressFormElvis(int page_id, | 373 void ExpectFilledAddressFormElvis(int page_id, |
374 const FormData& filled_form, | 374 const FormData& filled_form, |
375 int expected_page_id, | 375 int expected_page_id, |
376 bool has_credit_card_fields) { | 376 bool has_credit_card_fields) { |
377 ExpectFilledForm(page_id, filled_form, expected_page_id, "Elvis", "Aaron", | 377 ExpectFilledForm(page_id, filled_form, expected_page_id, "Elvis", "Aaron", |
378 "Presley", "3734 Elvis Presley Blvd.", "Apt. 10", "Memphis", | 378 "Presley", "3734 Elvis Presley Blvd.", "Apt. 10", "Memphis", |
379 "Tennessee", "38116", "USA", "12345678901", "", | 379 "Tennessee", "38116", "United States", "12345678901", "", |
380 "theking@gmail.com", "", "", "", "", true, | 380 "theking@gmail.com", "", "", "", "", true, |
381 has_credit_card_fields, false); | 381 has_credit_card_fields, false); |
382 } | 382 } |
383 | 383 |
384 void ExpectFilledCreditCardFormElvis(int page_id, | 384 void ExpectFilledCreditCardFormElvis(int page_id, |
385 const FormData& filled_form, | 385 const FormData& filled_form, |
386 int expected_page_id, | 386 int expected_page_id, |
387 bool has_address_fields) { | 387 bool has_address_fields) { |
388 ExpectFilledForm(page_id, filled_form, expected_page_id, | 388 ExpectFilledForm(page_id, filled_form, expected_page_id, |
389 "", "", "", "", "", "", "", "", "", "", "", "", | 389 "", "", "", "", "", "", "", "", "", "", "", "", |
(...skipping 1357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1747 #else | 1747 #else |
1748 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( | 1748 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( |
1749 prefs::kAutoFillAuxiliaryProfilesEnabled)); | 1749 prefs::kAutoFillAuxiliaryProfilesEnabled)); |
1750 profile()->GetPrefs()->SetBoolean( | 1750 profile()->GetPrefs()->SetBoolean( |
1751 prefs::kAutoFillAuxiliaryProfilesEnabled, true); | 1751 prefs::kAutoFillAuxiliaryProfilesEnabled, true); |
1752 profile()->GetPrefs()->ClearPref(prefs::kAutoFillAuxiliaryProfilesEnabled); | 1752 profile()->GetPrefs()->ClearPref(prefs::kAutoFillAuxiliaryProfilesEnabled); |
1753 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( | 1753 ASSERT_FALSE(profile()->GetPrefs()->GetBoolean( |
1754 prefs::kAutoFillAuxiliaryProfilesEnabled)); | 1754 prefs::kAutoFillAuxiliaryProfilesEnabled)); |
1755 #endif | 1755 #endif |
1756 } | 1756 } |
OLD | NEW |