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

Side by Side Diff: chrome/browser/chromeos/accessibility/speech_monitor.cc

Issue 866713002: Reland: Reenable oobe spoken feedback test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rewrite OOBE test to be based on LoginManagerTest and not assume initial speech, git cl format. Created 5 years, 10 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 unified diff | Download patch
OLDNEW
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 "chrome/browser/chromeos/accessibility/speech_monitor.h" 5 #include "chrome/browser/chromeos/accessibility/speech_monitor.h"
6 6
7 namespace chromeos { 7 namespace chromeos {
8 8
9 namespace { 9 namespace {
10 const char kChromeVoxEnabledMessage[] = "chrome vox spoken feedback is ready"; 10 const char kChromeVoxEnabledMessage[] = "chrome vox spoken feedback is ready";
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 voice.name = "SpeechMonitor"; 66 voice.name = "SpeechMonitor";
67 voice.events.insert(TTS_EVENT_END); 67 voice.events.insert(TTS_EVENT_END);
68 } 68 }
69 69
70 std::string SpeechMonitor::error() { 70 std::string SpeechMonitor::error() {
71 return ""; 71 return "";
72 } 72 }
73 73
74 void SpeechMonitor::WillSpeakUtteranceWithVoice(const Utterance* utterance, 74 void SpeechMonitor::WillSpeakUtteranceWithVoice(const Utterance* utterance,
75 const VoiceData& voice_data) { 75 const VoiceData& voice_data) {
76 VLOG(0) << "Speaking " << utterance->text();
David Tseng 2015/01/27 18:16:45 nit: remove
dmazzoni 2015/01/27 18:38:44 I'm okay with leaving it as a VLOG, but I learned
76 utterance_queue_.push_back(utterance->text()); 77 utterance_queue_.push_back(utterance->text());
77 if (loop_runner_.get()) 78 if (loop_runner_.get())
78 loop_runner_->Quit(); 79 loop_runner_->Quit();
79 } 80 }
80 81
81 } // namespace chromeos 82 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698