OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 | 4 |
5 #include "components/test_runner/mock_webrtc_peer_connection_handler.h" | 5 #include "components/test_runner/mock_webrtc_peer_connection_handler.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 | 448 |
449 WebRTCSessionDescription MockWebRTCPeerConnectionHandler::localDescription() { | 449 WebRTCSessionDescription MockWebRTCPeerConnectionHandler::localDescription() { |
450 return local_description_; | 450 return local_description_; |
451 } | 451 } |
452 | 452 |
453 WebRTCSessionDescription MockWebRTCPeerConnectionHandler::remoteDescription() { | 453 WebRTCSessionDescription MockWebRTCPeerConnectionHandler::remoteDescription() { |
454 return remote_description_; | 454 return remote_description_; |
455 } | 455 } |
456 | 456 |
457 bool MockWebRTCPeerConnectionHandler::setConfiguration( | 457 bool MockWebRTCPeerConnectionHandler::setConfiguration( |
458 const WebRTCConfiguration& configuration) { | 458 const WebRTCConfiguration& configuration, |
| 459 WebRTCError& error) { |
459 return true; | 460 return true; |
460 } | 461 } |
461 | 462 |
462 bool MockWebRTCPeerConnectionHandler::addICECandidate( | 463 bool MockWebRTCPeerConnectionHandler::addICECandidate( |
463 const WebRTCICECandidate& ice_candidate) { | 464 const WebRTCICECandidate& ice_candidate) { |
464 client_->didGenerateICECandidate(ice_candidate); | 465 client_->didGenerateICECandidate(ice_candidate); |
465 return true; | 466 return true; |
466 } | 467 } |
467 | 468 |
468 bool MockWebRTCPeerConnectionHandler::addICECandidate( | 469 bool MockWebRTCPeerConnectionHandler::addICECandidate( |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 const WebMediaStreamTrack& track) { | 565 const WebMediaStreamTrack& track) { |
565 return new MockWebRTCDTMFSenderHandler(track, interfaces_->GetDelegate()); | 566 return new MockWebRTCDTMFSenderHandler(track, interfaces_->GetDelegate()); |
566 } | 567 } |
567 | 568 |
568 void MockWebRTCPeerConnectionHandler::stop() { | 569 void MockWebRTCPeerConnectionHandler::stop() { |
569 stopped_ = true; | 570 stopped_ = true; |
570 weak_factory_.InvalidateWeakPtrs(); | 571 weak_factory_.InvalidateWeakPtrs(); |
571 } | 572 } |
572 | 573 |
573 } // namespace test_runner | 574 } // namespace test_runner |
OLD | NEW |