OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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.offlinepages; | 5 package org.chromium.chrome.browser.offlinepages; |
6 | 6 |
7 import android.test.suitebuilder.annotation.SmallTest; | 7 import android.support.test.filters.SmallTest; |
8 | 8 |
9 import org.chromium.base.ThreadUtils; | 9 import org.chromium.base.ThreadUtils; |
10 import org.chromium.base.test.util.CommandLineFlags; | 10 import org.chromium.base.test.util.CommandLineFlags; |
11 import org.chromium.base.test.util.RetryOnFailure; | 11 import org.chromium.base.test.util.RetryOnFailure; |
12 import org.chromium.chrome.browser.ChromeActivity; | 12 import org.chromium.chrome.browser.ChromeActivity; |
13 import org.chromium.chrome.browser.offlinepages.OfflinePageBridge.OfflinePageMod
elObserver; | 13 import org.chromium.chrome.browser.offlinepages.OfflinePageBridge.OfflinePageMod
elObserver; |
14 import org.chromium.chrome.browser.offlinepages.OfflinePageBridge.SavePageCallba
ck; | 14 import org.chromium.chrome.browser.offlinepages.OfflinePageBridge.SavePageCallba
ck; |
15 import org.chromium.chrome.browser.profiles.Profile; | 15 import org.chromium.chrome.browser.profiles.Profile; |
16 import org.chromium.chrome.browser.tab.Tab; | 16 import org.chromium.chrome.browser.tab.Tab; |
17 import org.chromium.chrome.test.ChromeActivityTestCaseBase; | 17 import org.chromium.chrome.test.ChromeActivityTestCaseBase; |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 final boolean[] isShowingError = new boolean[1]; | 179 final boolean[] isShowingError = new boolean[1]; |
180 ThreadUtils.runOnUiThreadBlocking(new Runnable() { | 180 ThreadUtils.runOnUiThreadBlocking(new Runnable() { |
181 @Override | 181 @Override |
182 public void run() { | 182 public void run() { |
183 isShowingError[0] = tab.isShowingErrorPage(); | 183 isShowingError[0] = tab.isShowingErrorPage(); |
184 } | 184 } |
185 }); | 185 }); |
186 return isShowingError[0]; | 186 return isShowingError[0]; |
187 } | 187 } |
188 } | 188 } |
OLD | NEW |