Lines Matching refs:ssw

34   ScatteredStreamWriter ssw(&delegate);  in TEST()  local
45 ssw.WriteByte(i); in TEST()
46 EXPECT_EQ(kChunkSize - i - 1, ssw.bytes_available()); in TEST()
49 EXPECT_EQ(0u, ssw.bytes_available()); in TEST()
52 ssw.WriteBytes(kOneByteBuf, sizeof(kOneByteBuf)); in TEST()
54 EXPECT_EQ(7u, ssw.bytes_available()); in TEST()
58 uint8_t* reserved_range_1 = ssw.ReserveBytes(4); in TEST()
60 EXPECT_EQ(3u, ssw.bytes_available()); in TEST()
62 ssw.WriteByte(0xFF); in TEST()
63 ssw.WriteBytes(kThreeByteBuf, sizeof(kThreeByteBuf)); in TEST()
65 EXPECT_EQ(7u, ssw.bytes_available()); in TEST()
67 uint8_t* reserved_range_2 = ssw.ReserveBytes(4); in TEST()
68 ssw.WriteBytes(kTwentyByteBuf, sizeof(kTwentyByteBuf)); in TEST()
70 EXPECT_EQ(7u, ssw.bytes_available()); in TEST()
76 EXPECT_EQ(7u, ssw.bytes_available()); in TEST()
81 ssw.WriteByte(0xFF); in TEST()
82 memcpy(ssw.ReserveBytes(4), kFourByteBuf, sizeof(kFourByteBuf)); in TEST()
83 memcpy(ssw.ReserveBytesUnsafe(3), kThreeByteBuf, sizeof(kThreeByteBuf)); in TEST()
84 memcpy(ssw.ReserveBytes(3), kThreeByteBuf, sizeof(kThreeByteBuf)); in TEST()
85 memcpy(ssw.ReserveBytesUnsafe(1), kOneByteBuf, sizeof(kOneByteBuf)); in TEST()
86 memcpy(ssw.ReserveBytes(1), kOneByteBuf, sizeof(kOneByteBuf)); in TEST()
89 EXPECT_EQ(3u, ssw.bytes_available()); in TEST()
102 ssw.Reset({other_buffer, other_buffer + sizeof(other_buffer)}); in TEST()
103 EXPECT_EQ(other_buffer, ssw.write_ptr()); in TEST()
104 ssw.WriteByte(1); in TEST()
105 ssw.WriteBytes(kThreeByteBuf, sizeof(kThreeByteBuf)); in TEST()