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

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

Issue 2203723002: Re-order and remove unused Java imports. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix a comment. Created 4 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2013 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.webrtc; 11 package org.webrtc;
12 12
13 import org.webrtc.Metrics;
14 import org.webrtc.Metrics.HistogramInfo; 13 import org.webrtc.Metrics.HistogramInfo;
15 import org.webrtc.PeerConnection.IceConnectionState; 14 import org.webrtc.PeerConnection.IceConnectionState;
16 import org.webrtc.PeerConnection.IceGatheringState; 15 import org.webrtc.PeerConnection.IceGatheringState;
17 import org.webrtc.PeerConnection.SignalingState; 16 import org.webrtc.PeerConnection.SignalingState;
18 17
18 import android.test.ActivityTestCase;
19 import android.test.suitebuilder.annotation.MediumTest; 19 import android.test.suitebuilder.annotation.MediumTest;
20 20
21 import java.io.File; 21 import java.io.File;
22 import java.lang.ref.WeakReference; 22 import java.lang.ref.WeakReference;
23 import java.nio.ByteBuffer; 23 import java.nio.ByteBuffer;
24 import java.nio.charset.Charset; 24 import java.nio.charset.Charset;
25 import java.util.Arrays; 25 import java.util.Arrays;
26 import java.util.HashSet;
26 import java.util.IdentityHashMap; 27 import java.util.IdentityHashMap;
27 import java.util.LinkedList; 28 import java.util.LinkedList;
28 import java.util.List; 29 import java.util.List;
29 import java.util.HashSet;
30 import java.util.Map; 30 import java.util.Map;
31 import java.util.TreeSet; 31 import java.util.TreeSet;
32 import java.util.concurrent.CountDownLatch; 32 import java.util.concurrent.CountDownLatch;
33 import java.util.concurrent.TimeUnit; 33 import java.util.concurrent.TimeUnit;
34 34
35 /** End-to-end tests for PeerConnection.java. */ 35 /** End-to-end tests for PeerConnection.java. */
36 import android.test.ActivityTestCase;
37
38 public class PeerConnectionTest extends ActivityTestCase { 36 public class PeerConnectionTest extends ActivityTestCase {
39 private static final int TIMEOUT_SECONDS = 20; 37 private static final int TIMEOUT_SECONDS = 20;
40 private TreeSet<String> threadsBeforeTest = null; 38 private TreeSet<String> threadsBeforeTest = null;
41 39
42 @Override 40 @Override
43 protected void setUp() { 41 protected void setUp() {
44 assertTrue(PeerConnectionFactory.initializeAndroidGlobals( 42 assertTrue(PeerConnectionFactory.initializeAndroidGlobals(
45 getInstrumentation().getContext(), true, true, true)); 43 getInstrumentation().getContext(), true, true, true));
46 } 44 }
47 45
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 TreeSet<String> threads = new TreeSet<String>(); 1067 TreeSet<String> threads = new TreeSet<String>();
1070 // This pokes at /proc instead of using the Java APIs because we're also 1068 // This pokes at /proc instead of using the Java APIs because we're also
1071 // looking for libjingle/webrtc native threads, most of which won't have 1069 // looking for libjingle/webrtc native threads, most of which won't have
1072 // attached to the JVM. 1070 // attached to the JVM.
1073 for (String threadId : (new File("/proc/self/task")).list()) { 1071 for (String threadId : (new File("/proc/self/task")).list()) {
1074 threads.add(threadId); 1072 threads.add(threadId);
1075 } 1073 }
1076 return threads; 1074 return threads;
1077 } 1075 }
1078 } 1076 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698