summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-04 11:08:07 +0000
committersatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-04 11:08:07 +0000
commit5083e35b338eee9928a0f79dd25d577709eaccf6 (patch)
tree6361e396c9d55736ea9430a4269e369026404fa6
parent3b1127720790197ff2e6f92ee4fdf4c878d3a49a (diff)
downloadchromium_src-5083e35b338eee9928a0f79dd25d577709eaccf6.zip
chromium_src-5083e35b338eee9928a0f79dd25d577709eaccf6.tar.gz
chromium_src-5083e35b338eee9928a0f79dd25d577709eaccf6.tar.bz2
Added more log messages to help track down an infrequent timeout in the test.
The test which times out can be seen at http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=SpeechInputBrowserTest.TestBasicRecognition&testType=browser_tests BUG=none TEST=none, since we are just adding more logging. TBR=bulach git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61356 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/speech/speech_input_browsertest.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/speech/speech_input_browsertest.cc b/chrome/browser/speech/speech_input_browsertest.cc
index 5724818..be85652 100644
--- a/chrome/browser/speech/speech_input_browsertest.cc
+++ b/chrome/browser/speech/speech_input_browsertest.cc
@@ -43,6 +43,7 @@ class FakeSpeechInputManager : public SpeechInputManager {
int render_process_id,
int render_view_id,
const gfx::Rect& element_rect) {
+ LOG(INFO) << "StartRecognition invoked.";
EXPECT_EQ(0, caller_id_);
EXPECT_EQ(NULL, delegate_);
caller_id_ = caller_id;
@@ -52,11 +53,13 @@ class FakeSpeechInputManager : public SpeechInputManager {
&FakeSpeechInputManager::SetFakeRecognitionResult));
}
void CancelRecognition(int caller_id) {
+ LOG(INFO) << "CancelRecognition invoked.";
EXPECT_EQ(caller_id_, caller_id);
caller_id_ = 0;
delegate_ = NULL;
}
void StopRecording(int caller_id) {
+ LOG(INFO) << "StopRecording invoked.";
EXPECT_EQ(caller_id_, caller_id);
// Nothing to do here since we aren't really recording.
}
@@ -64,6 +67,7 @@ class FakeSpeechInputManager : public SpeechInputManager {
private:
void SetFakeRecognitionResult() {
if (caller_id_) { // Do a check in case we were cancelled..
+ LOG(INFO) << "Setting fake recognition result.";
delegate_->DidCompleteRecording(caller_id_);
delegate_->SetRecognitionResult(caller_id_,
ASCIIToUTF16(kTestResult));