Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(507)

Unified Diff: content/shell/renderer/test_runner/test_runner.cc

Issue 268723002: Remove MockWebSpeechInputController (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/renderer/test_runner/test_runner.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « content/shell/renderer/test_runner/test_runner.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698