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

Side by Side Diff: content/renderer/media/mock_web_rtc_peer_connection_handler_client.cc

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "third_party/WebKit/public/platform/WebMediaStream.h" 8 #include "third_party/WebKit/public/platform/WebMediaStream.h"
9 #include "third_party/WebKit/public/platform/WebString.h" 9 #include "third_party/WebKit/public/platform/WebString.h"
10 10
(...skipping 12 matching lines...) Expand all
23 &MockWebRTCPeerConnectionHandlerClient::didAddRemoteStreamWorker)); 23 &MockWebRTCPeerConnectionHandlerClient::didAddRemoteStreamWorker));
24 ON_CALL(*this, didRemoveRemoteStream(_)).WillByDefault(testing::Invoke( 24 ON_CALL(*this, didRemoveRemoteStream(_)).WillByDefault(testing::Invoke(
25 this, 25 this,
26 &MockWebRTCPeerConnectionHandlerClient::didRemoveRemoteStreamWorker)); 26 &MockWebRTCPeerConnectionHandlerClient::didRemoveRemoteStreamWorker));
27 } 27 }
28 28
29 MockWebRTCPeerConnectionHandlerClient:: 29 MockWebRTCPeerConnectionHandlerClient::
30 ~MockWebRTCPeerConnectionHandlerClient() {} 30 ~MockWebRTCPeerConnectionHandlerClient() {}
31 31
32 void MockWebRTCPeerConnectionHandlerClient::didGenerateICECandidateWorker( 32 void MockWebRTCPeerConnectionHandlerClient::didGenerateICECandidateWorker(
33 const WebKit::WebRTCICECandidate& candidate) { 33 const blink::WebRTCICECandidate& candidate) {
34 if (!candidate.isNull()) { 34 if (!candidate.isNull()) {
35 candidate_sdp_ = UTF16ToUTF8(candidate.candidate()); 35 candidate_sdp_ = UTF16ToUTF8(candidate.candidate());
36 candidate_mline_index_ = candidate.sdpMLineIndex(); 36 candidate_mline_index_ = candidate.sdpMLineIndex();
37 candidate_mid_ = UTF16ToUTF8(candidate.sdpMid()); 37 candidate_mid_ = UTF16ToUTF8(candidate.sdpMid());
38 } else { 38 } else {
39 candidate_sdp_ = ""; 39 candidate_sdp_ = "";
40 candidate_mline_index_ = -1; 40 candidate_mline_index_ = -1;
41 candidate_mid_ = ""; 41 candidate_mid_ = "";
42 } 42 }
43 } 43 }
44 44
45 void MockWebRTCPeerConnectionHandlerClient::didAddRemoteStreamWorker( 45 void MockWebRTCPeerConnectionHandlerClient::didAddRemoteStreamWorker(
46 const WebKit::WebMediaStream& stream_descriptor) { 46 const blink::WebMediaStream& stream_descriptor) {
47 remote_steam_ = stream_descriptor; 47 remote_steam_ = stream_descriptor;
48 } 48 }
49 49
50 void MockWebRTCPeerConnectionHandlerClient::didRemoveRemoteStreamWorker( 50 void MockWebRTCPeerConnectionHandlerClient::didRemoveRemoteStreamWorker(
51 const WebKit::WebMediaStream& stream_descriptor) { 51 const blink::WebMediaStream& stream_descriptor) {
52 remote_steam_.reset(); 52 remote_steam_.reset();
53 } 53 }
54 54
55 } // namespace content 55 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698