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

Unified Diff: webrtc/system_wrappers/source/aligned_array_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/system_wrappers/interface/aligned_array.h ('k') | webrtc/test/fake_audio_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/system_wrappers/source/aligned_array_unittest.cc
diff --git a/webrtc/system_wrappers/source/aligned_array_unittest.cc b/webrtc/system_wrappers/source/aligned_array_unittest.cc
index f25c7178d21635533ef410f7230b2e20d12bfafd..8b8d50dae1fb4f9fb5e472fb9d99e1827518777e 100644
--- a/webrtc/system_wrappers/source/aligned_array_unittest.cc
+++ b/webrtc/system_wrappers/source/aligned_array_unittest.cc
@@ -34,16 +34,16 @@ TEST(AlignedArrayTest, CheckAlignment) {
}
TEST(AlignedArrayTest, CheckOverlap) {
- AlignedArray<int> arr(10, 7, 128);
+ AlignedArray<size_t> arr(10, 7, 128);
for (int i = 0; i < 10; ++i) {
- for (int j = 0; j < 7; ++j) {
+ for (size_t j = 0; j < 7; ++j) {
arr.At(i, j) = 20 * i + j;
}
}
for (int i = 0; i < 10; ++i) {
- for (int j = 0; j < 7; ++j) {
+ for (size_t j = 0; j < 7; ++j) {
ASSERT_EQ(arr.At(i, j), 20 * i + j);
ASSERT_EQ(arr.Row(i)[j], 20 * i + j);
ASSERT_EQ(arr.Array()[i][j], 20 * i + j);
@@ -54,7 +54,7 @@ TEST(AlignedArrayTest, CheckOverlap) {
TEST(AlignedArrayTest, CheckRowsCols) {
AlignedArray<bool> arr(10, 7, 128);
ASSERT_EQ(arr.rows(), 10);
- ASSERT_EQ(arr.cols(), 7);
+ ASSERT_EQ(arr.cols(), 7u);
}
} // namespace webrtc
« no previous file with comments | « webrtc/system_wrappers/interface/aligned_array.h ('k') | webrtc/test/fake_audio_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698