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

Unified Diff: content/browser/speech/mock_google_speech_recognition_server_delegate.h

Issue 10703141: End-to-end browser tests for speech recognition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698