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

Side by Side Diff: components/autofill/core/browser/address_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 (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 <string> 5 #include <string>
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "components/autofill/browser/address.h" 10 #include "components/autofill/core/browser/address.h"
11 #include "components/autofill/browser/autofill_type.h" 11 #include "components/autofill/core/browser/autofill_type.h"
12 #include "content/public/test/test_browser_thread.h" 12 #include "content/public/test/test_browser_thread.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 using content::BrowserThread; 15 using content::BrowserThread;
16 16
17 namespace autofill { 17 namespace autofill {
18 18
19 class AddressTest : public testing::Test { 19 class AddressTest : public testing::Test {
20 public: 20 public:
21 // In order to access the application locale -- which the tested functions do 21 // In order to access the application locale -- which the tested functions do
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 // Make sure that garbage values don't match when the country code is empty. 118 // Make sure that garbage values don't match when the country code is empty.
119 address.SetRawInfo(ADDRESS_HOME_COUNTRY, base::string16()); 119 address.SetRawInfo(ADDRESS_HOME_COUNTRY, base::string16());
120 EXPECT_EQ(base::string16(), address.GetRawInfo(ADDRESS_HOME_COUNTRY)); 120 EXPECT_EQ(base::string16(), address.GetRawInfo(ADDRESS_HOME_COUNTRY));
121 FieldTypeSet matching_types; 121 FieldTypeSet matching_types;
122 address.GetMatchingTypes(ASCIIToUTF16("Garbage"), "US", &matching_types); 122 address.GetMatchingTypes(ASCIIToUTF16("Garbage"), "US", &matching_types);
123 EXPECT_EQ(0U, matching_types.size()); 123 EXPECT_EQ(0U, matching_types.size());
124 } 124 }
125 125
126 } // namespace autofill 126 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698