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.chrome.browser; | 5 package org.chromium.chrome.browser; |
6 | 6 |
7 import android.annotation.TargetApi; | 7 import android.annotation.TargetApi; |
8 import android.content.pm.ApplicationInfo; | 8 import android.content.pm.ApplicationInfo; |
9 import android.content.pm.PackageManager; | 9 import android.content.pm.PackageManager; |
10 import android.graphics.Rect; | 10 import android.graphics.Rect; |
11 import android.os.Build; | 11 import android.os.Build; |
12 import android.os.Bundle; | 12 import android.os.Bundle; |
13 import android.os.Handler; | 13 import android.os.Handler; |
14 import android.os.HandlerThread; | 14 import android.os.HandlerThread; |
15 import android.os.Message; | 15 import android.os.Message; |
16 import android.test.suitebuilder.annotation.MediumTest; | 16 import android.support.test.filters.MediumTest; |
17 import android.view.View; | 17 import android.view.View; |
18 import android.view.ViewGroup; | 18 import android.view.ViewGroup; |
19 | 19 |
20 import org.chromium.base.ThreadUtils; | 20 import org.chromium.base.ThreadUtils; |
21 import org.chromium.base.test.util.CallbackHelper; | 21 import org.chromium.base.test.util.CallbackHelper; |
22 import org.chromium.base.test.util.Feature; | 22 import org.chromium.base.test.util.Feature; |
23 import org.chromium.base.test.util.RetryOnFailure; | 23 import org.chromium.base.test.util.RetryOnFailure; |
24 import org.chromium.chrome.test.ChromeActivityTestCaseBase; | 24 import org.chromium.chrome.test.ChromeActivityTestCaseBase; |
25 | 25 |
26 import java.lang.reflect.Method; | 26 import java.lang.reflect.Method; |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 } | 187 } |
188 }); | 188 }); |
189 mCallbackHelper.waitForCallback(0, 1); // call count: 0 --> 1 | 189 mCallbackHelper.waitForCallback(0, 1); // call count: 0 --> 1 |
190 assertEquals("about:blank", mCallbackHelper.getTitle()); | 190 assertEquals("about:blank", mCallbackHelper.getTitle()); |
191 assertEquals("about:blank", mCallbackHelper.getUrl()); | 191 assertEquals("about:blank", mCallbackHelper.getUrl()); |
192 assertNotNull(mCallbackHelper.getText()); | 192 assertNotNull(mCallbackHelper.getText()); |
193 assertNotNull(mCallbackHelper.getHtml()); | 193 assertNotNull(mCallbackHelper.getHtml()); |
194 assertNotNull(mCallbackHelper.getRect()); | 194 assertNotNull(mCallbackHelper.getRect()); |
195 } | 195 } |
196 } | 196 } |
OLD | NEW |