Lines Matching refs:offsets

34 	SCP_vector<size_t> offsets;  in TEST()  local
45 offsets.push_back(x); in TEST()
48 ASSERT_EQ(offsets.size(), allocator.numAllocations()); in TEST()
52 while (offsets.size() > 512) { in TEST()
53 std::uniform_int_distribution<size_t> dis(0, offsets.size() - 1); in TEST()
54 auto el = std::next(offsets.begin(), dis(gen)); in TEST()
57 offsets.erase(el); in TEST()
59 ASSERT_EQ(offsets.size(), allocator.numAllocations()); in TEST()
62 ASSERT_EQ(offsets.size(), allocator.numAllocations()); in TEST()
74 offsets.push_back(x); in TEST()
77 ASSERT_EQ(offsets.size(), allocator.numAllocations()); in TEST()
80 while (!offsets.empty()) { in TEST()
81 std::uniform_int_distribution<size_t> dis(0, offsets.size() - 1); in TEST()
82 auto el = std::next(offsets.begin(), dis(gen)); in TEST()
85 offsets.erase(el); in TEST()
87 ASSERT_EQ(offsets.size(), allocator.numAllocations()); in TEST()
90 ASSERT_EQ(offsets.size(), allocator.numAllocations()); in TEST()
91 ASSERT_EQ((size_t)0, offsets.size()); in TEST()
97 SCP_vector<size_t> offsets; in TEST() local
100 offsets.push_back(allocator.allocate(10 * 1024 * 1024)); in TEST()
103 ASSERT_EQ(offsets.size(), allocator.numAllocations()); in TEST()
109 while (offsets.size() > 50) { in TEST()
110 std::uniform_int_distribution<size_t> dis(0, offsets.size() - 1); in TEST()
111 auto el = std::next(offsets.begin(), dis(gen)); in TEST()
114 offsets.erase(el); in TEST()
116 ASSERT_EQ(offsets.size(), allocator.numAllocations()); in TEST()
119 ASSERT_EQ(offsets.size(), allocator.numAllocations()); in TEST()
123 offsets.push_back(allocator.allocate(10 * 1024 * 1024)); in TEST()
126 ASSERT_EQ(offsets.size(), allocator.numAllocations()); in TEST()
129 while (!offsets.empty()) { in TEST()
130 std::uniform_int_distribution<size_t> dis(0, offsets.size() - 1); in TEST()
131 auto el = std::next(offsets.begin(), dis(gen)); in TEST()
134 offsets.erase(el); in TEST()
136 ASSERT_EQ(offsets.size(), allocator.numAllocations()); in TEST()
139 ASSERT_EQ(offsets.size(), allocator.numAllocations()); in TEST()
140 ASSERT_EQ((size_t)0, offsets.size()); in TEST()