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

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

Issue 11412194: Cleanup: MockGeolocationArbitrator for GeolocationProvider tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make suggested changes. Created 8 years, 1 month 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 b70a3340022ae65901988126d592f26ac63ed30d..f46f2ee47c6be373e547f79eff299679567f1c56 100644
--- a/content/browser/geolocation/network_location_provider_unittest.cc
+++ b/content/browser/geolocation/network_location_provider_unittest.cc
@@ -11,7 +11,7 @@
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "content/browser/geolocation/fake_access_token_store.h"
-#include "content/browser/geolocation/location_arbitrator.h"
+#include "content/browser/geolocation/location_arbitrator_impl.h"
#include "content/browser/geolocation/network_location_provider.h"
#include "net/url_request/test_url_fetcher_factory.h"
#include "net/url_request/url_request_status.h"
@@ -264,7 +264,7 @@ class GeolocationNetworkProviderTest : public testing::Test {
// Check to see that the api key is being appended for the default
// network provider url.
bool is_default_url = UrlWithoutQuery(request_url) ==
- UrlWithoutQuery(GeolocationArbitrator::DefaultNetworkProviderURL());
+ UrlWithoutQuery(GeolocationArbitratorImpl::DefaultNetworkProviderURL());
EXPECT_EQ(is_default_url, !request_url.query().empty());
const std::string& upload_data = request.upload_data();
@@ -347,7 +347,7 @@ TEST_F(GeolocationNetworkProviderTest, StartProvider) {
}
TEST_F(GeolocationNetworkProviderTest, StartProviderDefaultUrl) {
- test_server_url_ = GeolocationArbitrator::DefaultNetworkProviderURL();
+ test_server_url_ = GeolocationArbitratorImpl::DefaultNetworkProviderURL();
scoped_ptr<LocationProviderBase> provider(CreateProvider(true));
EXPECT_TRUE(provider->StartProvider(false));
net::TestURLFetcher* fetcher = get_url_fetcher_and_advance_id();
« no previous file with comments | « content/browser/geolocation/mock_location_arbitrator.cc ('k') | content/browser/geolocation/network_location_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698