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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_section_container_unittest.mm

Issue 63053003: Ask libaddressinput for address components to use in requestAutocomplete(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tests Created 7 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/autofill/autofill_section_container_unittest.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_section_container_unittest.mm b/chrome/browser/ui/cocoa/autofill/autofill_section_container_unittest.mm
index a20e8431c2640d24b27cb9d866000b8a3d9caa00..2c1a4c1389af5798f3bfc2bed9b81c5cf6d7a1a7 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_section_container_unittest.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_section_container_unittest.mm
@@ -16,6 +16,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/gtest_mac.h"
#include "testing/platform_test.h"
+#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/combobox_model.h"
#include "ui/base/models/simple_menu_model.h"
#import "ui/base/test/ui_cocoa_test_helper.h"
@@ -119,7 +120,7 @@ TEST_F(AutofillSectionContainerTest, OutputMatchesDefinition) {
const DetailInput kTestInputs[] = {
{ DetailInput::LONG,
EMAIL_ADDRESS,
- IDS_AUTOFILL_DIALOG_PLACEHOLDER_EMAIL },
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_PLACEHOLDER_EMAIL) },
{ DetailInput::SHORT, CREDIT_CARD_EXP_MONTH },
};
autofill::MonthComboboxModel comboModel;
@@ -184,7 +185,7 @@ TEST_F(AutofillSectionContainerTest, FieldsAreInitiallyValid) {
const DetailInput kTestInputs[] = {
{ DetailInput::LONG,
EMAIL_ADDRESS,
- IDS_AUTOFILL_DIALOG_PLACEHOLDER_EMAIL },
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_PLACEHOLDER_EMAIL) },
{ DetailInput::SHORT, CREDIT_CARD_EXP_MONTH },
};
@@ -212,7 +213,9 @@ TEST_F(AutofillSectionContainerTest, ControllerInformsValidity) {
using namespace testing;
const DetailInput kTestInputs[] = {
- { DetailInput::LONG, EMAIL_ADDRESS, IDS_AUTOFILL_DIALOG_PLACEHOLDER_EMAIL },
+ { DetailInput::LONG,
+ EMAIL_ADDRESS,
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_PLACEHOLDER_EMAIL) },
{ DetailInput::SHORT, CREDIT_CARD_EXP_MONTH }
};

Powered by Google App Engine
This is Rietveld 408576698