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..0eab8ac2eda41516502c0e5932fe957edcec87dd 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_callback) { |
+ scoped_ptr<blink::WebSetSinkIdCallbacks> callback(web_callback); |
+ 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_); |
} |