Lines Matching refs:stream

46   binarystream stream;  member in __anon643a7c0e0111::BinaryStreamBasicTest
51 ASSERT_FALSE(stream.eof()); in TEST_F()
52 stream >> u8; in TEST_F()
53 ASSERT_TRUE(stream.eof()); in TEST_F()
55 stream.rewind(); in TEST_F()
56 stream.clear(); in TEST_F()
57 stream << (uint8_t)1; in TEST_F()
58 ASSERT_FALSE(stream.eof()); in TEST_F()
59 stream >> u8; in TEST_F()
61 EXPECT_FALSE(stream.eof()); in TEST_F()
66 ASSERT_FALSE(stream.eof()); in TEST_F()
67 stream >> u16; in TEST_F()
68 ASSERT_TRUE(stream.eof()); in TEST_F()
70 stream.rewind(); in TEST_F()
71 stream.clear(); in TEST_F()
72 stream << (uint16_t)1; in TEST_F()
73 ASSERT_FALSE(stream.eof()); in TEST_F()
74 stream >> u16; in TEST_F()
76 EXPECT_FALSE(stream.eof()); in TEST_F()
81 ASSERT_FALSE(stream.eof()); in TEST_F()
82 stream >> u32; in TEST_F()
83 ASSERT_TRUE(stream.eof()); in TEST_F()
85 stream.rewind(); in TEST_F()
86 stream.clear(); in TEST_F()
87 stream << (uint32_t)1; in TEST_F()
88 ASSERT_FALSE(stream.eof()); in TEST_F()
89 stream >> u32; in TEST_F()
91 EXPECT_FALSE(stream.eof()); in TEST_F()
96 ASSERT_FALSE(stream.eof()); in TEST_F()
97 stream >> u64; in TEST_F()
98 ASSERT_TRUE(stream.eof()); in TEST_F()
100 stream.rewind(); in TEST_F()
101 stream.clear(); in TEST_F()
102 stream << (uint64_t)1; in TEST_F()
103 ASSERT_FALSE(stream.eof()); in TEST_F()
104 stream >> u64; in TEST_F()
106 EXPECT_FALSE(stream.eof()); in TEST_F()
111 ASSERT_FALSE(stream.eof()); in TEST_F()
112 stream >> s; in TEST_F()
113 ASSERT_TRUE(stream.eof()); in TEST_F()
117 stream.rewind(); in TEST_F()
118 stream.clear(); in TEST_F()
119 stream << string(""); in TEST_F()
120 stream >> s; in TEST_F()
122 EXPECT_FALSE(stream.eof()); in TEST_F()
123 stream.rewind(); in TEST_F()
124 stream.clear(); in TEST_F()
125 stream << string("test"); in TEST_F()
126 ASSERT_FALSE(stream.eof()); in TEST_F()
127 stream >> s; in TEST_F()
129 EXPECT_FALSE(stream.eof()); in TEST_F()
134 stream << string(""); in TEST_F()
135 stream >> s; in TEST_F()
142 stream << ea << eb << ec << ed; in TEST_F()
143 stream >> a >> b >> c >> d; in TEST_F()
144 ASSERT_FALSE(stream.eof()); in TEST_F()
149 ASSERT_FALSE(stream.eof()); in TEST_F()
151 stream >> e; in TEST_F()
153 ASSERT_TRUE(stream.eof()); in TEST_F()
155 stream.rewind(); in TEST_F()
156 stream.clear(); in TEST_F()
157 ASSERT_FALSE(stream.eof()); in TEST_F()
159 stream << ea << eb << ec << ed; in TEST_F()
160 stream >> a >> b >> c >> d >> e; in TEST_F()
166 EXPECT_TRUE(stream.eof()); in TEST_F()
172 stream << ea << eb << ec << ed; in TEST_F()
173 stream >> a >> b >> c >> d; in TEST_F()
174 ASSERT_FALSE(stream.eof()); in TEST_F()
179 ASSERT_FALSE(stream.eof()); in TEST_F()
181 stream >> e; in TEST_F()
183 EXPECT_TRUE(stream.eof()); in TEST_F()
185 stream.rewind(); in TEST_F()
186 stream.clear(); in TEST_F()
187 ASSERT_FALSE(stream.eof()); in TEST_F()
189 stream << ea << eb << ec << ed; in TEST_F()
190 stream >> a >> b >> c >> d >> e; in TEST_F()
196 EXPECT_TRUE(stream.eof()); in TEST_F()
202 stream << ea << eb << ec << ed; in TEST_F()
203 stream >> a >> b >> c >> d; in TEST_F()
204 ASSERT_FALSE(stream.eof()); in TEST_F()
209 ASSERT_FALSE(stream.eof()); in TEST_F()
211 stream >> e; in TEST_F()
213 EXPECT_TRUE(stream.eof()); in TEST_F()
215 stream.rewind(); in TEST_F()
216 stream.clear(); in TEST_F()
217 ASSERT_FALSE(stream.eof()); in TEST_F()
219 stream << ea << eb << ec << ed; in TEST_F()
220 stream >> a >> b >> c >> d >> e; in TEST_F()
226 EXPECT_TRUE(stream.eof()); in TEST_F()
233 stream << ea << eb << ec << ed; in TEST_F()
234 stream >> a >> b >> c >> d; in TEST_F()
235 ASSERT_FALSE(stream.eof()); in TEST_F()
240 ASSERT_FALSE(stream.eof()); in TEST_F()
242 stream >> e; in TEST_F()
244 EXPECT_TRUE(stream.eof()); in TEST_F()
246 stream.rewind(); in TEST_F()
247 stream.clear(); in TEST_F()
248 ASSERT_FALSE(stream.eof()); in TEST_F()
250 stream << ea << eb << ec << ed; in TEST_F()
251 stream >> a >> b >> c >> d >> e; in TEST_F()
257 EXPECT_TRUE(stream.eof()); in TEST_F()
271 stream << e8 << e16 << e32 << e64 << es; in TEST_F()
272 stream >> u8 >> u16 >> u32 >> u64 >> s; in TEST_F()
273 EXPECT_FALSE(stream.eof()); in TEST_F()
284 stream << u16; in TEST_F()
285 stream.rewind(); in TEST_F()
287 stream >> s; in TEST_F()
289 EXPECT_TRUE(stream.eof()); in TEST_F()
295 stream << u16; in TEST_F()
296 stream << (uint8_t)'t' << (uint8_t)'e' << (uint8_t)'s' << (uint8_t)'t'; in TEST_F()
297 stream.rewind(); in TEST_F()
299 stream >> s; in TEST_F()
301 EXPECT_TRUE(stream.eof()); in TEST_F()
306 stream << (uint8_t)0 << (uint16_t)1 << (uint32_t)2 << (uint64_t)3 in TEST_F()
308 string s = stream.str(); in TEST_F()
316 stream << (uint8_t)0 << (uint16_t)1; in TEST_F()
319 string s = stream.str(); in TEST_F()
327 stream << es; in TEST_F()
329 stream2.str(stream.str()); in TEST_F()
335 stream2.str(stream.str()); in TEST_F()
344 binarystream stream; member in __anon643a7c0e0111::BinaryStreamU8Test
347 stream << (uint8_t)1; in SetUp()
353 ASSERT_FALSE(stream.eof()); in TEST_F()
354 stream >> u16; in TEST_F()
355 ASSERT_TRUE(stream.eof()); in TEST_F()
361 ASSERT_FALSE(stream.eof()); in TEST_F()
362 stream >> u32; in TEST_F()
363 ASSERT_TRUE(stream.eof()); in TEST_F()
369 ASSERT_FALSE(stream.eof()); in TEST_F()
370 stream >> u64; in TEST_F()
371 ASSERT_TRUE(stream.eof()); in TEST_F()
377 ASSERT_FALSE(stream.eof()); in TEST_F()
378 stream >> s; in TEST_F()
379 ASSERT_TRUE(stream.eof()); in TEST_F()
386 binarystream stream(data); in TEST() local
388 stream >> a >> b >> c >> d; in TEST()
389 ASSERT_FALSE(stream.eof()); in TEST()
398 binarystream stream(data, 5); in TEST() local
400 stream >> z >> a >> b >> c >> d; in TEST()
401 ASSERT_FALSE(stream.eof()); in TEST()
417 binarystream stream(&data[0], data.size()); in TEST() local
419 stream >> a >> b >> c >> d; in TEST()
420 ASSERT_FALSE(stream.eof()); in TEST()