Home | History | Annotate | Download | only in base

Lines Matching defs:bytes

211 // The actual length in bytes of the invalid messages (including STUN header)
215 0x00, 0x01, 0x00, 0x00, // length of 0 (last 2 bytes)
302 0x3a, 0x68, 0x36, 0x76, // } Username (9 bytes) and padding (3 bytes)
375 0xaa, 0xe3, 0x83, 0x83, // } Username value (18 bytes) and padding (2 bytes)
388 0x70, 0x6c, 0x65, 0x2e, // } Realm value (11 bytes) and padding (1 byte)
419 0x3a, 0x68, 0x36, 0x76, // } Username (9 bytes) and padding (3 bytes)
882 std::string bytes;
883 out.ReadString(&bytes, len1);
884 ASSERT_EQ(0, memcmp(bytes.c_str(), kStunMessageWithIPv6MappedAddress, len1));
911 std::string bytes;
912 out.ReadString(&bytes, len1);
913 ASSERT_EQ(0, memcmp(bytes.c_str(), kStunMessageWithIPv4MappedAddress, len1));
940 std::string bytes;
941 out.ReadString(&bytes, len1);
943 memcmp(bytes.c_str(), kStunMessageWithIPv6XorMappedAddress, len1));
970 std::string bytes;
971 out.ReadString(&bytes, len1);
973 memcmp(bytes.c_str(), kStunMessageWithIPv4XorMappedAddress, len1));
1219 mi_attr->bytes(), kCalculatedHmac1, sizeof(kCalculatedHmac1)));
1237 0, memcmp(mi_attr2->bytes(), kCalculatedHmac2, sizeof(kCalculatedHmac2)));
1360 const StunByteStringAttribute* bytes = msg.GetByteString(STUN_ATTR_USERNAME);
1361 ASSERT_TRUE(bytes != NULL);
1362 EXPECT_EQ(12U, bytes->length());
1363 EXPECT_EQ("abcdefghijkl", bytes->GetString());
1378 bytes = msg.GetByteString(STUN_ATTR_MAGIC_COOKIE);
1379 ASSERT_TRUE(bytes != NULL);
1380 EXPECT_EQ(4U, bytes->length());
1382 memcmp(bytes->bytes(),
1421 bytes = msg.GetByteString(STUN_ATTR_DATA);
1422 ASSERT_TRUE(bytes != NULL);
1423 EXPECT_EQ(7U, bytes->length());
1424 EXPECT_EQ("abcdefg", bytes->GetString());