Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Side by Side Diff: webrtc/api/androidtests/src/org/webrtc/WebRtcJniBootTest.java

Issue 2541823002: Move webrtc/api/androidtests to webrtc/sdk/android/instrumentationtests (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698