• Home
  • Raw
  • Download

Lines Matching refs:ASSERT_EQ

14   ASSERT_EQ(true, ex.IsGood());  in TEST_F()
15 ASSERT_EQ(0u, ex.GetFilePos()); in TEST_F()
16 ASSERT_EQ(kEmptyString, ex.GetStringRef()); in TEST_F()
17 ASSERT_EQ(true, ex.Empty()); in TEST_F()
18 ASSERT_EQ(0u, ex.GetBytesLeft()); in TEST_F()
19 ASSERT_EQ(nullptr, ex.Peek()); in TEST_F()
26 ASSERT_EQ(true, ex.IsGood()); in TEST_F()
27 ASSERT_EQ(0u, ex.GetFilePos()); in TEST_F()
28 ASSERT_EQ(kInitMiscString, ex.GetStringRef()); in TEST_F()
29 ASSERT_EQ(false, ex.Empty()); in TEST_F()
30 ASSERT_EQ(kInitMiscString.size(), ex.GetBytesLeft()); in TEST_F()
31 ASSERT_EQ(kInitMiscString[0], *ex.Peek()); in TEST_F()
38 ASSERT_EQ(-1, ex.DecodeHexU8()); in TEST_F()
39 ASSERT_EQ(true, ex.IsGood()); in TEST_F()
40 ASSERT_EQ(0u, ex.GetFilePos()); in TEST_F()
41 ASSERT_EQ(true, ex.Empty()); in TEST_F()
42 ASSERT_EQ(0u, ex.GetBytesLeft()); in TEST_F()
43 ASSERT_EQ(nullptr, ex.Peek()); in TEST_F()
49 ASSERT_EQ(-1, ex.DecodeHexU8()); in TEST_F()
50 ASSERT_EQ(true, ex.IsGood()); in TEST_F()
51 ASSERT_EQ(0u, ex.GetFilePos()); in TEST_F()
52 ASSERT_EQ(1u, ex.GetBytesLeft()); in TEST_F()
53 ASSERT_EQ('1', *ex.Peek()); in TEST_F()
60 ASSERT_EQ(-1, ex.DecodeHexU8()); in TEST_F()
61 ASSERT_EQ(true, ex.IsGood()); in TEST_F()
62 ASSERT_EQ(0u, ex.GetFilePos()); in TEST_F()
63 ASSERT_EQ(2u, ex.GetBytesLeft()); in TEST_F()
64 ASSERT_EQ('x', *ex.Peek()); in TEST_F()
71 ASSERT_EQ(-1, ex.DecodeHexU8()); in TEST_F()
72 ASSERT_EQ(true, ex.IsGood()); in TEST_F()
73 ASSERT_EQ(0u, ex.GetFilePos()); in TEST_F()
74 ASSERT_EQ(2u, ex.GetBytesLeft()); in TEST_F()
75 ASSERT_EQ('a', *ex.Peek()); in TEST_F()
82 ASSERT_EQ(0x12, ex.DecodeHexU8()); in TEST_F()
83 ASSERT_EQ(true, ex.IsGood()); in TEST_F()
84 ASSERT_EQ(2u, ex.GetFilePos()); in TEST_F()
85 ASSERT_EQ(0u, ex.GetBytesLeft()); in TEST_F()
86 ASSERT_EQ(nullptr, ex.Peek()); in TEST_F()
93 ASSERT_EQ(0x12, ex.DecodeHexU8()); in TEST_F()
94 ASSERT_EQ(true, ex.IsGood()); in TEST_F()
95 ASSERT_EQ(2u, ex.GetFilePos()); in TEST_F()
96 ASSERT_EQ(2u, ex.GetBytesLeft()); in TEST_F()
97 ASSERT_EQ('3', *ex.Peek()); in TEST_F()
104 ASSERT_EQ(0xab, ex.GetHexU8(0xab)); in TEST_F()
105 ASSERT_EQ(false, ex.IsGood()); in TEST_F()
106 ASSERT_EQ(UINT64_MAX, ex.GetFilePos()); in TEST_F()
107 ASSERT_EQ(true, ex.Empty()); in TEST_F()
108 ASSERT_EQ(0u, ex.GetBytesLeft()); in TEST_F()
109 ASSERT_EQ(nullptr, ex.Peek()); in TEST_F()
116 ASSERT_EQ(0xbc, ex.GetHexU8(0xbc)); in TEST_F()
117 ASSERT_EQ(false, ex.IsGood()); in TEST_F()
118 ASSERT_EQ(UINT64_MAX, ex.GetFilePos()); in TEST_F()
119 ASSERT_EQ(0u, ex.GetBytesLeft()); in TEST_F()
120 ASSERT_EQ(nullptr, ex.Peek()); in TEST_F()
127 ASSERT_EQ(0xcd, ex.GetHexU8(0xcd)); in TEST_F()
128 ASSERT_EQ(false, ex.IsGood()); in TEST_F()
129 ASSERT_EQ(UINT64_MAX, ex.GetFilePos()); in TEST_F()
130 ASSERT_EQ(0u, ex.GetBytesLeft()); in TEST_F()
131 ASSERT_EQ(nullptr, ex.Peek()); in TEST_F()
138 ASSERT_EQ(0x12, ex.GetHexU8(0x12)); in TEST_F()
139 ASSERT_EQ(true, ex.IsGood()); in TEST_F()
140 ASSERT_EQ(2u, ex.GetFilePos()); in TEST_F()
141 ASSERT_EQ(0u, ex.GetBytesLeft()); in TEST_F()
142 ASSERT_EQ(nullptr, ex.Peek()); in TEST_F()
149 ASSERT_EQ(0x12, ex.GetHexU8(0x12)); in TEST_F()
150 ASSERT_EQ(true, ex.IsGood()); in TEST_F()
151 ASSERT_EQ(2u, ex.GetFilePos()); in TEST_F()
152 ASSERT_EQ(2u, ex.GetBytesLeft()); in TEST_F()
153 ASSERT_EQ('3', *ex.Peek()); in TEST_F()
161 ASSERT_EQ(0xab, ex.GetHexU8(0xab, kSetEofOnFail)); in TEST_F()
162 ASSERT_EQ(false, ex.IsGood()); // this result seems inconsistent with in TEST_F()
164 ASSERT_EQ(UINT64_MAX, ex.GetFilePos()); in TEST_F()
165 ASSERT_EQ(true, ex.Empty()); in TEST_F()
166 ASSERT_EQ(0u, ex.GetBytesLeft()); in TEST_F()
167 ASSERT_EQ(nullptr, ex.Peek()); in TEST_F()
175 ASSERT_EQ(0xbc, ex.GetHexU8(0xbc, kSetEofOnFail)); in TEST_F()
176 ASSERT_EQ(true, ex.IsGood()); in TEST_F()
177 ASSERT_EQ(0u, ex.GetFilePos()); in TEST_F()
178 ASSERT_EQ(1u, ex.GetBytesLeft()); in TEST_F()
179 ASSERT_EQ('1', *ex.Peek()); in TEST_F()
187 ASSERT_EQ(0xcd, ex.GetHexU8(0xcd, kSetEofOnFail)); in TEST_F()
188 ASSERT_EQ(true, ex.IsGood()); in TEST_F()
189 ASSERT_EQ(0u, ex.GetFilePos()); in TEST_F()
190 ASSERT_EQ(2u, ex.GetBytesLeft()); in TEST_F()
191 ASSERT_EQ('x', *ex.Peek()); in TEST_F()
199 ASSERT_EQ(0x12, ex.GetHexU8(0x12, kSetEofOnFail)); in TEST_F()
200 ASSERT_EQ(true, ex.IsGood()); in TEST_F()
201 ASSERT_EQ(2u, ex.GetFilePos()); in TEST_F()
202 ASSERT_EQ(0u, ex.GetBytesLeft()); in TEST_F()
203 ASSERT_EQ(nullptr, ex.Peek()); in TEST_F()
211 ASSERT_EQ(0x12, ex.GetHexU8(0x12, kSetEofOnFail)); in TEST_F()
212 ASSERT_EQ(true, ex.IsGood()); in TEST_F()
213 ASSERT_EQ(2u, ex.GetFilePos()); in TEST_F()
214 ASSERT_EQ(2u, ex.GetBytesLeft()); in TEST_F()
215 ASSERT_EQ('3', *ex.Peek()); in TEST_F()
224 ASSERT_EQ(kValidHexPairs, ex.GetHexBytes(dst, 0xde)); in TEST_F()
234 ASSERT_EQ(true, ex.IsGood()); in TEST_F()
235 ASSERT_EQ(2 * kValidHexPairs, ex.GetFilePos()); in TEST_F()
236 ASSERT_EQ(false, ex.Empty()); in TEST_F()
237 ASSERT_EQ(4u, ex.GetBytesLeft()); in TEST_F()
238 ASSERT_EQ('x', *ex.Peek()); in TEST_F()
247 ASSERT_EQ(kValidHexPairs, ex.GetHexBytes(dst, 0xde)); in TEST_F()
264 ASSERT_EQ(kValidHexPairs, ex.GetHexBytes(dst, 0xde)); in TEST_F()
283 ASSERT_EQ(kValidHexPairs, ex.GetHexBytes(dst, 0xde)); in TEST_F()
301 ASSERT_EQ(kValidHexPairs, ex.GetHexBytes(dst, 0xde)); in TEST_F()
316 ASSERT_EQ(false, ex.IsGood()); in TEST_F()
317 ASSERT_EQ(UINT64_MAX, ex.GetFilePos()); in TEST_F()
318 ASSERT_EQ(false, ex.Empty()); in TEST_F()
319 ASSERT_EQ(0u, ex.GetBytesLeft()); in TEST_F()
320 ASSERT_EQ(nullptr, ex.Peek()); in TEST_F()
330 ASSERT_EQ( in TEST_F()
347 ASSERT_EQ(true, ex.IsGood()); in TEST_F()
348 ASSERT_EQ(kReadBytes * 2, ex.GetFilePos()); in TEST_F()
349 ASSERT_EQ(false, ex.Empty()); in TEST_F()
350 ASSERT_EQ(12u, ex.GetBytesLeft()); in TEST_F()
351 ASSERT_EQ('2', *ex.Peek()); in TEST_F()
360 ASSERT_EQ(kValidHexPairs, ex.GetHexBytesAvail(dst)); in TEST_F()
370 ASSERT_EQ(true, ex.IsGood()); in TEST_F()
371 ASSERT_EQ(2 * kValidHexPairs, ex.GetFilePos()); in TEST_F()
372 ASSERT_EQ(false, ex.Empty()); in TEST_F()
373 ASSERT_EQ(4u, ex.GetBytesLeft()); in TEST_F()
374 ASSERT_EQ('x', *ex.Peek()); in TEST_F()
383 ASSERT_EQ(kValidHexPairs, ex.GetHexBytesAvail(dst)); in TEST_F()
400 ASSERT_EQ(kValidHexPairs, ex.GetHexBytesAvail(dst)); in TEST_F()
416 ASSERT_EQ(kValidHexPairs, ex.GetHexBytesAvail(dst)); in TEST_F()
433 ASSERT_EQ(kValidHexPairs, ex.GetHexBytesAvail(dst)); in TEST_F()
448 ASSERT_EQ(true, ex.IsGood()); in TEST_F()
449 ASSERT_EQ(kValidHexPairs * 2, ex.GetFilePos()); in TEST_F()
450 ASSERT_EQ(false, ex.Empty()); in TEST_F()
451 ASSERT_EQ(4u, ex.GetBytesLeft()); in TEST_F()
452 ASSERT_EQ('x', *ex.Peek()); in TEST_F()
462 ASSERT_EQ(kReadBytes, ex.GetHexBytesAvail( in TEST_F()
478 ASSERT_EQ(true, ex.IsGood()); in TEST_F()
479 ASSERT_EQ(kReadBytes * 2, ex.GetFilePos()); in TEST_F()
480 ASSERT_EQ(false, ex.Empty()); in TEST_F()
481 ASSERT_EQ(12u, ex.GetBytesLeft()); in TEST_F()
482 ASSERT_EQ('2', *ex.Peek()); in TEST_F()