Lines Matching refs:ByteString

56   ByteString bs1(0);  in TEST_F()
65 ByteString bs1(kTest1, sizeof(kTest1)); in TEST_F()
79 ByteString bs2(kTest2, sizeof(kTest2)); in TEST_F()
91 ByteString bs3(kTest3, sizeof(kTest3)); in TEST_F()
102 ByteString bs6(kTest1, sizeof(kTest1)); in TEST_F()
107 ByteString bs4(string(kTest4), false); in TEST_F()
111 ByteString bs5(string(kTest4), true); in TEST_F()
117 ByteString bs1(kTest1, sizeof(kTest1)); in TEST_F()
118 ByteString fragment(kTest1 + 3, 4); in TEST_F()
121 ByteString end_fragment(kTest1 + kMargin, sizeof(kTest1) - kMargin); in TEST_F()
131 ByteString bs1 = ByteString::CreateFromNetUInt32(kTest2Uint32); in TEST_F()
140 ByteString bs2(kTest2, sizeof(kTest2)); in TEST_F()
145 ByteString bs3 = ByteString::CreateFromCPUUInt32(0x1020304); in TEST_F()
160 ByteString bs(kTest2, sizeof(kTest2)); in TEST_F()
178 ByteString bs(kTest2, sizeof(kTest2)); in TEST_F()
183 ByteString bs1(kTest1, sizeof(kTest1)); in TEST_F()
186 EXPECT_FALSE(bs1.BitwiseAnd(ByteString(kTest2, sizeof(kTest2)))); in TEST_F()
187 EXPECT_TRUE(bs1.Equals(ByteString(kTest1, sizeof(kTest1)))); in TEST_F()
189 const ByteString bs6(kTest6, sizeof(kTest6)); in TEST_F()
193 const ByteString expected_result(kAndResult, sizeof(kAndResult)); in TEST_F()
198 ByteString bs1(kTest1, sizeof(kTest1)); in TEST_F()
201 EXPECT_FALSE(bs1.BitwiseOr(ByteString(kTest2, sizeof(kTest2)))); in TEST_F()
202 EXPECT_TRUE(bs1.Equals(ByteString(kTest1, sizeof(kTest1)))); in TEST_F()
204 const ByteString bs6(kTest6, sizeof(kTest6)); in TEST_F()
208 const ByteString expected_result(kOrResult, sizeof(kOrResult)); in TEST_F()
213 ByteString bs(kTest1, sizeof(kTest1)); in TEST_F()
214 ByteString invert; in TEST_F()
217 invert.Append(ByteString(&val, 1)); in TEST_F()
224 ByteString bs = ByteString::CreateFromHexString(""); in TEST_F()
227 ByteString bs1 = ByteString::CreateFromHexString("0"); in TEST_F()
230 ByteString bs2 = ByteString::CreateFromHexString("0y"); in TEST_F()
233 ByteString bs3 = ByteString::CreateFromHexString("ab"); in TEST_F()
237 ByteString bs4 = ByteString::CreateFromHexString(kTest1HexString); in TEST_F()
242 ByteString bs1; in TEST_F()
248 ByteString bs2(kTest1, sizeof(kTest1)); in TEST_F()
266 ByteString bs1; in TEST_F()
272 ByteString bs2(kTest1, sizeof(kTest1)); in TEST_F()
290 ByteString bs1(kTest1, sizeof(kTest1)); in TEST_F()
291 ByteString bs2(kTest2, sizeof(kTest2)); in TEST_F()
292 ByteString bs3(kTest3, sizeof(kTest3)); in TEST_F()
293 ByteString bs5(kTest5, sizeof(kTest5)); in TEST_F()
296 EXPECT_TRUE(ByteString::IsLessThan(bs1, bs2)); in TEST_F()
299 EXPECT_TRUE(ByteString::IsLessThan(bs3, bs2)); in TEST_F()
303 EXPECT_TRUE(ByteString::IsLessThan(bs3, bs1)); in TEST_F()
307 EXPECT_TRUE(ByteString::IsLessThan(bs5, bs2)); in TEST_F()
310 EXPECT_FALSE(ByteString::IsLessThan(bs5, bs5)); in TEST_F()