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(); |
- } |
-} |