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

Unified Diff: chrome/browser/geolocation/geolocation_browsertest.cc

Issue 658005: Bring Geolocation to life!... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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/geolocation/geolocation_dispatcher_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/geolocation/geolocation_browsertest.cc
===================================================================
--- chrome/browser/geolocation/geolocation_browsertest.cc (revision 39892)
+++ chrome/browser/geolocation/geolocation_browsertest.cc (working copy)
@@ -6,6 +6,7 @@
#include "chrome/browser/app_modal_dialog.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_list.h"
+#include "chrome/browser/geolocation/location_arbitrator.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/renderer_host/render_view_host.h"
#include "chrome/browser/tab_contents/tab_contents.h"
@@ -69,6 +70,7 @@
};
void Initialize(InitializationOptions options) {
+ GeolocationArbitrator::SetUseMockProvider(true);
if (!server_.get()) {
server_ = StartHTTPServer();
}
@@ -172,6 +174,9 @@
InProcessBrowserTest::SetUpCommandLine(command_line);
command_line->AppendSwitch(switches::kEnableGeolocation);
}
+ virtual void TearDownInProcessBrowserTestFixture() {
+ GeolocationArbitrator::SetUseMockProvider(false);
+ }
scoped_refptr<HTTPTestServer> server_;
InfoBarDelegate* infobar_;
« no previous file with comments | « no previous file | chrome/browser/geolocation/geolocation_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698