OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 #include "content/renderer/media/mock_web_rtc_peer_connection_handler_client.h" | 4 #include "content/renderer/media/mock_web_rtc_peer_connection_handler_client.h" |
5 | 5 |
6 #include "base/logging.h" | 6 #include "base/logging.h" |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebMediaStre
amDescriptor.h" | 8 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStreamDescr
iptor.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 MockWebRTCPeerConnectionHandlerClient:: | 13 MockWebRTCPeerConnectionHandlerClient:: |
14 MockWebRTCPeerConnectionHandlerClient() | 14 MockWebRTCPeerConnectionHandlerClient() |
15 : renegotiate_(false), | 15 : renegotiate_(false), |
16 ready_state_(ReadyStateNew), | 16 ready_state_(ReadyStateNew), |
17 ice_state_(ICEStateNew), | 17 ice_state_(ICEStateNew), |
18 candidate_mline_index_(-1) { | 18 candidate_mline_index_(-1) { |
19 } | 19 } |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 stream_label_ = UTF16ToUTF8(stream_descriptor.label()); | 52 stream_label_ = UTF16ToUTF8(stream_descriptor.label()); |
53 } | 53 } |
54 | 54 |
55 void MockWebRTCPeerConnectionHandlerClient::didRemoveRemoteStream( | 55 void MockWebRTCPeerConnectionHandlerClient::didRemoveRemoteStream( |
56 const WebKit::WebMediaStreamDescriptor& stream_descriptor) { | 56 const WebKit::WebMediaStreamDescriptor& stream_descriptor) { |
57 DCHECK(stream_label_ == UTF16ToUTF8(stream_descriptor.label())); | 57 DCHECK(stream_label_ == UTF16ToUTF8(stream_descriptor.label())); |
58 stream_label_.clear(); | 58 stream_label_.clear(); |
59 } | 59 } |
60 | 60 |
61 } // namespace content | 61 } // namespace content |
OLD | NEW |