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

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

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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/string16.h" 8 #include "base/string16.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/autofill/address.h" 10 #include "chrome/browser/autofill/address.h"
11 #include "chrome/browser/autofill/autofill_type.h" 11 #include "chrome/browser/autofill/autofill_type.h"
12 #include "content/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 class AddressTest : public testing::Test { 17 class AddressTest : public testing::Test {
18 public: 18 public:
19 // In order to access the application locale -- which the tested functions do 19 // In order to access the application locale -- which the tested functions do
20 // internally -- this test must run on the UI thread. 20 // internally -- this test must run on the UI thread.
21 AddressTest() : ui_thread_(BrowserThread::UI, &message_loop_) {} 21 AddressTest() : ui_thread_(BrowserThread::UI, &message_loop_) {}
22 22
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 EXPECT_EQ(0U, matching_types.size()); 123 EXPECT_EQ(0U, matching_types.size());
124 } 124 }
125 125
126 // Make sure that garbage values don't match when the country code is empty. 126 // Make sure that garbage values don't match when the country code is empty.
127 address.set_country_code(""); 127 address.set_country_code("");
128 EXPECT_EQ(std::string(), address.country_code()); 128 EXPECT_EQ(std::string(), address.country_code());
129 FieldTypeSet matching_types; 129 FieldTypeSet matching_types;
130 address.GetMatchingTypes(ASCIIToUTF16("Garbage"), &matching_types); 130 address.GetMatchingTypes(ASCIIToUTF16("Garbage"), &matching_types);
131 EXPECT_EQ(0U, matching_types.size()); 131 EXPECT_EQ(0U, matching_types.size());
132 } 132 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete_history_manager_unittest.cc ('k') | chrome/browser/autofill/autofill_download_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698