| Index: content/browser/speech/mock_google_speech_recognition_server_delegate.h
|
| diff --git a/content/browser/speech/mock_google_speech_recognition_server_delegate.h b/content/browser/speech/mock_google_speech_recognition_server_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2c566c07789ce18d92044e42702a296f5873d062
|
| --- /dev/null
|
| +++ b/content/browser/speech/mock_google_speech_recognition_server_delegate.h
|
| @@ -0,0 +1,23 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_BROWSER_SPEECH_MOCK_GOOGLE_SPEECH_RECOGNITION_SERVER_DELEGATE_H_
|
| +#define CONTENT_BROWSER_SPEECH_MOCK_GOOGLE_SPEECH_RECOGNITION_SERVER_DELEGATE_H_
|
| +#pragma once
|
| +
|
| +namespace speech {
|
| +// Interface for tests aimed at intercepting events triggered by mock
|
| +// implementations of the remote Google speech recognition webservices
|
| +// (MockGoogleOneShotServer and MockGoogleStreamingServer).
|
| +class MockGoogleSpeechRecognitionServerDelegate {
|
| + public:
|
| + virtual void OnClientConnected() = 0;
|
| + virtual void OnClientAudioUpload() = 0;
|
| + virtual void OnClientAudioUploadComplete() = 0;
|
| + virtual void OnClientDisconnected() = 0;
|
| +};
|
| +
|
| +} // namespace speech
|
| +
|
| +#endif // CONTENT_BROWSER_SPEECH_MOCK_GOOGLE_SPEECH_RECOGNITION_SERVER_DELEGATE_H_
|
|
|