Index: components/test_runner/web_test_proxy.cc |
diff --git a/components/test_runner/web_test_proxy.cc b/components/test_runner/web_test_proxy.cc |
index d2667cdd7d1bba9f776ebc6760826d0d5c5c715c..44a1fc9740c153d690655a151ce3ff64b6ff938c 100644 |
--- a/components/test_runner/web_test_proxy.cc |
+++ b/components/test_runner/web_test_proxy.cc |
@@ -1408,6 +1408,20 @@ void WebTestProxyBase::ResetInputMethod() { |
web_widget_->confirmComposition(); |
} |
+void WebTestProxyBase::CheckIfAudioSinkExistsAndIsAuthorized( |
+ const blink::WebString& sink_id, |
+ const blink::WebSecurityOrigin& security_origin, |
+ blink::WebSetSinkIdCallbacks* web_callbacks) { |
+ scoped_ptr<blink::WebSetSinkIdCallbacks> callback(web_callbacks); |
+ std::string device_id = sink_id.utf8(); |
+ if (device_id == "valid" || device_id.empty()) |
+ callback->onSuccess(); |
+ else if (device_id == "unauthorized") |
+ callback->onError(blink::WebSetSinkIdError::NotAuthorized); |
+ else |
+ callback->onError(blink::WebSetSinkIdError::NotFound); |
+} |
+ |
blink::WebString WebTestProxyBase::acceptLanguages() { |
return blink::WebString::fromUTF8(accept_languages_); |
} |