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

Side by Side Diff: chrome/browser/ui/autofill/data_model_wrapper_unittest.cc

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts Created 7 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "base/strings/string_number_conversions.h" 6 #include "base/strings/string_number_conversions.h"
7 #include "chrome/browser/ui/autofill/autofill_dialog_models.h" 7 #include "chrome/browser/ui/autofill/autofill_dialog_models.h"
8 #include "chrome/browser/ui/autofill/data_model_wrapper.h" 8 #include "chrome/browser/ui/autofill/data_model_wrapper.h"
9 #include "components/autofill/browser/autofill_common_test.h"
10 #include "components/autofill/browser/autofill_profile.h"
11 #include "components/autofill/browser/credit_card.h"
12 #include "components/autofill/browser/field_types.h"
13 #include "components/autofill/content/browser/wallet/wallet_items.h" 9 #include "components/autofill/content/browser/wallet/wallet_items.h"
14 #include "components/autofill/content/browser/wallet/wallet_test_util.h" 10 #include "components/autofill/content/browser/wallet/wallet_test_util.h"
11 #include "components/autofill/core/browser/autofill_common_test.h"
12 #include "components/autofill/core/browser/autofill_profile.h"
13 #include "components/autofill/core/browser/credit_card.h"
14 #include "components/autofill/core/browser/field_types.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 namespace autofill { 17 namespace autofill {
18 18
19 TEST(AutofillCreditCardWrapperTest, GetInfoCreditCardExpMonth) { 19 TEST(AutofillCreditCardWrapperTest, GetInfoCreditCardExpMonth) {
20 CreditCard card; 20 CreditCard card;
21 MonthComboboxModel model; 21 MonthComboboxModel model;
22 for (int month = 1; month <= 12; ++month) { 22 for (int month = 1; month <= 12; ++month) {
23 card.SetRawInfo(CREDIT_CARD_EXP_MONTH, base::IntToString16(month)); 23 card.SetRawInfo(CREDIT_CARD_EXP_MONTH, base::IntToString16(month));
24 AutofillCreditCardWrapper wrapper(&card); 24 AutofillCreditCardWrapper wrapper(&card);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 string16()); 65 string16());
66 66
67 ASSERT_TRUE(instrument_wrapper.GetInfo(PHONE_HOME_WHOLE_NUMBER).empty()); 67 ASSERT_TRUE(instrument_wrapper.GetInfo(PHONE_HOME_WHOLE_NUMBER).empty());
68 EXPECT_TRUE(instrument_wrapper.GetDisplayText().empty()); 68 EXPECT_TRUE(instrument_wrapper.GetDisplayText().empty());
69 69
70 ASSERT_TRUE(address_wrapper.GetInfo(PHONE_HOME_WHOLE_NUMBER).empty()); 70 ASSERT_TRUE(address_wrapper.GetInfo(PHONE_HOME_WHOLE_NUMBER).empty());
71 EXPECT_TRUE(address_wrapper.GetDisplayText().empty()); 71 EXPECT_TRUE(address_wrapper.GetDisplayText().empty());
72 } 72 }
73 73
74 } // autofill 74 } // autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/data_model_wrapper.cc ('k') | chrome/browser/ui/autofill/tab_autofill_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698