OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | |
3 * | |
4 * Use of this source code is governed by a BSD-style license | |
5 * that can be found in the LICENSE file in the root of the source | |
6 * tree. An additional intellectual property rights grant can be found | |
7 * in the file PATENTS. All contributing project authors may | |
8 * be found in the AUTHORS file in the root of the source tree. | |
9 */ | |
10 | |
11 package org.appspot.apprtc.test; | |
12 | |
13 import android.test.InstrumentationTestCase; | |
14 import android.test.suitebuilder.annotation.SmallTest; | |
15 | |
16 import org.webrtc.PeerConnectionFactory; | |
17 | |
18 // This test is intended to run on ARM and catch LoadLibrary errors when we load
the WebRTC | |
19 // JNI. It can't really be setting up calls since ARM emulators are too slow, bu
t instantiating | |
20 // a peer connection isn't timing-sensitive, so we can at least do that. | |
21 public class WebRtcJniBootTest extends InstrumentationTestCase { | |
22 @SmallTest | |
23 public void testJniLoadsWithoutError() throws InterruptedException { | |
24 PeerConnectionFactory.initializeAndroidGlobals(getInstrumentation().getTarge
tContext(), | |
25 true /* initializeAudio */, true /* initializeVideo */, | |
26 false /* videoCodecHwAcceleration */); | |
27 | |
28 PeerConnectionFactory.Options options = new PeerConnectionFactory.Options(); | |
29 new PeerConnectionFactory(options); | |
30 } | |
31 } | |
OLD | NEW |