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 |
3 | // found in the LICENSE file. |
4 | |
5 | package org.chromium.android_webview.test; |
6 | |
7 | import org.chromium.android_webview.AwContents; |
8 | import org.chromium.android_webview.AwQuotaManagerBridge; |
9 | import org.chromium.android_webview.test.util.AwQuotaManagerBridgeTestUtil; |
10 | |
11 | /** |
12 | * This class tests AwQuotaManagerBridge runs without AwContents etc. It simulates |
13 | * use case that user calls WebStorage getInstance() without WebView. |
14 | */ |
15 | public class StandaloneAwQuotaManagerBridgeTest extends AwTestBase { |
16 | public void testStartup() throws Exception { |
17 | // AwQuotaManager should run without any issue. |
18 | AwQuotaManagerBridge.Origins origins = AwQuotaManagerBridgeTestUtil.getOrigins(this); |
19 | assertEquals(origins.mOrigins.length, 0); |
20 | assertEquals(AwContents.getNativeInstanceCount(), 0); |
21 | } |
22 | } |