OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/logging.h" |
| 6 #include "base/utf_string_conversions.h" |
| 7 #include "content/renderer/media/mock_web_peer_connection_handler_client.h" |
| 8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebMediaStre
amDescriptor.h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 10 |
| 11 namespace WebKit { |
| 12 |
| 13 MockWebPeerConnectionHandlerClient::MockWebPeerConnectionHandlerClient() {} |
| 14 |
| 15 MockWebPeerConnectionHandlerClient::~MockWebPeerConnectionHandlerClient() {} |
| 16 |
| 17 void MockWebPeerConnectionHandlerClient::didCompleteICEProcessing() {} |
| 18 |
| 19 void MockWebPeerConnectionHandlerClient::didGenerateSDP(const WebString& sdp) { |
| 20 sdp_ = UTF16ToUTF8(sdp); |
| 21 } |
| 22 |
| 23 void MockWebPeerConnectionHandlerClient::didReceiveDataStreamMessage( |
| 24 const char* data, size_t length) { |
| 25 } |
| 26 |
| 27 void MockWebPeerConnectionHandlerClient::didAddRemoteStream( |
| 28 const WebMediaStreamDescriptor& stream_descriptor) { |
| 29 stream_label_ = UTF16ToUTF8(stream_descriptor.label()); |
| 30 } |
| 31 |
| 32 void MockWebPeerConnectionHandlerClient::didRemoveRemoteStream( |
| 33 const WebMediaStreamDescriptor& stream_descriptor) { |
| 34 DCHECK(stream_label_ == UTF16ToUTF8(stream_descriptor.label())); |
| 35 stream_label_.clear(); |
| 36 } |
| 37 |
| 38 } // namespace WebKit |
OLD | NEW |