OLD | NEW |
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.android_webview.test; | 5 package org.chromium.android_webview.test; |
6 | 6 |
7 import android.test.suitebuilder.annotation.SmallTest; | |
8 import android.view.View; | 7 import android.view.View; |
9 | 8 |
10 import org.chromium.android_webview.AwContents; | 9 import org.chromium.android_webview.AwContents; |
11 import org.chromium.android_webview.test.util.VideoTestWebServer; | 10 import org.chromium.android_webview.test.util.VideoTestWebServer; |
12 import org.chromium.base.test.util.DisabledTest; | 11 import org.chromium.base.test.util.DisabledTest; |
13 import org.chromium.base.test.util.Feature; | |
14 import org.chromium.content.browser.test.util.CallbackHelper; | 12 import org.chromium.content.browser.test.util.CallbackHelper; |
15 import org.chromium.content.browser.test.util.TouchCommon; | 13 import org.chromium.content.browser.test.util.TouchCommon; |
16 | 14 |
17 import java.util.concurrent.TimeUnit; | 15 import java.util.concurrent.TimeUnit; |
18 import java.util.concurrent.TimeoutException; | 16 import java.util.concurrent.TimeoutException; |
19 | 17 |
20 /** | 18 /** |
21 * Test for AwContentClient.GetVideoLoadingProgressView. | 19 * Test for AwContentClient.GetVideoLoadingProgressView. |
22 * | 20 * |
23 * This test takes advantage of onViewAttachedToWindow, and assume our progress
view | 21 * This test takes advantage of onViewAttachedToWindow, and assume our progress
view |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 webServer.getFullScreenVideoTestURL()); | 73 webServer.getFullScreenVideoTestURL()); |
76 Thread.sleep(5 * 1000); | 74 Thread.sleep(5 * 1000); |
77 TouchCommon touchCommon = new TouchCommon(this); | 75 TouchCommon touchCommon = new TouchCommon(this); |
78 touchCommon.singleClickView(testContainerView); | 76 touchCommon.singleClickView(testContainerView); |
79 waitForViewAttached(); | 77 waitForViewAttached(); |
80 } finally { | 78 } finally { |
81 if (webServer != null) webServer.getTestWebServer().shutdown(); | 79 if (webServer != null) webServer.getTestWebServer().shutdown(); |
82 } | 80 } |
83 } | 81 } |
84 } | 82 } |
OLD | NEW |