OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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.chrome.browser; | 5 package org.chromium.chrome.browser; |
6 | 6 |
7 import android.os.Environment; | 7 import android.os.Environment; |
8 import android.test.suitebuilder.annotation.MediumTest; | 8 import android.test.suitebuilder.annotation.MediumTest; |
9 import android.test.suitebuilder.annotation.Smoke; | 9 import android.test.suitebuilder.annotation.Smoke; |
10 | 10 |
11 import org.chromium.base.test.util.Feature; | 11 import org.chromium.base.test.util.Feature; |
12 import org.chromium.chrome.browser.infobar.InfoBarContainer; | 12 import org.chromium.chrome.browser.infobar.InfoBarContainer; |
13 import org.chromium.chrome.browser.tab.EmptyTabObserver; | 13 import org.chromium.chrome.browser.tab.EmptyTabObserver; |
14 import org.chromium.chrome.browser.tab.Tab; | 14 import org.chromium.chrome.browser.tab.Tab; |
15 import org.chromium.chrome.test.ChromeActivityTestCaseBase; | 15 import org.chromium.chrome.test.ChromeActivityTestCaseBase; |
16 import org.chromium.chrome.test.util.InfoBarTestAnimationListener; | 16 import org.chromium.chrome.test.util.InfoBarTestAnimationListener; |
17 import org.chromium.chrome.test.util.InfoBarUtil; | 17 import org.chromium.chrome.test.util.InfoBarUtil; |
18 import org.chromium.chrome.test.util.browser.LocationSettingsTestUtil; | 18 import org.chromium.chrome.test.util.browser.LocationSettingsTestUtil; |
19 import org.chromium.content.browser.LocationProviderFactory; | |
20 import org.chromium.content.browser.test.util.CallbackHelper; | 19 import org.chromium.content.browser.test.util.CallbackHelper; |
21 import org.chromium.content.browser.test.util.MockLocationProvider; | 20 import org.chromium.device.geolocation.LocationProviderFactory; |
| 21 import org.chromium.device.geolocation.MockLocationProvider; |
22 import org.chromium.net.test.EmbeddedTestServer; | 22 import org.chromium.net.test.EmbeddedTestServer; |
23 | 23 |
24 /** | 24 /** |
25 * Test suite for Geo-Location functionality. | 25 * Test suite for Geo-Location functionality. |
26 * | 26 * |
27 * These tests rely on the device being specially setup (which the bots do autom
atically): | 27 * These tests rely on the device being specially setup (which the bots do autom
atically): |
28 * - Global location is enabled. | 28 * - Global location is enabled. |
29 * - Google location is enabled. | 29 * - Google location is enabled. |
30 */ | 30 */ |
31 public class GeolocationTest extends ChromeActivityTestCaseBase<ChromeActivity>
{ | 31 public class GeolocationTest extends ChromeActivityTestCaseBase<ChromeActivity>
{ |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 updateWaiter.waitForNumUpdates(2); | 133 updateWaiter.waitForNumUpdates(2); |
134 | 134 |
135 tab.removeObserver(updateWaiter); | 135 tab.removeObserver(updateWaiter); |
136 } | 136 } |
137 | 137 |
138 @Override | 138 @Override |
139 public void startMainActivity() throws InterruptedException { | 139 public void startMainActivity() throws InterruptedException { |
140 startMainActivityOnBlankPage(); | 140 startMainActivityOnBlankPage(); |
141 } | 141 } |
142 } | 142 } |
OLD | NEW |