| Index: components/test_runner/mock_webrtc_peer_connection_handler.cc
|
| diff --git a/components/test_runner/mock_webrtc_peer_connection_handler.cc b/components/test_runner/mock_webrtc_peer_connection_handler.cc
|
| index 5f46a3779eb4eaf7ef5dab78ee13a25fb09a286d..4e438154a5c99234b651fc287a9d30fe05f110ac 100644
|
| --- a/components/test_runner/mock_webrtc_peer_connection_handler.cc
|
| +++ b/components/test_runner/mock_webrtc_peer_connection_handler.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include <stddef.h>
|
|
|
| +#include "components/test_runner/mock_constraints.h"
|
| #include "components/test_runner/mock_webrtc_data_channel_handler.h"
|
| #include "components/test_runner/mock_webrtc_dtmf_sender_handler.h"
|
| #include "components/test_runner/test_interfaces.h"
|
| @@ -164,12 +165,16 @@
|
| bool MockWebRTCPeerConnectionHandler::initialize(
|
| const WebRTCConfiguration& configuration,
|
| const WebMediaConstraints& constraints) {
|
| - interfaces_->GetDelegate()->PostTask(new RTCPeerConnectionStateTask(
|
| - this,
|
| - client_,
|
| - WebRTCPeerConnectionHandlerClient::ICEConnectionStateCompleted,
|
| - WebRTCPeerConnectionHandlerClient::ICEGatheringStateComplete));
|
| - return true;
|
| + if (MockConstraints::VerifyConstraints(constraints)) {
|
| + interfaces_->GetDelegate()->PostTask(new RTCPeerConnectionStateTask(
|
| + this,
|
| + client_,
|
| + WebRTCPeerConnectionHandlerClient::ICEConnectionStateCompleted,
|
| + WebRTCPeerConnectionHandlerClient::ICEGatheringStateComplete));
|
| + return true;
|
| + }
|
| +
|
| + return false;
|
| }
|
|
|
| void MockWebRTCPeerConnectionHandler::createOffer(
|
|
|