commit | e8d191f00fff1ed3574d6a9d7e6d62b1acb5d5d3 | [log] [tgz] |
---|---|---|
author | Henrik Kjellander <kjellander@webrtc.org> | Sat Jun 20 20:10:57 2015 +0200 |
committer | Henrik Kjellander <kjellander@webrtc.org> | Sat Jun 20 18:11:02 2015 +0000 |
tree | 498a0e97f0a641f46941a550b97d9458ef81502c | |
parent | 6ee4816d6fdb946f9189473e558278c5233d5281 [diff] [blame] |
Restore rows() and cols() in aligned_array.h These getters were removed in https://codereview.webrtc.org/1172163004 but are used in external code, so it makes sense to keep them around to make the class more useful. R=henrikg@webrtc.org, pkasting@chromium.org Review URL: https://codereview.webrtc.org/1178043005. Cr-Commit-Position: refs/heads/master@{#9478}
diff --git a/webrtc/system_wrappers/source/aligned_array_unittest.cc b/webrtc/system_wrappers/source/aligned_array_unittest.cc index e5e556d..f25c717 100644 --- a/webrtc/system_wrappers/source/aligned_array_unittest.cc +++ b/webrtc/system_wrappers/source/aligned_array_unittest.cc
@@ -51,5 +51,10 @@ } } -} // namespace webrtc +TEST(AlignedArrayTest, CheckRowsCols) { + AlignedArray<bool> arr(10, 7, 128); + ASSERT_EQ(arr.rows(), 10); + ASSERT_EQ(arr.cols(), 7); +} +} // namespace webrtc