diff options
author | primiano@chromium.org <primiano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-19 11:42:52 +0000 |
---|---|---|
committer | primiano@chromium.org <primiano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-19 11:42:52 +0000 |
commit | 9c499ef9072ac5bdd9b4b2179a886700013582e2 (patch) | |
tree | 76655f104d2fac4b736a08cf60fed4e8cb84c3a8 /content/browser/speech/speech_recognizer_impl_unittest.cc | |
parent | df1287e11bdd38f6d952e9ba0171ad23334bb5b4 (diff) | |
download | chromium_src-9c499ef9072ac5bdd9b4b2179a886700013582e2.zip chromium_src-9c499ef9072ac5bdd9b4b2179a886700013582e2.tar.gz chromium_src-9c499ef9072ac5bdd9b4b2179a886700013582e2.tar.bz2 |
Refactoring of chrome speech recognition architecture (CL1.6)
Renamed caller_id -> session_id in speech recognition classes. This is a partial refactoring in preparation for next CLs.
BUG=116954
TEST=none.
Review URL: http://codereview.chromium.org/9972008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132979 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/speech/speech_recognizer_impl_unittest.cc')
-rw-r--r-- | content/browser/speech/speech_recognizer_impl_unittest.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/content/browser/speech/speech_recognizer_impl_unittest.cc b/content/browser/speech/speech_recognizer_impl_unittest.cc index 5dbe6cc..d9658f9 100644 --- a/content/browser/speech/speech_recognizer_impl_unittest.cc +++ b/content/browser/speech/speech_recognizer_impl_unittest.cc @@ -147,52 +147,52 @@ class SpeechRecognizerImplTest : public content::SpeechRecognitionEventListener, } // Overridden from content::SpeechRecognitionEventListener: - virtual void OnAudioStart(int caller_id) OVERRIDE { + virtual void OnAudioStart(int session_id) OVERRIDE { audio_started_ = true; CheckEventsConsistency(); } - virtual void OnAudioEnd(int caller_id) OVERRIDE { + virtual void OnAudioEnd(int session_id) OVERRIDE { audio_ended_ = true; CheckEventsConsistency(); } virtual void OnRecognitionResult( - int caller_id, const content::SpeechRecognitionResult& result) OVERRIDE { + int session_id, const content::SpeechRecognitionResult& result) OVERRIDE { result_received_ = true; } virtual void OnRecognitionError( - int caller_id, const content::SpeechRecognitionError& error) OVERRIDE { + int session_id, const content::SpeechRecognitionError& error) OVERRIDE { EXPECT_TRUE(recognition_started_); EXPECT_FALSE(recognition_ended_); error_ = error.code; } - virtual void OnAudioLevelsChange(int caller_id, float volume, + virtual void OnAudioLevelsChange(int session_id, float volume, float noise_volume) OVERRIDE { volume_ = volume; noise_volume_ = noise_volume; } - virtual void OnRecognitionEnd(int caller_id) OVERRIDE { + virtual void OnRecognitionEnd(int session_id) OVERRIDE { recognition_ended_ = true; CheckEventsConsistency(); } - virtual void OnRecognitionStart(int caller_id) OVERRIDE { + virtual void OnRecognitionStart(int session_id) OVERRIDE { recognition_started_ = true; CheckEventsConsistency(); } - virtual void OnEnvironmentEstimationComplete(int caller_id) OVERRIDE {} + virtual void OnEnvironmentEstimationComplete(int session_id) OVERRIDE {} - virtual void OnSoundStart(int caller_id) OVERRIDE { + virtual void OnSoundStart(int session_id) OVERRIDE { sound_started_ = true; CheckEventsConsistency(); } - virtual void OnSoundEnd(int caller_id) OVERRIDE { + virtual void OnSoundEnd(int session_id) OVERRIDE { sound_ended_ = true; CheckEventsConsistency(); } |