Lines Matching refs:subrange
349 auto subrange = all.Subrange(0, 1); in TYPED_TEST() local
350 ASSERT_EQ(1, subrange.NumBytesRemaining()); in TYPED_TEST()
351 ASSERT_EQ(*(subrange), 0); in TYPED_TEST()
353 subrange = this->packet->begin().Subrange(0, 4); in TYPED_TEST()
354 ASSERT_EQ(4, subrange.NumBytesRemaining()); in TYPED_TEST()
355 ASSERT_EQ(*(subrange + 1), 1); in TYPED_TEST()
357 subrange = all.Subrange(0, 3); in TYPED_TEST()
358 ASSERT_EQ(3, subrange.NumBytesRemaining()); in TYPED_TEST()
359 ASSERT_EQ(*(subrange + 1), 1); in TYPED_TEST()
361 subrange = all.Subrange(0, all.NumBytesRemaining() - 1); in TYPED_TEST()
362 ASSERT_EQ(all.NumBytesRemaining() - 1, subrange.NumBytesRemaining()); in TYPED_TEST()
363 ASSERT_EQ(*(subrange + 1), 1); in TYPED_TEST()
365 subrange = all.Subrange(0, all.NumBytesRemaining() - 2); in TYPED_TEST()
366 ASSERT_EQ(all.NumBytesRemaining() - 2, subrange.NumBytesRemaining()); in TYPED_TEST()
367 ASSERT_EQ(*(subrange + 1), 1); in TYPED_TEST()
369 subrange = all.Subrange(1, all.NumBytesRemaining()); in TYPED_TEST()
370 ASSERT_EQ(all.NumBytesRemaining() - 1, subrange.NumBytesRemaining()); in TYPED_TEST()
371 ASSERT_EQ(*subrange, 1); in TYPED_TEST()
373 subrange = all.Subrange(2, all.NumBytesRemaining()); in TYPED_TEST()
374 ASSERT_EQ(all.NumBytesRemaining() - 2, subrange.NumBytesRemaining()); in TYPED_TEST()
375 ASSERT_EQ(*subrange, 2); in TYPED_TEST()
377 subrange = all.Subrange(1, all.NumBytesRemaining() - 1); in TYPED_TEST()
378 ASSERT_EQ(all.NumBytesRemaining() - 1, subrange.NumBytesRemaining()); in TYPED_TEST()
379 ASSERT_EQ(*subrange, 1); in TYPED_TEST()
381 subrange = all.Subrange(2, all.NumBytesRemaining() - 2); in TYPED_TEST()
382 ASSERT_EQ(all.NumBytesRemaining() - 2, subrange.NumBytesRemaining()); in TYPED_TEST()
383 ASSERT_EQ(*subrange, 2); in TYPED_TEST()
385 subrange = all.Subrange(1, 1); in TYPED_TEST()
386 ASSERT_EQ(1, subrange.NumBytesRemaining()); in TYPED_TEST()
387 ASSERT_EQ(*(subrange), 1); in TYPED_TEST()
389 subrange = all.Subrange(1, 2); in TYPED_TEST()
390 ASSERT_EQ(2, subrange.NumBytesRemaining()); in TYPED_TEST()
391 ASSERT_EQ(*(subrange), 1); in TYPED_TEST()
393 subrange = all.Subrange(2, 1); in TYPED_TEST()
394 ASSERT_EQ(1, subrange.NumBytesRemaining()); in TYPED_TEST()
395 ASSERT_EQ(*(subrange), 2); in TYPED_TEST()
397 subrange = this->packet->begin().Subrange(this->packet->size() - 1, 2); in TYPED_TEST()
398 ASSERT_EQ(static_cast<size_t>(1), subrange.NumBytesRemaining()); in TYPED_TEST()
399 ASSERT_EQ(*(subrange), this->packet->size() - 1); in TYPED_TEST()