diff options
author | janx@chromium.org <janx@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-12 07:38:01 +0000 |
---|---|---|
committer | janx@chromium.org <janx@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-12 07:38:01 +0000 |
commit | cec5983338c93312e6a049ad31f028c25f7d6abc (patch) | |
tree | 07d512db3a6ca8a8debefae72ff4b68cc2156c9c /content/browser/speech/google_streaming_remote_engine.cc | |
parent | 494a215ee29a52f46aa785dbe215a6425505e26c (diff) | |
download | chromium_src-cec5983338c93312e6a049ad31f028c25f7d6abc.zip chromium_src-cec5983338c93312e6a049ad31f028c25f7d6abc.tar.gz chromium_src-cec5983338c93312e6a049ad31f028c25f7d6abc.tar.bz2 |
Add browser tests for the Web Speech Recognition API.
Introduce an event-driven timeline utility to verify if everything in
test scenarii is happening on the right thread and in the right order,
and add a simple precheck browser test that opens an HTML test page and
verifies that creating a SpeechRecognition object works.
BUG=301906
Review URL: https://codereview.chromium.org/23500011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228332 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/speech/google_streaming_remote_engine.cc')
-rw-r--r-- | content/browser/speech/google_streaming_remote_engine.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/speech/google_streaming_remote_engine.cc b/content/browser/speech/google_streaming_remote_engine.cc index a067278..b6b68d1 100644 --- a/content/browser/speech/google_streaming_remote_engine.cc +++ b/content/browser/speech/google_streaming_remote_engine.cc @@ -35,10 +35,9 @@ const char kWebServiceBaseUrl[] = "https://www.google.com/speech-api/full-duplex/v1"; const char kDownstreamUrl[] = "/down?"; const char kUpstreamUrl[] = "/up?"; -const int kAudioPacketIntervalMs = 100; const AudioEncoder::Codec kDefaultAudioCodec = AudioEncoder::CODEC_FLAC; -// This mathces the maximum maxAlternatives value supported by the server. +// This matches the maximum maxAlternatives value supported by the server. const uint32 kMaxMaxAlternatives = 30; // TODO(hans): Remove this and other logging when we don't need it anymore. @@ -86,6 +85,7 @@ std::string GetAPIKey() { } // namespace +const int GoogleStreamingRemoteEngine::kAudioPacketIntervalMs = 100; const int GoogleStreamingRemoteEngine::kUpstreamUrlFetcherIdForTesting = 0; const int GoogleStreamingRemoteEngine::kDownstreamUrlFetcherIdForTesting = 1; const int GoogleStreamingRemoteEngine::kWebserviceStatusNoError = 0; |