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

Side by Side Diff: webrtc/sdk/android/instrumentationtests/src/org/webrtc/WebRtcJniBootTest.java

Issue 2630713002: Drop dependency to Chromium in WebRtcJniBootTest. (Closed)
Patch Set: Created 3 years, 11 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 package org.appspot.apprtc.test; 11 package org.appspot.apprtc.test;
12 12
13 import android.support.test.InstrumentationRegistry; 13 import android.support.test.InstrumentationRegistry;
14 import android.support.test.filters.SmallTest; 14 import android.support.test.filters.SmallTest;
15 import org.chromium.base.test.BaseJUnit4ClassRunner; 15 import android.support.test.runner.AndroidJUnit4;
16 import org.junit.Test; 16 import org.junit.Test;
17 import org.junit.runner.RunWith; 17 import org.junit.runner.RunWith;
18 import org.webrtc.PeerConnectionFactory; 18 import org.webrtc.PeerConnectionFactory;
19 19
20 // This test is intended to run on ARM and catch LoadLibrary errors when we load the WebRTC 20 // This test is intended to run on ARM and catch LoadLibrary errors when we load the WebRTC
21 // JNI. It can't really be setting up calls since ARM emulators are too slow, bu t instantiating 21 // JNI. It can't really be setting up calls since ARM emulators are too slow, bu t instantiating
22 // a peer connection isn't timing-sensitive, so we can at least do that. 22 // a peer connection isn't timing-sensitive, so we can at least do that.
23 @RunWith(BaseJUnit4ClassRunner.class) 23 @RunWith(AndroidJUnit4.class)
24 public class WebRtcJniBootTest { 24 public class WebRtcJniBootTest {
25 @Test 25 @Test
26 @SmallTest 26 @SmallTest
27 public void testJniLoadsWithoutError() throws InterruptedException { 27 public void testJniLoadsWithoutError() throws InterruptedException {
28 PeerConnectionFactory.initializeAndroidGlobals(InstrumentationRegistry.getTa rgetContext(), 28 PeerConnectionFactory.initializeAndroidGlobals(InstrumentationRegistry.getTa rgetContext(),
29 true /* initializeAudio */, true /* initializeVideo */, 29 true /* initializeAudio */, true /* initializeVideo */,
30 false /* videoCodecHwAcceleration */); 30 false /* videoCodecHwAcceleration */);
31 31
32 PeerConnectionFactory.Options options = new PeerConnectionFactory.Options(); 32 PeerConnectionFactory.Options options = new PeerConnectionFactory.Options();
33 new PeerConnectionFactory(options); 33 new PeerConnectionFactory(options);
34 } 34 }
35 } 35 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698