OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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.Build; | 7 import android.os.Build; |
8 import android.test.suitebuilder.annotation.SmallTest; | 8 import android.support.test.filters.SmallTest; |
9 | 9 |
10 import org.chromium.android_webview.AwContents; | 10 import org.chromium.android_webview.AwContents; |
11 import org.chromium.android_webview.permission.AwPermissionRequest; | 11 import org.chromium.android_webview.permission.AwPermissionRequest; |
12 import org.chromium.android_webview.permission.Resource; | 12 import org.chromium.android_webview.permission.Resource; |
13 import org.chromium.base.test.util.Feature; | 13 import org.chromium.base.test.util.Feature; |
14 | 14 |
15 import java.util.concurrent.Callable; | 15 import java.util.concurrent.Callable; |
16 | 16 |
17 /** | 17 /** |
18 * TestSuite for EME key systems. | 18 * TestSuite for EME key systems. |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 assertEquals(getPlatformKeySystemExpectations(), | 142 assertEquals(getPlatformKeySystemExpectations(), |
143 isKeySystemSupported("x-com.oem.test-keysystem")); | 143 isKeySystemSupported("x-com.oem.test-keysystem")); |
144 } | 144 } |
145 | 145 |
146 @Feature({"AndroidWebView"}) | 146 @Feature({"AndroidWebView"}) |
147 @SmallTest | 147 @SmallTest |
148 public void testSupportPlatformKeySystemNoPrefix() throws Throwable { | 148 public void testSupportPlatformKeySystemNoPrefix() throws Throwable { |
149 assertEquals("\"NotSupportedError\"", isKeySystemSupported("com.oem.test
-keysystem")); | 149 assertEquals("\"NotSupportedError\"", isKeySystemSupported("com.oem.test
-keysystem")); |
150 } | 150 } |
151 } | 151 } |
OLD | NEW |