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

Side by Side Diff: content/public/android/javatests/src/org/chromium/content/browser/ContentViewLocationTest.java

Issue 2192683003: Revert of Reland: Geolocation: move from content/browser to device/ (patchset #2 id:20001 of https:… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2810
Patch Set: Created 4 years, 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 package org.chromium.content.browser; 5 package org.chromium.content.browser;
6 6
7 import android.test.suitebuilder.annotation.MediumTest; 7 import android.test.suitebuilder.annotation.MediumTest;
8 8
9 import org.chromium.base.test.util.Feature; 9 import org.chromium.base.test.util.Feature;
10 import org.chromium.content.browser.test.util.Criteria; 10 import org.chromium.content.browser.test.util.Criteria;
11 import org.chromium.content.browser.test.util.CriteriaHelper; 11 import org.chromium.content.browser.test.util.CriteriaHelper;
12 import org.chromium.content.browser.test.util.MockLocationProvider;
12 import org.chromium.content.browser.test.util.TestCallbackHelperContainer; 13 import org.chromium.content.browser.test.util.TestCallbackHelperContainer;
13 import org.chromium.content.browser.test.util.TestCallbackHelperContainer.OnEval uateJavaScriptResultHelper; 14 import org.chromium.content.browser.test.util.TestCallbackHelperContainer.OnEval uateJavaScriptResultHelper;
14 import org.chromium.content_public.browser.LoadUrlParams; 15 import org.chromium.content_public.browser.LoadUrlParams;
15 import org.chromium.content_shell_apk.ContentShellTestBase; 16 import org.chromium.content_shell_apk.ContentShellTestBase;
16 import org.chromium.device.geolocation.LocationProviderFactory;
17 import org.chromium.device.geolocation.MockLocationProvider;
18 17
19 import java.util.concurrent.Callable; 18 import java.util.concurrent.Callable;
20 19
21 /** 20 /**
22 * Test suite for ensureing that Geolocation interacts as expected 21 * Test suite for ensureing that Geolocation interacts as expected
23 * with ContentView APIs - e.g. that it's started and stopped as the 22 * with ContentView APIs - e.g. that it's started and stopped as the
24 * ContentView is hidden or shown. 23 * ContentView is hidden or shown.
25 */ 24 */
26 public class ContentViewLocationTest extends ContentShellTestBase { 25 public class ContentViewLocationTest extends ContentShellTestBase {
27 26
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 hideContentViewOnUiThread(); 170 hideContentViewOnUiThread();
172 startGeolocationWatchPosition(); 171 startGeolocationWatchPosition();
173 ensureGeolocationRunning(false); 172 ensureGeolocationRunning(false);
174 173
175 loadUrl(getContentViewCore().getWebContents().getNavigationController(), 174 loadUrl(getContentViewCore().getWebContents().getNavigationController(),
176 mTestCallbackHelperContainer, new LoadUrlParams("about:blank")); 175 mTestCallbackHelperContainer, new LoadUrlParams("about:blank"));
177 showContentViewOnUiThread(); 176 showContentViewOnUiThread();
178 ensureGeolocationRunning(false); 177 ensureGeolocationRunning(false);
179 } 178 }
180 } 179 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698