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

Side by Side Diff: android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientCallbackHelperTest.java

Issue 2583933003: Replace deprecated Android java test annotations (Closed)
Patch Set: Rebase again :( Created 4 years 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 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698