OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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; | 7 import android.support.test.filters.SmallTest; |
8 import android.webkit.ValueCallback; | 8 import android.webkit.ValueCallback; |
9 | 9 |
10 import static org.chromium.base.test.util.ScalableTimeout.scaleTimeout; | 10 import static org.chromium.base.test.util.ScalableTimeout.scaleTimeout; |
11 | 11 |
12 import org.chromium.android_webview.AwContents; | 12 import org.chromium.android_webview.AwContents; |
13 import org.chromium.base.ThreadUtils; | 13 import org.chromium.base.ThreadUtils; |
14 import org.chromium.base.annotations.SuppressFBWarnings; | 14 import org.chromium.base.annotations.SuppressFBWarnings; |
15 import org.chromium.base.test.util.Feature; | 15 import org.chromium.base.test.util.Feature; |
16 import org.chromium.base.test.util.UrlUtils; | 16 import org.chromium.base.test.util.UrlUtils; |
17 | 17 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 final String path = new File("/foo/bar/").getAbsolutePath(); | 138 final String path = new File("/foo/bar/").getAbsolutePath(); |
139 deleteFile(path); | 139 deleteFile(path); |
140 | 140 |
141 loadUrlSync(mTestContainerView.getAwContents(), | 141 loadUrlSync(mTestContainerView.getAwContents(), |
142 mContentsClient.getOnPageFinishedHelper(), TEST_PAGE); | 142 mContentsClient.getOnPageFinishedHelper(), TEST_PAGE); |
143 | 143 |
144 doArchiveTest(mTestContainerView.getAwContents(), path, true, null); | 144 doArchiveTest(mTestContainerView.getAwContents(), path, true, null); |
145 } | 145 } |
146 | 146 |
147 } | 147 } |
OLD | NEW |