diff options
Diffstat (limited to 'WebCore/platform/mock/SpeechInputClientMock.cpp')
-rw-r--r-- | WebCore/platform/mock/SpeechInputClientMock.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/WebCore/platform/mock/SpeechInputClientMock.cpp b/WebCore/platform/mock/SpeechInputClientMock.cpp index 331209c..820152c 100644 --- a/WebCore/platform/mock/SpeechInputClientMock.cpp +++ b/WebCore/platform/mock/SpeechInputClientMock.cpp @@ -89,6 +89,12 @@ void SpeechInputClientMock::setRecognitionResult(const String& result, const Ato m_recognitionResult.set(language, result); } +void SpeechInputClientMock::clearResults() +{ + m_resultForEmptyLanguage = String(); + m_recognitionResult.clear(); +} + void SpeechInputClientMock::timerFired(WebCore::Timer<SpeechInputClientMock>*) { if (m_recording) { |