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

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

Issue 1142463003: Remove devtools_bridge component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/devtools_bridge/test/android/javatests/src/org/chromium/components/devtools_bridge/PeerConnectionObserverMock.java
diff --git a/components/devtools_bridge/test/android/javatests/src/org/chromium/components/devtools_bridge/PeerConnectionObserverMock.java b/components/devtools_bridge/test/android/javatests/src/org/chromium/components/devtools_bridge/PeerConnectionObserverMock.java
deleted file mode 100644
index fc1fdd438705fafaf46c0db23bd9a8a83ae4fd61..0000000000000000000000000000000000000000
--- a/components/devtools_bridge/test/android/javatests/src/org/chromium/components/devtools_bridge/PeerConnectionObserverMock.java
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.components.devtools_bridge;
-
-import org.chromium.base.annotations.SuppressFBWarnings;
-
-import java.util.concurrent.CountDownLatch;
-
-/**
- * Mock for AbstractPeerConnection.Observer.
- */
-@SuppressFBWarnings("URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
-public class PeerConnectionObserverMock implements AbstractPeerConnection.Observer {
- public AbstractPeerConnection.SessionDescriptionType localDescriptionType;
- public String localDescription;
-
- public final CountDownLatch localDescriptionAvailable = new CountDownLatch(1);
- public final CountDownLatch failureAvailable = new CountDownLatch(1);
- public final CountDownLatch remoteDescriptionSet = new CountDownLatch(1);
- public final CountDownLatch connected = new CountDownLatch(1);
-
- public AbstractPeerConnection iceCandidatesSink;
-
- @Override
- public void onFailure(String description) {
- failureAvailable.countDown();
- }
-
- @Override
- public void onLocalDescriptionCreatedAndSet(
- AbstractPeerConnection.SessionDescriptionType type, String description) {
- localDescriptionType = type;
- localDescription = description;
- localDescriptionAvailable.countDown();
- }
-
- @Override
- public void onRemoteDescriptionSet() {
- remoteDescriptionSet.countDown();
- }
-
- @Override
- public void onIceCandidate(String iceCandidate) {
- if (iceCandidatesSink != null)
- iceCandidatesSink.addIceCandidate(iceCandidate);
- }
-
- @Override
- public void onIceConnectionChange(boolean connected) {
- this.connected.countDown();
- }
-}

Powered by Google App Engine
This is Rietveld 408576698