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

Unified Diff: content/public/browser/speech_recognition_manager.h

Issue 10703141: End-to-end browser tests for speech recognition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved test to /chrome/test 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
« no previous file with comments | « content/browser/speech/speech_recognizer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/speech_recognition_manager.h
diff --git a/content/public/browser/speech_recognition_manager.h b/content/public/browser/speech_recognition_manager.h
index db6f80e66ea30dd8cc2482aa5c6d44938d6cce00..8c76633fc07db16e4641145114424476b6361e0f 100644
--- a/content/public/browser/speech_recognition_manager.h
+++ b/content/public/browser/speech_recognition_manager.h
@@ -10,6 +10,10 @@
#include "content/common/content_export.h"
#include "content/public/common/speech_recognition_result.h"
+namespace media {
+class AudioManager;
+}
+
namespace content {
class SpeechRecognitionEventListener;
@@ -34,6 +38,13 @@ class SpeechRecognitionManager {
// Returns the singleton instance.
static CONTENT_EXPORT SpeechRecognitionManager* GetInstance();
+ // Overrides the AudioManager that will be used for tests.
+ static CONTENT_EXPORT void SetAudioManagerForTests(
+ media::AudioManager* audio_manager);
+
+ // Sets the ID that will be used by URLFetcher requests.
+ static CONTENT_EXPORT void SetURLFetcherIDForTests(int url_fetcher_id);
+
// Creates a new recognition session.
virtual int CreateSession(const SpeechRecognitionSessionConfig& config) = 0;
« no previous file with comments | « content/browser/speech/speech_recognizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698