OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/shell/renderer/test_runner/web_test_proxy.h" | 5 #include "content/shell/renderer/test_runner/web_test_proxy.h" |
6 | 6 |
7 #include <cctype> | 7 #include <cctype> |
8 | 8 |
9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 } | 886 } |
887 | 887 |
888 blink::WebNotificationPresenter* WebTestProxyBase::GetNotificationPresenter() { | 888 blink::WebNotificationPresenter* WebTestProxyBase::GetNotificationPresenter() { |
889 return test_interfaces_->GetTestRunner()->notification_presenter(); | 889 return test_interfaces_->GetTestRunner()->notification_presenter(); |
890 } | 890 } |
891 | 891 |
892 blink::WebMIDIClient* WebTestProxyBase::GetWebMIDIClient() { | 892 blink::WebMIDIClient* WebTestProxyBase::GetWebMIDIClient() { |
893 return GetMIDIClientMock(); | 893 return GetMIDIClientMock(); |
894 } | 894 } |
895 | 895 |
896 blink::WebSpeechRecognizer* WebTestProxyBase::GetSpeechRecognizer() { | |
897 return GetSpeechRecognizerMock(); | |
898 } | |
899 | |
900 bool WebTestProxyBase::RequestPointerLock() { | 896 bool WebTestProxyBase::RequestPointerLock() { |
901 return test_interfaces_->GetTestRunner()->RequestPointerLock(); | 897 return test_interfaces_->GetTestRunner()->RequestPointerLock(); |
902 } | 898 } |
903 | 899 |
904 void WebTestProxyBase::RequestPointerUnlock() { | 900 void WebTestProxyBase::RequestPointerUnlock() { |
905 test_interfaces_->GetTestRunner()->RequestPointerUnlock(); | 901 test_interfaces_->GetTestRunner()->RequestPointerUnlock(); |
906 } | 902 } |
907 | 903 |
908 bool WebTestProxyBase::IsPointerLocked() { | 904 bool WebTestProxyBase::IsPointerLocked() { |
909 return test_interfaces_->GetTestRunner()->isPointerLocked(); | 905 return test_interfaces_->GetTestRunner()->isPointerLocked(); |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1338 if (!push_client_.get()) | 1334 if (!push_client_.get()) |
1339 push_client_.reset(new MockWebPushClient); | 1335 push_client_.reset(new MockWebPushClient); |
1340 return push_client_.get(); | 1336 return push_client_.get(); |
1341 } | 1337 } |
1342 | 1338 |
1343 blink::WebPushClient* WebTestProxyBase::GetWebPushClient() { | 1339 blink::WebPushClient* WebTestProxyBase::GetWebPushClient() { |
1344 return GetPushClientMock(); | 1340 return GetPushClientMock(); |
1345 } | 1341 } |
1346 | 1342 |
1347 } // namespace content | 1343 } // namespace content |
OLD | NEW |