diff options
author | Yuri Gorshenin <ygorshenin@chromium.org> | 2015-03-11 13:52:23 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:38:43 +0300 |
commit | 89814f4c17032f40e76e3947ed4a8418620bad3b (patch) | |
tree | 85fc87df8cff4c468c47bbaf1ca06c1d8321775f /drape | |
parent | d1acff77167c88e47d43edb90d2f0924e042302f (diff) |
Fixes.
Diffstat (limited to 'drape')
-rw-r--r-- | drape/drape_tests/buffer_tests.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drape/drape_tests/buffer_tests.cpp b/drape/drape_tests/buffer_tests.cpp index 1483e9eae8..65a94cd688 100644 --- a/drape/drape_tests/buffer_tests.cpp +++ b/drape/drape_tests/buffer_tests.cpp @@ -6,6 +6,8 @@ #include "../data_buffer.hpp" #include "../index_buffer.hpp" +#include "../../std/cstdlib.hpp" + #include <gmock/gmock.h> using namespace emul; @@ -62,12 +64,14 @@ UNIT_TEST(UploadDataTest) UNIT_TEST(ParticalUploadDataTest) { - float part1Data[3 * 30]; - for (int i = 0; i < 3 * 30; ++i) + size_t const kPart1Size = 3 * 30; + float part1Data[kPart1Size]; + for (int i = 0; i < kPart1Size; ++i) part1Data[i] = (float)i; - float part2Data[3 * 100]; - for (int i = 0; i < 3 * 100; ++i) + size_t const kPart2Size = 3 * 100; + float part2Data[kPart2Size]; + for (int i = 0; i < kPart2Size; ++i) part2Data[i] = (float)i; InSequence s; |