summaryrefslogtreecommitdiffstats
path: root/content/browser/speech/endpointer/endpointer_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/speech/endpointer/endpointer_unittest.cc')
-rw-r--r--content/browser/speech/endpointer/endpointer_unittest.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/content/browser/speech/endpointer/endpointer_unittest.cc b/content/browser/speech/endpointer/endpointer_unittest.cc
index 240e5dc..37f2339 100644
--- a/content/browser/speech/endpointer/endpointer_unittest.cc
+++ b/content/browser/speech/endpointer/endpointer_unittest.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "content/browser/speech/audio_buffer.h"
#include "content/browser/speech/endpointer/endpointer.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -116,7 +117,8 @@ class EndpointerFrameProcessor : public FrameProcessor {
: endpointer_(endpointer) {}
EpStatus ProcessFrame(int64 time, int16* samples, int frame_size) {
- endpointer_->ProcessAudio(samples, kFrameSize, NULL);
+ AudioChunk frame(reinterpret_cast<uint8*>(samples), kFrameSize * 2, 2);
+ endpointer_->ProcessAudio(frame, NULL);
int64 ep_time;
return endpointer_->Status(&ep_time);
}