41 #include <boost/test/unit_test.hpp>
53 #define N_1MB 1024*1024/4
54 #define N_10MB 10*1024*1024/4
55 #define N_200MB 100*1024*1024/4
63 std::vector<size_t> lDepths;
65 lDepths.push_back(
N_4B);
66 lDepths.push_back(
N_1kB);
67 lDepths.push_back(10 *
N_1kB);
68 lDepths.push_back(100 *
N_1kB);
69 lDepths.push_back(
N_1MB);
73 for (std::vector<size_t>::iterator lIt=lDepths.begin(); lIt != lDepths.end(); ) {
74 if ((*lIt) > aMaxSize)
75 lIt = lDepths.erase(lIt);
87 for(
size_t i=0; i<lDepths.size(); i++) {
88 const size_t N = lDepths.at(i);
89 BOOST_TEST_MESSAGE(
" N = " << N);
93 std::vector<uint32_t>
xx;
95 for (
size_t i=0; i!= N; ++i )
97 xx.push_back (
static_cast<uint32_t
> ( rand() ) );
117 std::vector< uint32_t >::const_iterator
j=
xx.begin();
135 for(
size_t i=0; i<lDepths.size(); i++) {
136 const size_t N = lDepths.at(i);
137 BOOST_TEST_MESSAGE(
" N = " << N);
141 std::vector<uint32_t>
xx;
144 for (
size_t i=0; i!= N; ++i )
146 xx.push_back (
static_cast<uint32_t
> ( rand() ) );
171 for(
size_t i=0; i<lDepths.size(); i++) {
172 const size_t N = lDepths.at(i);
173 BOOST_TEST_MESSAGE(
" N = " << N);
177 std::vector<uint32_t>
xx;
179 std::vector<uint32_t> yy;
181 for (
size_t i=0; i!= N; ++i )
183 xx.push_back (
static_cast<uint32_t
> ( rand() ) );
184 yy.push_back (
static_cast<uint32_t
> ( rand() ) );
225 std::vector< uint32_t >::const_iterator
j=
xx.begin();
249 std::vector<uint32_t>
xx;
274 std::vector<uint32_t>
xx;
285 std::vector<uint32_t>
xx;