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

Unified Diff: chrome/browser/autofill/address_unittest.cc

Issue 10545169: Move thread checking from autofill_country.cc to browser_process_impl.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove code about thread in address_unittest.cc which is no longer needed 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_country.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/address_unittest.cc
diff --git a/chrome/browser/autofill/address_unittest.cc b/chrome/browser/autofill/address_unittest.cc
index 64c7d5fc66500a4e4903fae8105c04e0f04779fa..128fdb7eaf5e01bbdd9a4b037d75172cc951d830 100644
--- a/chrome/browser/autofill/address_unittest.cc
+++ b/chrome/browser/autofill/address_unittest.cc
@@ -14,21 +14,8 @@
using content::BrowserThread;
-class AddressTest : public testing::Test {
- public:
- // In order to access the application locale -- which the tested functions do
- // internally -- this test must run on the UI thread.
- AddressTest() : ui_thread_(BrowserThread::UI, &message_loop_) {}
-
- private:
- MessageLoopForUI message_loop_;
- content::TestBrowserThread ui_thread_;
-
- DISALLOW_COPY_AND_ASSIGN(AddressTest);
-};
-
// Test that the getters and setters for country code are working.
-TEST_F(AddressTest, CountryCode) {
+TEST(AddressTest, CountryCode) {
Address address;
EXPECT_EQ(std::string(), address.country_code());
@@ -40,7 +27,7 @@ TEST_F(AddressTest, CountryCode) {
}
// Test that country codes are properly decoded as country names.
-TEST_F(AddressTest, GetCountry) {
+TEST(AddressTest, GetCountry) {
Address address;
EXPECT_EQ(std::string(), address.country_code());
@@ -58,7 +45,7 @@ TEST_F(AddressTest, GetCountry) {
}
// Test that we properly detect country codes appropriate for each country.
-TEST_F(AddressTest, SetCountry) {
+TEST(AddressTest, SetCountry) {
Address address;
EXPECT_EQ(std::string(), address.country_code());
@@ -94,7 +81,7 @@ TEST_F(AddressTest, SetCountry) {
}
// Test that we properly match typed values to stored country data.
-TEST_F(AddressTest, IsCountry) {
+TEST(AddressTest, IsCountry) {
Address address;
address.set_country_code("US");
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_country.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698