OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 | 8 |
9 import org.chromium.android_webview.AwContents; | 9 import org.chromium.android_webview.AwContents; |
10 import org.chromium.android_webview.AwQuotaManagerBridge; | 10 import org.chromium.android_webview.AwQuotaManagerBridge; |
11 import org.chromium.android_webview.test.util.AwQuotaManagerBridgeTestUtil; | 11 import org.chromium.android_webview.test.util.AwQuotaManagerBridgeTestUtil; |
12 | 12 |
13 /** | 13 /** |
14 * This class tests AwQuotaManagerBridge runs without AwContents etc. It simulat
es | 14 * This class tests AwQuotaManagerBridge runs without AwContents etc. It simulat
es |
15 * use case that user calls WebStorage getInstance() without WebView. | 15 * use case that user calls WebStorage getInstance() without WebView. |
16 */ | 16 */ |
17 public class StandaloneAwQuotaManagerBridgeTest extends AwTestBase { | 17 public class StandaloneAwQuotaManagerBridgeTest extends AwTestBase { |
18 @SmallTest | 18 @SmallTest |
19 public void testStartup() throws Exception { | 19 public void testStartup() throws Exception { |
20 // AwQuotaManager should run without any issue. | 20 // AwQuotaManager should run without any issue. |
21 AwQuotaManagerBridge.Origins origins = AwQuotaManagerBridgeTestUtil.getO
rigins(this); | 21 AwQuotaManagerBridge.Origins origins = AwQuotaManagerBridgeTestUtil.getO
rigins(this); |
22 assertEquals(origins.mOrigins.length, 0); | 22 assertEquals(origins.mOrigins.length, 0); |
23 assertEquals(AwContents.getNativeInstanceCount(), 0); | 23 assertEquals(AwContents.getNativeInstanceCount(), 0); |
24 } | 24 } |
25 } | 25 } |
OLD | NEW |