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

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

Issue 429953002: test_runner: Migrate MockWebSpeechRecognizer to Chromium C++ style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
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 c039b189421fec2d03daa52178086b38ededdd58..44161185a70e9d8c29d2055ddbc6b4c1ef2eaff0 100644
--- a/content/shell/renderer/test_runner/test_runner.cc
+++ b/content/shell/renderer/test_runner/test_runner.cc
@@ -8,10 +8,10 @@
#include "base/logging.h"
#include "content/shell/common/test_runner/test_preferences.h"
-#include "content/shell/renderer/test_runner/MockWebSpeechRecognizer.h"
#include "content/shell/renderer/test_runner/TestInterfaces.h"
#include "content/shell/renderer/test_runner/WebTestDelegate.h"
#include "content/shell/renderer/test_runner/mock_web_push_client.h"
+#include "content/shell/renderer/test_runner/mock_web_speech_recognizer.h"
#include "content/shell/renderer/test_runner/notification_presenter.h"
#include "content/shell/renderer/test_runner/web_permissions.h"
#include "content/shell/renderer/test_runner/web_test_proxy.h"
@@ -2751,18 +2751,18 @@ bool TestRunner::SimulateWebNotificationClick(const std::string& value) {
void TestRunner::AddMockSpeechRecognitionResult(const std::string& transcript,
double confidence) {
- proxy_->GetSpeechRecognizerMock()->addMockResult(
+ proxy_->GetSpeechRecognizerMock()->AddMockResult(
WebString::fromUTF8(transcript), confidence);
}
void TestRunner::SetMockSpeechRecognitionError(const std::string& error,
const std::string& message) {
- proxy_->GetSpeechRecognizerMock()->setError(WebString::fromUTF8(error),
- WebString::fromUTF8(message));
+ proxy_->GetSpeechRecognizerMock()->SetError(WebString::fromUTF8(error),
+ WebString::fromUTF8(message));
}
bool TestRunner::WasMockSpeechRecognitionAborted() {
- return proxy_->GetSpeechRecognizerMock()->wasAborted();
+ return proxy_->GetSpeechRecognizerMock()->WasAborted();
}
void TestRunner::AddWebPageOverlay() {
« no previous file with comments | « content/shell/renderer/test_runner/mock_web_speech_recognizer.cc ('k') | content/shell/renderer/test_runner/web_test_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698