| 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.android_webview.test; | 5 package org.chromium.android_webview.test; |
| 6 | 6 |
| 7 import android.os.StrictMode; | 7 import android.os.StrictMode; |
| 8 import android.test.suitebuilder.annotation.LargeTest; | 8 import android.support.test.filters.LargeTest; |
| 9 | 9 |
| 10 import org.chromium.android_webview.AwBrowserProcess; | 10 import org.chromium.android_webview.AwBrowserProcess; |
| 11 import org.chromium.base.test.util.Feature; | 11 import org.chromium.base.test.util.Feature; |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * Tests ensuring that starting up WebView does not cause any diskRead StrictMod
e violations. | 14 * Tests ensuring that starting up WebView does not cause any diskRead StrictMod
e violations. |
| 15 */ | 15 */ |
| 16 public class AwStrictModeTest extends AwTestBase { | 16 public class AwStrictModeTest extends AwTestBase { |
| 17 private TestAwContentsClient mContentsClient; | 17 private TestAwContentsClient mContentsClient; |
| 18 private AwTestContainerView mAwTestContainerView; | 18 private AwTestContainerView mAwTestContainerView; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 getInstrumentation().runOnMainSync(new Runnable() { | 102 getInstrumentation().runOnMainSync(new Runnable() { |
| 103 @Override | 103 @Override |
| 104 public void run() { | 104 public void run() { |
| 105 createAwBrowserContext(); | 105 createAwBrowserContext(); |
| 106 AwBrowserProcess.start(); | 106 AwBrowserProcess.start(); |
| 107 mAwTestContainerView = createAwTestContainerView(mContentsClient
); | 107 mAwTestContainerView = createAwTestContainerView(mContentsClient
); |
| 108 } | 108 } |
| 109 }); | 109 }); |
| 110 } | 110 } |
| 111 } | 111 } |
| OLD | NEW |