| Index: components/test_runner/mock_web_user_media_client.cc
|
| diff --git a/components/test_runner/mock_web_user_media_client.cc b/components/test_runner/mock_web_user_media_client.cc
|
| index a5f8bdcbe76c7fdb72b5835db62261d0f31376fe..4197a268e105f418bf8698d1ac58a536989f57ca 100644
|
| --- a/components/test_runner/mock_web_user_media_client.cc
|
| +++ b/components/test_runner/mock_web_user_media_client.cc
|
| @@ -8,6 +8,7 @@
|
|
|
| #include "base/logging.h"
|
| #include "base/macros.h"
|
| +#include "components/test_runner/mock_constraints.h"
|
| #include "components/test_runner/web_test_delegate.h"
|
| #include "third_party/WebKit/public/platform/WebMediaConstraints.h"
|
| #include "third_party/WebKit/public/platform/WebMediaDeviceInfo.h"
|
| @@ -145,6 +146,22 @@
|
| return;
|
| }
|
|
|
| + WebMediaConstraints constraints = request.audioConstraints();
|
| + WebString failed_constraint;
|
| + if (!constraints.isNull() &&
|
| + !MockConstraints::VerifyConstraints(constraints, &failed_constraint)) {
|
| + delegate_->PostTask(new UserMediaRequestConstraintFailedTask(
|
| + this, request, failed_constraint));
|
| + return;
|
| + }
|
| + constraints = request.videoConstraints();
|
| + if (!constraints.isNull() &&
|
| + !MockConstraints::VerifyConstraints(constraints, &failed_constraint)) {
|
| + delegate_->PostTask(new UserMediaRequestConstraintFailedTask(
|
| + this, request, failed_constraint));
|
| + return;
|
| + }
|
| +
|
| WebMediaStream stream;
|
| stream.initialize(WebVector<WebMediaStreamTrack>(),
|
| WebVector<WebMediaStreamTrack>());
|
|
|