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

Unified Diff: content/shell/renderer/test_runner/web_test_proxy.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
« no previous file with comments | « content/shell/renderer/test_runner/test_runner.cc ('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/web_test_proxy.cc
diff --git a/content/shell/renderer/test_runner/web_test_proxy.cc b/content/shell/renderer/test_runner/web_test_proxy.cc
index 989502b0100b59505e44d91b009e805486c0e7c3..e418aeaa516c7a62ec7325bddd50d88da48c28d6 100644
--- a/content/shell/renderer/test_runner/web_test_proxy.cc
+++ b/content/shell/renderer/test_runner/web_test_proxy.cc
@@ -10,7 +10,6 @@
#include "base/debug/trace_event.h"
#include "base/logging.h"
#include "base/strings/stringprintf.h"
-#include "content/shell/renderer/test_runner/MockWebSpeechRecognizer.h"
#include "content/shell/renderer/test_runner/SpellCheckClient.h"
#include "content/shell/renderer/test_runner/TestCommon.h"
#include "content/shell/renderer/test_runner/TestInterfaces.h"
@@ -22,6 +21,7 @@
#include "content/shell/renderer/test_runner/mock_color_chooser.h"
#include "content/shell/renderer/test_runner/mock_screen_orientation_client.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/mock_web_user_media_client.h"
#include "content/shell/renderer/test_runner/test_runner.h"
#include "content/shell/renderer/test_runner/web_test_runner.h"
@@ -332,7 +332,7 @@ void WebTestProxyBase::SetDelegate(WebTestDelegate* delegate) {
delegate_ = delegate;
spellcheck_->setDelegate(delegate);
if (speech_recognizer_.get())
- speech_recognizer_->setDelegate(delegate);
+ speech_recognizer_->SetDelegate(delegate);
}
blink::WebView* WebTestProxyBase::GetWebView() const {
@@ -584,7 +584,7 @@ blink::WebMIDIClientMock* WebTestProxyBase::GetMIDIClientMock() {
MockWebSpeechRecognizer* WebTestProxyBase::GetSpeechRecognizerMock() {
if (!speech_recognizer_.get()) {
speech_recognizer_.reset(new MockWebSpeechRecognizer());
- speech_recognizer_->setDelegate(delegate_);
+ speech_recognizer_->SetDelegate(delegate_);
}
return speech_recognizer_.get();
}
« no previous file with comments | « content/shell/renderer/test_runner/test_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698