/external/cronet/buildtools/third_party/libc++/trunk/test/std/ranges/range.factories/range.iota.view/iterator/ |
D | compare.pass.cpp | 27 auto iter1 = r.begin(); in test() local 28 auto iter2 = iter1 + 1; in test() 30 assert(!(iter1 < iter1)); assert(iter1 < iter2); assert(!(iter2 < iter1)); in test() 31 assert(iter1 <= iter1); assert(iter1 <= iter2); assert(!(iter2 <= iter1)); in test() 32 assert(!(iter1 > iter1)); assert(!(iter1 > iter2)); assert(iter2 > iter1); in test() 33 assert(iter1 >= iter1); assert(!(iter1 >= iter2)); assert(iter2 >= iter1); in test() 34 assert(iter1 == iter1); assert(!(iter1 == iter2)); assert(iter2 == iter2); in test() 35 assert(!(iter1 != iter1)); assert(iter1 != iter2); assert(!(iter2 != iter2)); in test() 37 assert((iter1 <=> iter2) == std::strong_ordering::less); in test() 38 assert((iter1 <=> iter1) == std::strong_ordering::equal); in test() [all …]
|
D | minus.pass.cpp | 37 auto iter1 = std::next(io.begin(), 10); in test() local 39 assert(iter1 == iter2); in test() 40 assert(iter1 - 5 != iter2); in test() 41 assert(iter1 - 5 == std::ranges::prev(iter2, 5)); in test() 49 auto iter1 = std::next(io.begin(), 10); in test() local 51 assert(iter1 == iter2); in test() 52 assert(iter1 - 5 != iter2); in test() 53 assert(iter1 - 5 == std::ranges::prev(iter2, 5)); in test() 61 auto iter1 = std::next(io.begin(), 10); in test() local 63 assert(iter1 == iter2); in test() [all …]
|
D | plus_eq.pass.cpp | 25 auto iter1 = io.begin(); in test() local 27 assert(iter1 == iter2); in test() 28 iter1 += 5; in test() 29 assert(iter1 != iter2); in test() 30 assert(iter1 == std::ranges::next(iter2, 5)); in test() 38 auto iter1 = io.begin(); in test() local 40 assert(iter1 == iter2); in test() 41 iter1 += 5; in test() 42 assert(iter1 != iter2); in test() 43 assert(iter1 == std::ranges::next(iter2, 5)); in test() [all …]
|
D | minus_eq.pass.cpp | 25 auto iter1 = std::next(io.begin(), 10); in test() local 27 assert(iter1 == iter2); in test() 28 iter1 -= 5; in test() 29 assert(iter1 != iter2); in test() 30 assert(iter1 == std::ranges::prev(iter2, 5)); in test() 38 auto iter1 = std::next(io.begin(), 10); in test() local 40 assert(iter1 == iter2); in test() 41 iter1 -= 5; in test() 42 assert(iter1 != iter2); in test() 43 assert(iter1 == std::ranges::prev(iter2, 5)); in test() [all …]
|
D | plus.pass.cpp | 27 auto iter1 = io.begin(); in test() local 29 assert(iter1 == iter2); in test() 30 assert(iter1 + 5 != iter2); in test() 31 assert(iter1 + 5 == std::ranges::next(iter2, 5)); in test() 39 auto iter1 = io.begin(); in test() local 41 assert(iter1 == iter2); in test() 42 assert(iter1 + 5 != iter2); in test() 43 assert(iter1 + 5 == std::ranges::next(iter2, 5)); in test() 51 auto iter1 = io.begin(); in test() local 53 assert(iter1 == iter2); in test() [all …]
|
D | increment.pass.cpp | 25 auto iter1 = io.begin(); in test() local 27 assert(iter1 == iter2); in test() 28 assert(++iter1 != iter2++); in test() 29 assert(iter1 == iter2); in test() 37 auto iter1 = io.begin(); in test() local 39 assert(iter1 == iter2); in test() 40 assert(++iter1 != iter2++); in test() 41 assert(iter1 == iter2); in test() 50 auto iter1 = io.begin(); in test() local 52 assert(iter1 == iter2); in test() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/ranges/range.adaptors/range.transform/iterator/ |
D | compare.pass.cpp | 30 auto iter1 = r.begin(); in test() local 31 auto iter2 = iter1 + 1; in test() 33 assert(!(iter1 < iter1)); assert(iter1 < iter2); assert(!(iter2 < iter1)); in test() 34 assert(iter1 <= iter1); assert(iter1 <= iter2); assert(!(iter2 <= iter1)); in test() 35 assert(!(iter1 > iter1)); assert(!(iter1 > iter2)); assert(iter2 > iter1); in test() 36 assert(iter1 >= iter1); assert(!(iter1 >= iter2)); assert(iter2 >= iter1); in test() 37 assert(iter1 == iter1); assert(!(iter1 == iter2)); assert(iter2 == iter2); in test() 38 assert(!(iter1 != iter1)); assert(iter1 != iter2); assert(!(iter2 != iter2)); in test() 40 assert((iter1 <=> iter2) == std::strong_ordering::less); in test() 41 assert((iter1 <=> iter1) == std::strong_ordering::equal); in test() [all …]
|
D | plus_minus.pass.cpp | 20 auto iter1 = std::move(transformView1).begin(); in test() local 23 iter1 += 4; in test() 24 assert((iter1 + 1).base() == globalBuff + 5); in test() 25 assert((1 + iter1).base() == globalBuff + 5); in test() 26 assert((iter1 - 1).base() == globalBuff + 3); in test() 27 LIBCPP_ASSERT(iter1 - iter2 == 4); in test() 28 assert((iter1 + 2) - 2 == iter1); in test() 29 assert((iter1 - 2) + 2 == iter1); in test()
|
/external/cronet/third_party/icu/source/samples/uciter8/ |
D | uciter8.c | 53 compareIterators(UCharIterator *iter1, const char *n1, in compareIterators() argument 59 length=iter1->getIndex(iter1, UITER_LENGTH); in compareIterators() 69 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators() 82 c1=iter1->current(iter1); in compareIterators() 91 c1=iter1->next(iter1); in compareIterators() 94 …= U+%04x=%s->next() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators() 101 c1=iter1->previous(iter1); in compareIterators() 104 …%04x=%s->previous() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators() 110 pos1=iter1->move(iter1, 0, UITER_START); in compareIterators() 115 if(!iter1->hasNext(iter1)) { in compareIterators() [all …]
|
/external/icu/icu4c/source/samples/uciter8/ |
D | uciter8.c | 53 compareIterators(UCharIterator *iter1, const char *n1, in compareIterators() argument 59 length=iter1->getIndex(iter1, UITER_LENGTH); in compareIterators() 69 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators() 82 c1=iter1->current(iter1); in compareIterators() 91 c1=iter1->next(iter1); in compareIterators() 94 …= U+%04x=%s->next() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators() 101 c1=iter1->previous(iter1); in compareIterators() 104 …%04x=%s->previous() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators() 110 pos1=iter1->move(iter1, 0, UITER_START); in compareIterators() 115 if(!iter1->hasNext(iter1)) { in compareIterators() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/iterators/predef.iterators/iterators.common/ |
D | deref.pass.cpp | 25 auto iter1 = simple_iterator<int*>(buffer); in test() local 26 auto commonIter1 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(iter1); in test() 27 …auto commonSent1 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(sentinel_type<int*>{… in test() 30 const auto commonIter2 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(iter1); in test() 32 assert(*iter1 == 1); in test() 48 auto iter1 = value_iterator<int*>(buffer); in test() local 49 auto commonIter1 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(iter1); in test() 50 …auto commonSent1 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(sentinel_type<int*>{… in test() 53 const auto commonIter2 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(iter1); in test() 55 assert(*iter1 == 1); in test() [all …]
|
D | eq.pass.cpp | 30 auto iter1 = simple_iterator<int*>(buffer); in test() local 31 auto commonIter1 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(iter1); in test() 32 …auto commonSent1 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(sentinel_type<int*>{… in test() 34 const auto commonIter2 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(iter1); in test() 35 …const auto commonSent2 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(sentinel_type<… in test() 49 auto iter1 = value_iterator<int*>(buffer); in test() local 50 auto commonIter1 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(iter1); in test() 51 …auto commonSent1 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(sentinel_type<int*>{… in test() 53 const auto commonIter2 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(iter1); in test() 54 …const auto commonSent2 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(sentinel_type<… in test() [all …]
|
D | plus_plus.pass.cpp | 27 auto iter1 = simple_iterator<int*>(buffer); in test() local 28 auto commonIter1 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(iter1); in test() 29 …auto commonSent1 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(sentinel_type<int*>{… in test() 45 auto iter1 = value_iterator<int*>(buffer); in test() local 46 auto commonIter1 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(iter1); in test() 47 …auto commonSent1 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(sentinel_type<int*>{… in test() 63 auto iter1 = void_plus_plus_iterator<int*>(buffer); in test() local 64 auto commonIter1 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(iter1); in test() 65 …auto commonSent1 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(sentinel_type<int*>{… in test() 81 auto iter1 = value_type_not_move_constructible_iterator<int*>(buffer); in test() local [all …]
|
D | assign.pass.cpp | 27 auto iter1 = cpp17_input_iterator<int*>(buffer); in test() local 28 auto commonIter1 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(iter1); in test() 29 …auto commonIter2 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(cpp17_input_iterator… in test() 42 auto iter1 = forward_iterator<int*>(buffer); in test() local 43 auto commonIter1 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(iter1); in test() 44 …auto commonIter2 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(forward_iterator<int… in test() 57 auto iter1 = random_access_iterator<int*>(buffer); in test() local 58 auto commonIter1 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(iter1); in test() 59 …auto commonSent1 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(sentinel_type<int*>{… in test() 61 auto commonIter2 = std::common_iterator<decltype(iter1), sentinel_type<int*>>(iter1 + 1); in test() [all …]
|
D | minus.pass.cpp | 26 auto iter1 = random_access_iterator<int*>(buffer); in test() local 27 auto commonIter1 = std::common_iterator<decltype(iter1), sized_sentinel_type<int*>>(iter1); in test() 28 …auto commonSent1 = std::common_iterator<decltype(iter1), sized_sentinel_type<int*>>(sized_sentinel… in test() 35 auto iter1 = simple_iterator<int*>(buffer); in test() local 37 auto commonIter1 = std::common_iterator<decltype(iter1), sized_sentinel_type<int*>>(iter1); in test() 43 auto iter1 = random_access_iterator<int*>(buffer); in test() local 44 … const auto commonIter1 = std::common_iterator<decltype(iter1), sized_sentinel_type<int*>>(iter1); in test() 45 …const auto commonSent1 = std::common_iterator<decltype(iter1), sized_sentinel_type<int*>>(sized_se… in test() 52 auto iter1 = simple_iterator<int*>(buffer); in test() local 54 … const auto commonIter1 = std::common_iterator<decltype(iter1), sized_sentinel_type<int*>>(iter1); in test()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/iterators/bounded_iter/ |
D | comparison.pass.cpp | 24 std::__bounded_iter<Iter> const iter1 = std::__make_bounded_iter(Iter(b), Iter(b), Iter(e)); in tests() local 29 assert(iter1 == iter1); in tests() 30 assert(!(iter1 == iter2)); in tests() 34 assert(iter1 != iter2); in tests() 35 assert(!(iter1 != iter1)); in tests() 39 assert(iter1 < iter2); in tests() 40 assert(!(iter2 < iter1)); in tests() 41 assert(!(iter1 < iter1)); in tests() 45 assert(iter2 > iter1); in tests() 46 assert(!(iter1 > iter2)); in tests() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/iterators/predef.iterators/counted.iterator/ |
D | minus.iter.pass.cpp | 50 std::counted_iterator iter1(random_access_iterator<int*>{buffer}, 8); in test() 52 assert(iter1 - iter2 == -4); in test() 53 assert(iter2 - iter1 == 4); in test() 54 assert(iter1.count() == 8); in test() 57 ASSERT_SAME_TYPE(decltype(iter1 - iter2), std::iter_difference_t<int*>); in test() 60 const std::counted_iterator iter1(random_access_iterator<int*>{buffer}, 8); in test() 62 assert(iter1 - iter2 == -4); in test() 63 assert(iter2 - iter1 == 4); in test() 64 assert(iter1.count() == 8); in test() 67 ASSERT_SAME_TYPE(decltype(iter1 - iter2), std::iter_difference_t<int*>); in test() [all …]
|
D | assign.pass.cpp | 70 std::counted_iterator iter1(AssignableFromIter{buffer}, 8); in test() local 72 assert(base(iter1.base()) == buffer); in test() 73 assert(iter1.count() == 8); in test() 74 std::counted_iterator<AssignableFromIter>& result = (iter1 = iter2); in test() 75 assert(&result == &iter1); in test() 76 assert(base(iter1.base()) == buffer + 2); in test() 77 assert(iter1.count() == 6); in test() 79 ASSERT_SAME_TYPE(decltype(iter1 = iter2), std::counted_iterator<AssignableFromIter>&); in test() 82 std::counted_iterator iter1(AssignableFromIter{buffer}, 8); in test() local 84 assert(base(iter1.base()) == buffer); in test() [all …]
|
D | iter_swap.pass.cpp | 52 auto iter1 = cpp17_input_iterator<int*>(buffer); in test() local 53 auto commonIter1 = std::counted_iterator<decltype(iter1)>(iter1, 8); in test() 54 auto commonIter2 = std::counted_iterator<decltype(iter1)>(iter1, 8); in test() 63 auto iter1 = forward_iterator<int*>(buffer); in test() local 64 auto commonIter1 = std::counted_iterator<decltype(iter1)>(iter1, 8); in test() 65 auto commonIter2 = std::counted_iterator<decltype(iter1)>(iter1, 8); in test() 74 auto iter1 = random_access_iterator<int*>(buffer); in test() local 75 auto commonIter1 = std::counted_iterator<decltype(iter1)>(iter1, 8); in test() 76 auto commonIter2 = std::counted_iterator<decltype(iter1)>(iter1, 8); in test()
|
D | three_way_compare.pass.cpp | 55 std::counted_iterator iter1(forward_iterator<int*>(buffer), 8); in test() 58 assert((iter1 <=> iter2) == Eq); in test() 59 assert((iter2 <=> iter1) == Eq); in test() 60 ++iter1; in test() 61 assert((iter1 <=> iter2) == Greater); in test() 62 assert((iter2 <=> iter1) == Less); in test() 65 std::counted_iterator iter1(forward_iterator<int*>(buffer), 8); in test() 68 assert((iter1 <=> iter2) == Eq); in test() 69 assert((iter2 <=> iter1) == Eq); in test() 70 ++iter1; in test() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/ranges/range.adaptors/range.elements/iterator/ |
D | compare.pass.cpp | 31 constexpr void compareOperatorTest(const auto& iter1, const auto& iter2) { in compareOperatorTest() argument 32 assert(!(iter1 < iter1)); in compareOperatorTest() 33 assert(iter1 < iter2); in compareOperatorTest() 34 assert(!(iter2 < iter1)); in compareOperatorTest() 36 assert(iter1 <= iter1); in compareOperatorTest() 37 assert(iter1 <= iter2); in compareOperatorTest() 38 assert(!(iter2 <= iter1)); in compareOperatorTest() 40 assert(!(iter1 > iter1)); in compareOperatorTest() 41 assert(!(iter1 > iter2)); in compareOperatorTest() 42 assert(iter2 > iter1); in compareOperatorTest() [all …]
|
/external/google-breakpad/src/processor/ |
D | module_comparer.cc | 94 BasicModule::FileMap::const_iterator iter1 = basic_module->files_.begin(); in CompareModule() local 96 while (iter1 != basic_module->files_.end() in CompareModule() 98 ASSERT_TRUE(iter1->first == iter2.GetKey()); in CompareModule() 100 ASSERT_TRUE(iter1->second == tmp); in CompareModule() 101 ++iter1; in CompareModule() 104 ASSERT_TRUE(iter1 == basic_module->files_.end()); in CompareModule() 110 RangeMap<MemAddr, linked_ptr<BasicFunc> >::MapConstIterator iter1; in CompareModule() local 112 iter1 = basic_module->functions_.map_.begin(); in CompareModule() 114 while (iter1 != basic_module->functions_.map_.end() in CompareModule() 116 ASSERT_TRUE(iter1->first == iter2.GetKey()); in CompareModule() [all …]
|
/external/cronet/third_party/icu/source/test/cintltst/ |
D | custrtst.c | 433 UCharIterator iter1, iter2; in TestStringFunctions() local 468 uiter_setString(&iter1, strings[i], len1); in TestStringFunctions() 470 if(u_strCompareIter(&iter1, &iter2, true)>=0) { in TestStringFunctions() 473 r1=u_strCompareIter(&iter1, &iter2, false); in TestStringFunctions() 1253 compareIterators(UCharIterator *iter1, const char *n1, in compareIterators() argument 1259 length=iter1->getIndex(iter1, UITER_LENGTH); in compareIterators() 1269 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators() 1282 c1=iter1->current(iter1); in compareIterators() 1291 c1=iter1->next(iter1); in compareIterators() 1294 …= U+%04x=%s->next() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators() [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | custrtst.c | 433 UCharIterator iter1, iter2; in TestStringFunctions() local 468 uiter_setString(&iter1, strings[i], len1); in TestStringFunctions() 470 if(u_strCompareIter(&iter1, &iter2, true)>=0) { in TestStringFunctions() 473 r1=u_strCompareIter(&iter1, &iter2, false); in TestStringFunctions() 1253 compareIterators(UCharIterator *iter1, const char *n1, in compareIterators() argument 1259 length=iter1->getIndex(iter1, UITER_LENGTH); in compareIterators() 1269 pos1=iter1->move(iter1, middle, UITER_ZERO); in compareIterators() 1282 c1=iter1->current(iter1); in compareIterators() 1291 c1=iter1->next(iter1); in compareIterators() 1294 …= U+%04x=%s->next() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CUR… in compareIterators() [all …]
|
/external/cronet/third_party/icu/source/test/intltest/ |
D | itercoll.cpp | 284 CollationElementIterator *iter1 = en_us->createCollationElementIterator(test1); in TestSetText() local 298 delete iter1; in TestSetText() 313 assertEqual(*iter1, *iter2); in TestSetText() 315 iter1->reset(); in TestSetText() 325 assertEqual(*iter1, *iter2); in TestSetText() 330 iter1->setText(empty, status); in TestSetText() 332 || iter1->next(status) != (int32_t)CollationElementIterator::NULLORDER) { in TestSetText() 336 iter1->setText(*chariter, status); in TestSetText() 338 || iter1->next(status) != (int32_t)CollationElementIterator::NULLORDER) { in TestSetText() 343 delete iter1; in TestSetText() [all …]
|