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

Unified Diff: webrtc/common_audio/vad/vad_filterbank_unittest.cc

Issue 1230503003: Update a ton of audio code to use size_t more correctly and in general reduce (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 4 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 | « webrtc/common_audio/vad/vad_filterbank.c ('k') | webrtc/common_audio/vad/vad_sp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_audio/vad/vad_filterbank_unittest.cc
diff --git a/webrtc/common_audio/vad/vad_filterbank_unittest.cc b/webrtc/common_audio/vad/vad_filterbank_unittest.cc
index 4232cbcff491a6de2bbdedf1abda96d29041a803..11b503a19602bd26e17b2065e6aae6a3ec6b0979 100644
--- a/webrtc/common_audio/vad/vad_filterbank_unittest.cc
+++ b/webrtc/common_audio/vad/vad_filterbank_unittest.cc
@@ -38,7 +38,7 @@ TEST_F(VadTest, vad_filterbank) {
// Construct a speech signal that will trigger the VAD in all modes. It is
// known that (i * i) will wrap around, but that doesn't matter in this case.
int16_t speech[kMaxFrameLength];
- for (int16_t i = 0; i < kMaxFrameLength; ++i) {
+ for (size_t i = 0; i < kMaxFrameLength; ++i) {
speech[i] = static_cast<int16_t>(i * i);
}
@@ -73,7 +73,7 @@ TEST_F(VadTest, vad_filterbank) {
// Verify that all ones in gives kOffsetVector out. Any other constant input
// will have a small impact in the sub bands.
- for (int16_t i = 0; i < kMaxFrameLength; ++i) {
+ for (size_t i = 0; i < kMaxFrameLength; ++i) {
speech[i] = 1;
}
for (size_t j = 0; j < kFrameLengthsSize; ++j) {
« no previous file with comments | « webrtc/common_audio/vad/vad_filterbank.c ('k') | webrtc/common_audio/vad/vad_sp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698