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

Unified Diff: content/browser/geolocation/network_location_provider_unittest.cc

Issue 14335017: content: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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
Index: content/browser/geolocation/network_location_provider_unittest.cc
diff --git a/content/browser/geolocation/network_location_provider_unittest.cc b/content/browser/geolocation/network_location_provider_unittest.cc
index 3b914665484b200ce6153b8772f6a262ada019d7..ccbfc1b25791badc994f39b6e6fa7e13f8a07d8e 100644
--- a/content/browser/geolocation/network_location_provider_unittest.cc
+++ b/content/browser/geolocation/network_location_provider_unittest.cc
@@ -31,7 +31,7 @@ class MessageLoopQuitListener
: public LocationProviderBase::ListenerInterface {
public:
MessageLoopQuitListener()
- : client_message_loop_(MessageLoop::current()),
+ : client_message_loop_(base::MessageLoop::current()),
updated_provider_(NULL),
movement_provider_(NULL) {
CHECK(client_message_loop_);
@@ -39,11 +39,11 @@ class MessageLoopQuitListener
// ListenerInterface
virtual void LocationUpdateAvailable(
LocationProviderBase* provider) OVERRIDE {
- EXPECT_EQ(client_message_loop_, MessageLoop::current());
+ EXPECT_EQ(client_message_loop_, base::MessageLoop::current());
updated_provider_ = provider;
client_message_loop_->Quit();
}
- MessageLoop* client_message_loop_;
+ base::MessageLoop* client_message_loop_;
LocationProviderBase* updated_provider_;
LocationProviderBase* movement_provider_;
};
@@ -324,7 +324,7 @@ class GeolocationNetworkProviderTest : public testing::Test {
}
GURL test_server_url_;
- MessageLoop main_message_loop_;
+ base::MessageLoop main_message_loop_;
scoped_refptr<FakeAccessTokenStore> access_token_store_;
net::TestURLFetcherFactory url_fetcher_factory_;
scoped_refptr<MockDeviceDataProviderImpl<WifiData> > wifi_data_provider_;
@@ -332,7 +332,7 @@ class GeolocationNetworkProviderTest : public testing::Test {
TEST_F(GeolocationNetworkProviderTest, CreateDestroy) {
// Test fixture members were SetUp correctly.
- EXPECT_EQ(&main_message_loop_, MessageLoop::current());
+ EXPECT_EQ(&main_message_loop_, base::MessageLoop::current());
scoped_ptr<LocationProviderBase> provider(CreateProvider(true));
EXPECT_TRUE(NULL != provider.get());
provider.reset();

Powered by Google App Engine
This is Rietveld 408576698