Lines Matching refs:i
89 for (int i = 0; i < bparr.Count(); i++) in dumpBigPtrArray() local
90 …printf("bparr[%i,%i]: %i\n", i, static_cast<BigPtrEntryMock*>(bparr[i])->Position(), static_cast<B… in dumpBigPtrArray()
98 for (int i = 0; i < numEntries; i++) in fillBigPtrArray() local
99 bparr.Insert(new BigPtrEntryMock(i), bparr.Count()); in fillBigPtrArray()
111 for (int i = 0; i < bparr.Count(); i++) in checkElementPositions() local
113 if (static_cast<BigPtrEntryMock*>(bparr[i])->Position() != i) in checkElementPositions()
121 for (int i = 0; i < bparr.Count(); i++) in releaseBigPtrArrayContent() local
122 delete bparr[i]; in releaseBigPtrArrayContent()
159 for (int i = 0; i < NUM_ENTRIES; i++) in TEST_F() local
162 bparr.Insert(new BigPtrEntryMock(i), 0); in TEST_F()
168 for (int i = 0, j = NUM_ENTRIES - 1; i < NUM_ENTRIES; i++, j--) in TEST_F() local
170 …ASSERT_TRUE(static_cast<BigPtrEntryMock*>(bparr[i])->getCount() == j) << "test_insert_entries_at_f… in TEST_F()
217 for (int i = 0, j = -5; i < 5; i++, j++) in TEST_F() local
218 bparr.Insert(new BigPtrEntryMock(j), i); in TEST_F()
224 for (int i = 0, j = -5; i < bparr.Count(); i++, j++) in TEST_F() local
226 …ASSERT_TRUE(static_cast<BigPtrEntryMock*>(bparr[i])->getCount() == j) << "test_insert_at_already_u… in TEST_F()
266 for (int i = 0; i < NUM_ENTRIES; i++) in TEST_F() local
275 for (int j = 0, k = i + 1; j < bparr.Count(); j++, k++) in TEST_F()
297 for (int i = NUM_ENTRIES - 1; i >= 0; i--) in TEST_F() local
300 delete bparr[i]; in TEST_F()
301 bparr.Remove(i); in TEST_F()
337 for (int i = 0; i < bparr.Count(); i++) in TEST_F() local
339 …ASSERT_TRUE(static_cast<BigPtrEntryMock*>(bparr[i])->getCount() != oldElement) << "test_remove_in_… in TEST_F()
363 for (int i = 0; i < nRemove; i++) in TEST_F() local
364 delete bparr[i]; in TEST_F()
402 for (int i = 0; i < NUM_ENTRIES - 1; i++) in TEST_F() local
404 bparr.Move(i, i + 2); in TEST_F()
408 for (int i = 0; i < (NUM_ENTRIES - 1); i++) in TEST_F() local
410 …ASSERT_TRUE(static_cast<BigPtrEntryMock*>(bparr[i])->getCount() == (i + 1)) << "test_move_elements… in TEST_F()
429 for (int i = NUM_ENTRIES - 1; i >= 1; i--) in TEST_F() local
431 bparr.Move(i, i - 1); in TEST_F()
437 for (int i = 1; i < NUM_ENTRIES; i++) in TEST_F() local
439 …ASSERT_TRUE(static_cast<BigPtrEntryMock*>(bparr[i])->getCount() == (i - 1)) << "test_move_elements… in TEST_F()
456 for (int i = 0; i < NUM_ENTRIES; i++) in TEST_F() local
458 bparr.Move(i, i); in TEST_F()
467 for (int i = 0; i < NUM_ENTRIES; i++) in TEST_F() local
469 …ASSERT_TRUE(static_cast<BigPtrEntryMock*>(bparr[i])->getCount() == i) << "test_move_to_same_positi… in TEST_F()
489 for (int i = 0, j = NUM_ENTRIES - 1; i < NUM_ENTRIES; i++, j--) in TEST_F() local
491 delete bparr[i]; in TEST_F()
492 bparr.Replace(i, new BigPtrEntryMock(j)); in TEST_F()
496 for (int i = 0; i < NUM_ENTRIES; i++) in TEST_F() local
498 …ASSERT_TRUE(static_cast<BigPtrEntryMock*>(bparr[i])->getCount() == (NUM_ENTRIES - i - 1)) << "test… in TEST_F()
518 for (int i = 0; i < NUM_ENTRIES; i++) in TEST_F() local
520 …ASSERT_TRUE(static_cast<BigPtrEntryMock*>(bparr[i])->getCount() == (i+1)) << "test_for_each failed… in TEST_F()
539 int i = 0; in TEST_F() local
540 for (/* */; i < NUM_ENTRIES / 2; i++) in TEST_F()
542 …ASSERT_TRUE(static_cast<BigPtrEntryMock*>(bparr[i])->getCount() == (i+1)) << "test_for_some1 faile… in TEST_F()
545 for (/* */; i < NUM_ENTRIES; i++) in TEST_F()
547 …ASSERT_TRUE(static_cast<BigPtrEntryMock*>(bparr[i])->getCount() == (i)) << "test_for_some1 failed"; in TEST_F()
566 int i = 0; in TEST_F() local
567 for (/* */; i < NUM_ENTRIES / 2; i++) in TEST_F()
569 …ASSERT_TRUE(static_cast<BigPtrEntryMock*>(bparr[i])->getCount() == (i)) << "test_for_some2 failed"; in TEST_F()
572 for (/* */; i < NUM_ENTRIES; i++) in TEST_F()
574 …ASSERT_TRUE(static_cast<BigPtrEntryMock*>(bparr[i])->getCount() == (i+1)) << "test_for_some2 faile… in TEST_F()
593 for (int i = 0; i < NUM_ENTRIES; i++) in TEST_F() local
595 … ASSERT_TRUE(static_cast<BigPtrEntryMock*>(bparr[i])->getCount() == i) << "test_for_some3 failed"; in TEST_F()
644 for (int i = 0; i < n; i++) in test_insert_at_end() local
645 bparr.Insert(new BigPtrEntryMock(i), bparr.Count()); in test_insert_at_end()
658 for (int i = 0; i < n; i++) in test_insert_at_front() local
659 bparr.Insert(new BigPtrEntryMock(i), 0); in test_insert_at_front()