Lines Matching refs:contents
734 string contents; member in SectionFixture
767 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
768 ASSERT_EQ(sizeof(data), contents.size()); in TEST_F()
769 EXPECT_TRUE(0 == memcmp(contents.data(), (const char *) data, sizeof(data))); in TEST_F()
775 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
776 ASSERT_EQ(2 * sizeof(data), contents.size()); in TEST_F()
777 ASSERT_TRUE(0 == memcmp(contents.data(), (const char *) data, sizeof(data))); in TEST_F()
778 ASSERT_TRUE(0 == memcmp(contents.data() + sizeof(data), in TEST_F()
787 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
788 ASSERT_STREQ(contents.c_str(), "howdy there"); in TEST_F()
795 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
796 ASSERT_EQ(string("howdy\0\0there\0", 13), contents); in TEST_F()
805 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
806 ASSERT_EQ(string("howtherefred\0\0\0\0\0\0\0\0\0\0\0\0", 24), contents); in TEST_F()
811 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
812 ASSERT_STREQ(contents.c_str(), "**********"); in TEST_F()
817 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
818 ASSERT_BYTES(contents, I1(42)); in TEST_F()
823 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
824 ASSERT_BYTES(contents, I2(0xa1, 0x15)); in TEST_F()
829 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
830 ASSERT_BYTES(contents, I3(0x8d, 0xae, 0x59)); in TEST_F()
835 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
836 ASSERT_BYTES(contents, I4(0x56, 0x3c, 0x60, 0x51)); in TEST_F()
841 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
842 ASSERT_BYTES(contents, I5(0xb4, 0x03, 0x28, 0x5e, 0x38)); in TEST_F()
847 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
848 ASSERT_BYTES(contents, I6(0x1f, 0xdd, 0x34, 0x95, 0xdb, 0xc7)); in TEST_F()
853 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
854 ASSERT_BYTES(contents, I7(0xe6, 0x43, 0xb8, 0xf1, 0xc9, 0x45, 0x14)); in TEST_F()
859 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
860 ASSERT_BYTES(contents, I8(0xe5, 0x01, 0x5c, 0xfe, 0x9d, 0x01, 0x48, 0xaf)); in TEST_F()
865 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
866 ASSERT_BYTES(contents, I1(0xd0)); in TEST_F()
871 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
872 ASSERT_BYTES(contents, I2(0x2e, 0x7e)); in TEST_F()
877 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
878 ASSERT_BYTES(contents, I3(0x37, 0xda, 0xd6)); in TEST_F()
883 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
884 ASSERT_BYTES(contents, I4(0x71, 0x59, 0x35, 0xc7)); in TEST_F()
889 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
890 ASSERT_BYTES(contents, I5(0x42, 0xba, 0xeb, 0x02, 0xb7)); in TEST_F()
895 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
896 ASSERT_BYTES(contents, I6(0xf1, 0xcd, 0xf1, 0x0e, 0x7b, 0x18)); in TEST_F()
901 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
902 ASSERT_BYTES(contents, I7(0xf5, 0x0a, 0x72, 0x4f, 0x0b, 0x0d, 0x20)); in TEST_F()
907 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
908 ASSERT_BYTES(contents, I8(0xa6, 0xb2, 0xcb, 0x5e, 0x98, 0xdc, 0x9c, 0x16)); in TEST_F()
915 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
916 ASSERT_BYTES(contents, I1(42)); in TEST_F()
923 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
924 ASSERT_BYTES(contents, I2(0xa1, 0x15)); in TEST_F()
931 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
932 ASSERT_BYTES(contents, I3(0x8d, 0xae, 0x59)); in TEST_F()
939 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
940 ASSERT_BYTES(contents, I4(0x56, 0x3c, 0x60, 0x51)); in TEST_F()
947 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
948 ASSERT_BYTES(contents, I5(0xb4, 0x03, 0x28, 0x5e, 0x38)); in TEST_F()
955 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
956 ASSERT_BYTES(contents, I6(0x1f, 0xdd, 0x34, 0x95, 0xdb, 0xc7)); in TEST_F()
963 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
964 ASSERT_BYTES(contents, I7(0xe6, 0x43, 0xb8, 0xf1, 0xc9, 0x45, 0x14)); in TEST_F()
971 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
972 ASSERT_BYTES(contents, I8(0xe5, 0x01, 0x5c, 0xfe, 0x9d, 0x01, 0x48, 0xaf)); in TEST_F()
979 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
980 ASSERT_BYTES(contents, I1(0xd0)); in TEST_F()
987 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
988 ASSERT_BYTES(contents, I2(0x2e, 0x7e)); in TEST_F()
995 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
996 ASSERT_BYTES(contents, I3(0x37, 0xda, 0xd6)); in TEST_F()
1003 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1004 ASSERT_BYTES(contents, I4(0x71, 0x59, 0x35, 0xc7)); in TEST_F()
1011 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1012 ASSERT_BYTES(contents, I5(0x42, 0xba, 0xeb, 0x02, 0xb7)); in TEST_F()
1019 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1020 ASSERT_BYTES(contents, I6(0xf1, 0xcd, 0xf1, 0x0e, 0x7b, 0x18)); in TEST_F()
1027 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1028 ASSERT_BYTES(contents, I7(0xf5, 0x0a, 0x72, 0x4f, 0x0b, 0x0d, 0x20)); in TEST_F()
1035 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1036 ASSERT_BYTES(contents, I8(0xa6, 0xb2, 0xcb, 0x5e, 0x98, 0xdc, 0x9c, 0x16)); in TEST_F()
1042 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1043 ASSERT_BYTES(contents, I2(0x2a, 0xd3)); in TEST_F()
1051 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1052 ASSERT_BYTES(contents, I2(0x2a, 0x4b)); in TEST_F()
1058 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1059 ASSERT_BYTES(contents, I3(0x2a, 0x47, 0x2a)); in TEST_F()
1067 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1068 ASSERT_BYTES(contents, I3(0x2a, 0x55, 0xe8)); in TEST_F()
1074 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1075 ASSERT_BYTES(contents, I5(0x2a, 0xbd, 0x41, 0x2c, 0xbc)); in TEST_F()
1083 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1084 ASSERT_BYTES(contents, I5(0x2a, 0x20, 0x8e, 0x37, 0xd5)); in TEST_F()
1090 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1091 ASSERT_BYTES(contents, in TEST_F()
1100 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1101 ASSERT_BYTES(contents, in TEST_F()
1108 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1109 ASSERT_BYTES(contents, I2(0x2a, 0x26)); in TEST_F()
1117 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1118 ASSERT_BYTES(contents, I2(0x2a, 0xa8)); in TEST_F()
1124 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1125 ASSERT_BYTES(contents, I3(0x2a, 0x6d, 0xca)); in TEST_F()
1133 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1134 ASSERT_BYTES(contents, I3(0x2a, 0x1f, 0xd2)); in TEST_F()
1140 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1141 ASSERT_BYTES(contents, I5(0x2a, 0x81, 0x61, 0x8f, 0x55)); in TEST_F()
1149 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1150 ASSERT_BYTES(contents, I5(0x2a, 0x82, 0x0f, 0x81, 0x4b)); in TEST_F()
1156 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1157 ASSERT_BYTES(contents, in TEST_F()
1166 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1167 ASSERT_BYTES(contents, in TEST_F()
1175 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1176 ASSERT_BYTES(contents, I2(0x2a, 0xe6)); in TEST_F()
1185 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1186 ASSERT_BYTES(contents, I2(0x2a, 0xee)); in TEST_F()
1193 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1194 ASSERT_BYTES(contents, I3(0x2a, 0x83, 0xb1)); in TEST_F()
1203 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1204 ASSERT_BYTES(contents, I3(0x2a, 0x5b, 0x55)); in TEST_F()
1211 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1212 ASSERT_BYTES(contents, I5(0x2a, 0xd0, 0xb0, 0xe4, 0x31)); in TEST_F()
1221 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1222 ASSERT_BYTES(contents, I5(0x2a, 0x31, 0x2f, 0xb3, 0x40)); in TEST_F()
1229 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1230 ASSERT_BYTES(contents, in TEST_F()
1240 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1241 ASSERT_BYTES(contents, in TEST_F()
1249 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1250 ASSERT_BYTES(contents, I2(0x2a, 0x42)); in TEST_F()
1259 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1260 ASSERT_BYTES(contents, I2(0x2a, 0x05)); in TEST_F()
1267 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1268 ASSERT_BYTES(contents, I3(0x2a, 0xc5, 0xc5)); in TEST_F()
1277 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1278 ASSERT_BYTES(contents, I3(0x2a, 0x20, 0xb6)); in TEST_F()
1285 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1286 ASSERT_BYTES(contents, I5(0x2a, 0xfe, 0xd0, 0x87, 0x1a)); in TEST_F()
1295 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1296 ASSERT_BYTES(contents, I5(0x2a, 0x6b, 0x2d, 0x01, 0xb8)); in TEST_F()
1303 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1304 ASSERT_BYTES(contents, in TEST_F()
1314 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1315 ASSERT_BYTES(contents, in TEST_F()
1362 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1383 ASSERT_TRUE(0 == memcmp(contents.data(), expected, sizeof(expected))); in TEST_F()
1395 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1396 EXPECT_STREQ(contents.c_str(), "murder she wrote"); in TEST_F()
1411 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1412 EXPECT_STREQ(contents.c_str(), "sugar free jazz"); in TEST_F()
1417 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1418 EXPECT_EQ(string("\0", 1), contents); in TEST_F()
1423 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1424 EXPECT_EQ(string("\x3f", 1), contents); in TEST_F()
1429 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1430 EXPECT_EQ(string("\xc0\x00", 2), contents); in TEST_F()
1435 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1436 EXPECT_EQ(string("\xff\x00", 2), contents); in TEST_F()
1441 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1442 EXPECT_EQ(string("\x80\x01", 2), contents); in TEST_F()
1447 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1448 EXPECT_EQ(string("\xff\x01", 2), contents); in TEST_F()
1453 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1454 EXPECT_EQ(string("\xff\x3f", 2), contents); in TEST_F()
1459 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1460 EXPECT_EQ(string("\x80\xc0\x00", 3), contents); in TEST_F()
1465 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1466 EXPECT_EQ(string("\x7f", 1), contents); in TEST_F()
1471 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1472 EXPECT_EQ(string("\x40", 1), contents); in TEST_F()
1477 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1478 EXPECT_EQ(string("\xbf\x7f", 2), contents); in TEST_F()
1483 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1484 EXPECT_EQ(string("\x81\x7f", 2), contents); in TEST_F()
1489 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1490 EXPECT_EQ(string("\x80\x7f", 2), contents); in TEST_F()
1495 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1496 EXPECT_EQ(string("\x80\x40", 2), contents); in TEST_F()
1501 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1502 EXPECT_EQ(string("\xff\xbf\x7f", 3), contents); in TEST_F()
1507 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1508 EXPECT_EQ(string("\0", 1), contents); in TEST_F()
1513 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1514 EXPECT_EQ(string("\x01", 1), contents); in TEST_F()
1519 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1520 EXPECT_EQ(string("\x3f", 1), contents); in TEST_F()
1525 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1526 EXPECT_EQ(string("\x40", 1), contents); in TEST_F()
1531 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1532 EXPECT_EQ(string("\x7f", 1), contents); in TEST_F()
1537 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1538 EXPECT_EQ(string("\x80\x01", 2), contents); in TEST_F()
1543 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1544 EXPECT_EQ(string("\xff\x01", 2), contents); in TEST_F()
1549 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1550 EXPECT_EQ(string("\x80\x02", 2), contents); in TEST_F()
1555 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1556 EXPECT_EQ(string("\xff\x3f", 2), contents); in TEST_F()
1561 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1562 EXPECT_EQ(string("\x80\x40", 2), contents); in TEST_F()
1567 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1568 EXPECT_EQ(string("\xff\x7f", 2), contents); in TEST_F()
1573 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1574 EXPECT_EQ(string("\x80\x80\x01", 3), contents); in TEST_F()
1579 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1580 EXPECT_EQ(string("\xb9\x64", 2), contents); in TEST_F()
1585 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1586 EXPECT_EQ(string("\x80\x7f\xb9\x64*", 5), contents); in TEST_F()
1595 ASSERT_FALSE(section.GetContents(&contents)); in TEST_F()
1601 EXPECT_TRUE(section.GetContents(&contents)); in TEST_F()
1609 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1610 ASSERT_BYTES(contents, I1(42)); in TEST_F()
1611 ASSERT_TRUE(section.GetContents(&contents)); // should not die in TEST_F()
1624 ASSERT_TRUE(section.GetContents(&contents)); // should not die in TEST_F()
1643 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F()
1644 ASSERT_EQ(string("* **"), contents); in TEST_F()