Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/drape
diff options
context:
space:
mode:
authorYuri Gorshenin <ygorshenin@chromium.org>2015-03-11 13:52:23 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:38:43 +0300
commit89814f4c17032f40e76e3947ed4a8418620bad3b (patch)
tree85fc87df8cff4c468c47bbaf1ca06c1d8321775f /drape
parentd1acff77167c88e47d43edb90d2f0924e042302f (diff)
Fixes.
Diffstat (limited to 'drape')
-rw-r--r--drape/drape_tests/buffer_tests.cpp12
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;