Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: chrome/browser/autofill/autofill_manager_unittest.cc

Issue 6484022: Autofill i18n: Set postal code and state field labels based on the selected country. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Still needs tests Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698