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

Side by Side Diff: chrome/browser/speech/endpointer/endpointer_unittest.cc

Issue 5270010: Revert 67662 - FBTF: Remove unneeded headers from base/ (part 10)... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/task.h"
5 #include "chrome/browser/speech/endpointer/endpointer.h" 6 #include "chrome/browser/speech/endpointer/endpointer.h"
6 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
7 8
8 namespace { 9 namespace {
9 const int kFrameRate = 50; // 20 ms long frames for AMR encoding. 10 const int kFrameRate = 50; // 20 ms long frames for AMR encoding.
10 const int kSampleRate = 8000; // 8 k samples per second for AMR encoding. 11 const int kSampleRate = 8000; // 8 k samples per second for AMR encoding.
11 12
12 // At 8 sample per second a 20 ms frame is 160 samples, which corrsponds 13 // At 8 sample per second a 20 ms frame is 160 samples, which corrsponds
13 // to the AMR codec. 14 // to the AMR codec.
14 const int kFrameSize = kSampleRate / kFrameRate; // 160 samples. 15 const int kFrameSize = kSampleRate / kFrameRate; // 160 samples.
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 endpointer.set_speech_input_complete_silence_length(long_timeout); 137 endpointer.set_speech_input_complete_silence_length(long_timeout);
137 endpointer.StartSession(); 138 endpointer.StartSession();
138 139
139 EndpointerFrameProcessor frame_processor(&endpointer); 140 EndpointerFrameProcessor frame_processor(&endpointer);
140 RunEndpointerEventsTest(&frame_processor); 141 RunEndpointerEventsTest(&frame_processor);
141 142
142 endpointer.EndSession(); 143 endpointer.EndSession();
143 } 144 }
144 145
145 } // namespace speech_input 146 } // namespace speech_input
OLDNEW
« no previous file with comments | « chrome/browser/shell_integration_linux.cc ('k') | chrome/browser/sync/glue/autofill_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698