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

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

Issue 406023002: Restructuring NavigationController functionalities from ContentViewCore to NavigationController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch with findbugs_known_bugs.txt changes. Created 6 years, 3 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.MockLocationProvider;
13 import org.chromium.content.browser.test.util.TestCallbackHelperContainer; 13 import org.chromium.content.browser.test.util.TestCallbackHelperContainer;
14 import org.chromium.content.browser.test.util.TestCallbackHelperContainer.OnEval uateJavaScriptResultHelper; 14 import org.chromium.content.browser.test.util.TestCallbackHelperContainer.OnEval uateJavaScriptResultHelper;
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 17
17 /** 18 /**
18 * Test suite for ensureing that Geolocation interacts as expected 19 * Test suite for ensureing that Geolocation interacts as expected
19 * with ContentView APIs - e.g. that it's started and stopped as the 20 * with ContentView APIs - e.g. that it's started and stopped as the
20 * ContentView is hidden or shown. 21 * ContentView is hidden or shown.
21 */ 22 */
22 public class ContentViewLocationTest extends ContentShellTestBase { 23 public class ContentViewLocationTest extends ContentShellTestBase {
23 24
24 private TestCallbackHelperContainer mTestCallbackHelperContainer; 25 private TestCallbackHelperContainer mTestCallbackHelperContainer;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 hideContentViewOnUiThread(); 168 hideContentViewOnUiThread();
168 startGeolocationWatchPosition(); 169 startGeolocationWatchPosition();
169 ensureGeolocationRunning(false); 170 ensureGeolocationRunning(false);
170 171
171 loadUrl(getContentViewCore(), mTestCallbackHelperContainer, 172 loadUrl(getContentViewCore(), mTestCallbackHelperContainer,
172 new LoadUrlParams("about:blank")); 173 new LoadUrlParams("about:blank"));
173 showContentViewOnUiThread(); 174 showContentViewOnUiThread();
174 ensureGeolocationRunning(false); 175 ensureGeolocationRunning(false);
175 } 176 }
176 } 177 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698