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

Unified Diff: components/devtools_bridge/android/javatests/src/org/chromium/components/devtools_bridge/SessionDependencyFactoryTest.java

Issue 734313002: Switching to native implementation of SessionDependencyFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@native-factory-3
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: components/devtools_bridge/android/javatests/src/org/chromium/components/devtools_bridge/SessionDependencyFactoryTest.java
diff --git a/components/devtools_bridge/android/javatests2/src/org/chromium/components/devtools_bridge/SessionDependencyFactoryNativeTest.java b/components/devtools_bridge/android/javatests/src/org/chromium/components/devtools_bridge/SessionDependencyFactoryTest.java
similarity index 96%
rename from components/devtools_bridge/android/javatests2/src/org/chromium/components/devtools_bridge/SessionDependencyFactoryNativeTest.java
rename to components/devtools_bridge/android/javatests/src/org/chromium/components/devtools_bridge/SessionDependencyFactoryTest.java
index 324374847ea034b41c514c47723f5f3b7a38da9f..a7dc15bb53cb4a3ad76f1522066829a74cdba2a0 100644
--- a/components/devtools_bridge/android/javatests2/src/org/chromium/components/devtools_bridge/SessionDependencyFactoryNativeTest.java
+++ b/components/devtools_bridge/android/javatests/src/org/chromium/components/devtools_bridge/SessionDependencyFactoryTest.java
@@ -15,19 +15,18 @@ import java.util.concurrent.CountDownLatch;
import java.util.concurrent.LinkedBlockingDeque;
/**
- * Tests for {@link SessionDependencyFactoryNative}
+ * Tests for {@link SessionDependencyFactory}
*/
-public class SessionDependencyFactoryNativeTest extends InstrumentationTestCase {
+public class SessionDependencyFactoryTest extends InstrumentationTestCase {
private static final int DATA_CHANNEL_ID = 0;
- private SessionDependencyFactoryNative mInstance;
+ private SessionDependencyFactory mInstance;
private AbstractPeerConnection mConnection;
private ObserverMock mObserver;
@Override
protected void setUp() throws Exception {
super.setUp();
- System.loadLibrary("devtools_bridge_natives_so");
mObserver = new ObserverMock();
}
@@ -189,8 +188,8 @@ public class SessionDependencyFactoryNativeTest extends InstrumentationTestCase
mInstance.dispose();
}
- private SessionDependencyFactoryNative newFactory() {
- return new SessionDependencyFactoryNative();
+ private SessionDependencyFactory newFactory() {
+ return SessionDependencyFactory.newInstance();
}
private AbstractPeerConnection newConnection() {
@@ -214,7 +213,7 @@ public class SessionDependencyFactoryNativeTest extends InstrumentationTestCase
final AbstractDataChannel mDataChannel1;
final AbstractDataChannel mDataChannel2;
- Pipe(SessionDependencyFactoryNative factory) {
+ Pipe(SessionDependencyFactory factory) {
RTCConfiguration config = new RTCConfiguration();
mConnection1 = factory.createPeerConnection(config, mObserver1);
mConnection2 = factory.createPeerConnection(config, mObserver2);

Powered by Google App Engine
This is Rietveld 408576698