Lines Matching refs:slice
37 for (Slice slice = result.get(); !slice.empty(); slice = drop(slice, 1)) { in makeArbitraryMemBlock() local
38 slice.base()[0] = ARBITRARY_VALUE; in makeArbitraryMemBlock()
43 void checkAllZeros(Slice slice) { in checkAllZeros() argument
44 for (; !slice.empty(); slice = drop(slice, 1)) { in checkAllZeros()
45 EXPECT_EQ(0U, slice.base()[0]); in checkAllZeros()
50 Slice slice = block.get(); in checkArbitraryMemBlock() local
51 EXPECT_EQ(expectedSize, slice.size()); in checkArbitraryMemBlock()
52 EXPECT_NE(nullptr, slice.base()); in checkArbitraryMemBlock()
53 for (; !slice.empty(); slice = drop(slice, 1)) { in checkArbitraryMemBlock()
54 EXPECT_EQ(ARBITRARY_VALUE, slice.base()[0]); in checkArbitraryMemBlock()
85 Slice slice = dnsPacket.get(); in TEST() local
86 EXPECT_EQ(DNS_PACKET_SIZE, slice.size()); in TEST()
88 ASSERT_NO_FATAL_FAILURE(checkAllZeros(slice)); in TEST()
89 EXPECT_NE(nullptr, slice.base()); in TEST()