OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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.graphics.Picture; | 7 import android.graphics.Picture; |
8 import android.os.Handler; | 8 import android.os.Handler; |
9 import android.os.Looper; | 9 import android.os.Looper; |
10 import android.test.suitebuilder.annotation.SmallTest; | 10 import android.support.test.filters.SmallTest; |
11 | 11 |
12 import org.chromium.android_webview.AwContentsClient; | 12 import org.chromium.android_webview.AwContentsClient; |
13 import org.chromium.android_webview.AwContentsClientCallbackHelper; | 13 import org.chromium.android_webview.AwContentsClientCallbackHelper; |
14 import org.chromium.android_webview.test.TestAwContentsClient.OnDownloadStartHel
per; | 14 import org.chromium.android_webview.test.TestAwContentsClient.OnDownloadStartHel
per; |
15 import org.chromium.android_webview.test.TestAwContentsClient.OnReceivedLoginReq
uestHelper; | 15 import org.chromium.android_webview.test.TestAwContentsClient.OnReceivedLoginReq
uestHelper; |
16 import org.chromium.android_webview.test.TestAwContentsClient.PictureListenerHel
per; | 16 import org.chromium.android_webview.test.TestAwContentsClient.PictureListenerHel
per; |
17 import org.chromium.base.test.util.CallbackHelper; | 17 import org.chromium.base.test.util.CallbackHelper; |
18 import org.chromium.base.test.util.Feature; | 18 import org.chromium.base.test.util.Feature; |
19 import org.chromium.base.test.util.parameter.ParameterizedTest; | 19 import org.chromium.base.test.util.parameter.ParameterizedTest; |
20 import org.chromium.content.browser.test.util.TestCallbackHelperContainer.OnPage
StartedHelper; | 20 import org.chromium.content.browser.test.util.TestCallbackHelperContainer.OnPage
StartedHelper; |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 getInstrumentation().runOnMainSync(new Runnable() { | 272 getInstrumentation().runOnMainSync(new Runnable() { |
273 @Override | 273 @Override |
274 public void run() { | 274 public void run() { |
275 } | 275 } |
276 }); | 276 }); |
277 | 277 |
278 // Neither callback should actually happen. | 278 // Neither callback should actually happen. |
279 assertEquals(onPageStartedCount, pageStartedHelper.getCallCount()); | 279 assertEquals(onPageStartedCount, pageStartedHelper.getCallCount()); |
280 } | 280 } |
281 } | 281 } |
OLD | NEW |