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

Unified Diff: components/test_runner/mock_webrtc_peer_connection_handler.cc

Issue 1605513002: Remove MockConstraints (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed RTCPeerConnection test Created 4 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/test_runner/mock_web_user_media_client.cc ('k') | components/test_runner/test_runner.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4e438154a5c99234b651fc287a9d30fe05f110ac..5f46a3779eb4eaf7ef5dab78ee13a25fb09a286d 100644
--- a/components/test_runner/mock_webrtc_peer_connection_handler.cc
+++ b/components/test_runner/mock_webrtc_peer_connection_handler.cc
@@ -6,7 +6,6 @@
#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"
@@ -165,16 +164,12 @@ MockWebRTCPeerConnectionHandler::MockWebRTCPeerConnectionHandler(
bool MockWebRTCPeerConnectionHandler::initialize(
const WebRTCConfiguration& configuration,
const WebMediaConstraints& constraints) {
- if (MockConstraints::VerifyConstraints(constraints)) {
- interfaces_->GetDelegate()->PostTask(new RTCPeerConnectionStateTask(
- this,
- client_,
- WebRTCPeerConnectionHandlerClient::ICEConnectionStateCompleted,
- WebRTCPeerConnectionHandlerClient::ICEGatheringStateComplete));
- return true;
- }
-
- return false;
+ interfaces_->GetDelegate()->PostTask(new RTCPeerConnectionStateTask(
+ this,
+ client_,
+ WebRTCPeerConnectionHandlerClient::ICEConnectionStateCompleted,
+ WebRTCPeerConnectionHandlerClient::ICEGatheringStateComplete));
+ return true;
}
void MockWebRTCPeerConnectionHandler::createOffer(
« no previous file with comments | « components/test_runner/mock_web_user_media_client.cc ('k') | components/test_runner/test_runner.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698