Index: content/shell/renderer/test_runner/test_runner.cc |
diff --git a/content/shell/renderer/test_runner/test_runner.cc b/content/shell/renderer/test_runner/test_runner.cc |
index 2a53e2fde87cd6d0810fb2a51cc075b3c63c1532..5a0bc05ae9f22f38bd81690dca13d0d32cb82b96 100644 |
--- a/content/shell/renderer/test_runner/test_runner.cc |
+++ b/content/shell/renderer/test_runner/test_runner.cc |
@@ -8,7 +8,6 @@ |
#include "base/logging.h" |
#include "content/shell/common/test_runner/test_preferences.h" |
-#include "content/shell/renderer/test_runner/MockWebSpeechInputController.h" |
#include "content/shell/renderer/test_runner/MockWebSpeechRecognizer.h" |
#include "content/shell/renderer/test_runner/TestInterfaces.h" |
#include "content/shell/renderer/test_runner/WebPermissions.h" |
@@ -237,10 +236,6 @@ class TestRunnerBindings : public gin::Wrappable<TestRunnerBindings> { |
void SetMIDISysexPermission(bool value); |
void GrantWebNotificationPermission(gin::Arguments* args); |
bool SimulateWebNotificationClick(const std::string& value); |
- void AddMockSpeechInputResult(const std::string& result, |
- double confidence, |
- const std::string& language); |
- void SetMockSpeechInputDumpRect(bool value); |
void AddMockSpeechRecognitionResult(const std::string& transcript, |
double confidence); |
void SetMockSpeechRecognitionError(const std::string& error, |
@@ -467,10 +462,6 @@ gin::ObjectTemplateBuilder TestRunnerBindings::GetObjectTemplateBuilder( |
&TestRunnerBindings::GrantWebNotificationPermission) |
.SetMethod("simulateWebNotificationClick", |
&TestRunnerBindings::SimulateWebNotificationClick) |
- .SetMethod("addMockSpeechInputResult", |
- &TestRunnerBindings::AddMockSpeechInputResult) |
- .SetMethod("setMockSpeechInputDumpRect", |
- &TestRunnerBindings::SetMockSpeechInputDumpRect) |
.SetMethod("addMockSpeechRecognitionResult", |
&TestRunnerBindings::AddMockSpeechRecognitionResult) |
.SetMethod("setMockSpeechRecognitionError", |
@@ -1188,18 +1179,6 @@ bool TestRunnerBindings::SimulateWebNotificationClick( |
return false; |
} |
-void TestRunnerBindings::AddMockSpeechInputResult(const std::string& result, |
- double confidence, |
- const std::string& language) { |
- if (runner_) |
- runner_->AddMockSpeechInputResult(result, confidence, language); |
-} |
- |
-void TestRunnerBindings::SetMockSpeechInputDumpRect(bool value) { |
- if (runner_) |
- runner_->SetMockSpeechInputDumpRect(value); |
-} |
- |
void TestRunnerBindings::AddMockSpeechRecognitionResult( |
const std::string& transcript, double confidence) { |
if (runner_) |
@@ -2523,21 +2502,6 @@ bool TestRunner::SimulateWebNotificationClick(const std::string& value) { |
return notification_presenter_->SimulateClick(value); |
} |
-void TestRunner::AddMockSpeechInputResult(const std::string& result, |
- double confidence, |
- const std::string& language) { |
-#if ENABLE_INPUT_SPEECH |
- proxy_->speechInputControllerMock()->addMockRecognitionResult( |
- WebString::fromUTF8(result), confidence, WebString::fromUTF8(language)); |
-#endif |
-} |
- |
-void TestRunner::SetMockSpeechInputDumpRect(bool value) { |
-#if ENABLE_INPUT_SPEECH |
- proxy_->speechInputControllerMock()->setDumpRect(value); |
-#endif |
-} |
- |
void TestRunner::AddMockSpeechRecognitionResult(const std::string& transcript, |
double confidence) { |
proxy_->speechRecognizerMock()->addMockResult( |