Lines Matching refs:result
86 MapType result; in MakeMap() local
88 result.emplace(i, i); in MakeMap()
90 return result; in MakeMap()
116 Payload result; in TEST() local
122 Serialize(value, &result); in TEST()
124 EXPECT_EQ(expected, result); in TEST()
125 result.Clear(); in TEST()
129 Serialize(value, &result); in TEST()
131 EXPECT_EQ(expected, result); in TEST()
132 result.Clear(); in TEST()
136 Payload result; in TEST() local
142 Serialize(value, &result); in TEST()
144 EXPECT_EQ(expected, result); in TEST()
145 result.Clear(); in TEST()
149 Serialize(value, &result); in TEST()
151 EXPECT_EQ(expected, result); in TEST()
152 result.Clear(); in TEST()
156 Serialize(value, &result); in TEST()
158 EXPECT_EQ(expected, result); in TEST()
159 result.Clear(); in TEST()
163 Serialize(value, &result); in TEST()
165 EXPECT_EQ(expected, result); in TEST()
166 result.Clear(); in TEST()
170 Payload result; in TEST() local
176 Serialize(value, &result); in TEST()
178 EXPECT_EQ(expected, result); in TEST()
179 result.Clear(); in TEST()
183 Serialize(value, &result); in TEST()
185 EXPECT_EQ(expected, result); in TEST()
186 result.Clear(); in TEST()
190 Serialize(value, &result); in TEST()
192 EXPECT_EQ(expected, result); in TEST()
193 result.Clear(); in TEST()
197 Serialize(value, &result); in TEST()
199 EXPECT_EQ(expected, result); in TEST()
200 result.Clear(); in TEST()
204 Serialize(value, &result); in TEST()
206 EXPECT_EQ(expected, result); in TEST()
207 result.Clear(); in TEST()
211 Serialize(value, &result); in TEST()
213 EXPECT_EQ(expected, result); in TEST()
214 result.Clear(); in TEST()
218 Payload result; in TEST() local
224 Serialize(value, &result); in TEST()
226 EXPECT_EQ(expected, result); in TEST()
227 result.Clear(); in TEST()
231 Serialize(value, &result); in TEST()
233 EXPECT_EQ(expected, result); in TEST()
234 result.Clear(); in TEST()
238 Serialize(value, &result); in TEST()
240 EXPECT_EQ(expected, result); in TEST()
241 result.Clear(); in TEST()
245 Serialize(value, &result); in TEST()
247 EXPECT_EQ(expected, result); in TEST()
248 result.Clear(); in TEST()
252 Serialize(value, &result); in TEST()
254 EXPECT_EQ(expected, result); in TEST()
255 result.Clear(); in TEST()
259 Serialize(value, &result); in TEST()
261 EXPECT_EQ(expected, result); in TEST()
262 result.Clear(); in TEST()
266 Serialize(value, &result); in TEST()
268 EXPECT_EQ(expected, result); in TEST()
269 result.Clear(); in TEST()
273 Serialize(value, &result); in TEST()
275 EXPECT_EQ(expected, result); in TEST()
276 result.Clear(); in TEST()
280 Payload result; in TEST() local
286 Serialize(value, &result); in TEST()
288 EXPECT_EQ(expected, result); in TEST()
289 result.Clear(); in TEST()
293 Serialize(value, &result); in TEST()
295 EXPECT_EQ(expected, result); in TEST()
296 result.Clear(); in TEST()
300 Serialize(value, &result); in TEST()
302 EXPECT_EQ(expected, result); in TEST()
303 result.Clear(); in TEST()
307 Serialize(value, &result); in TEST()
309 EXPECT_EQ(expected, result); in TEST()
310 result.Clear(); in TEST()
314 Serialize(value, &result); in TEST()
316 EXPECT_EQ(expected, result); in TEST()
317 result.Clear(); in TEST()
321 Serialize(value, &result); in TEST()
323 EXPECT_EQ(expected, result); in TEST()
324 result.Clear(); in TEST()
328 Serialize(value, &result); in TEST()
330 EXPECT_EQ(expected, result); in TEST()
331 result.Clear(); in TEST()
335 Serialize(value, &result); in TEST()
337 EXPECT_EQ(expected, result); in TEST()
338 result.Clear(); in TEST()
342 Serialize(value, &result); in TEST()
344 EXPECT_EQ(expected, result); in TEST()
345 result.Clear(); in TEST()
349 Serialize(value, &result); in TEST()
352 EXPECT_EQ(expected, result); in TEST()
353 result.Clear(); in TEST()
357 Payload result; in TEST() local
363 Serialize(value, &result); in TEST()
365 EXPECT_EQ(expected, result); in TEST()
366 result.Clear(); in TEST()
370 Serialize(value, &result); in TEST()
372 EXPECT_EQ(expected, result); in TEST()
373 result.Clear(); in TEST()
377 Serialize(value, &result); in TEST()
379 EXPECT_EQ(expected, result); in TEST()
380 result.Clear(); in TEST()
384 Serialize(value, &result); in TEST()
386 EXPECT_EQ(expected, result); in TEST()
387 result.Clear(); in TEST()
391 Serialize(value, &result); in TEST()
393 EXPECT_EQ(expected, result); in TEST()
394 result.Clear(); in TEST()
398 Serialize(value, &result); in TEST()
400 EXPECT_EQ(expected, result); in TEST()
401 result.Clear(); in TEST()
405 Payload result; in TEST() local
411 Serialize(value, &result); in TEST()
413 EXPECT_EQ(expected, result); in TEST()
414 result.Clear(); in TEST()
418 Serialize(value, &result); in TEST()
420 EXPECT_EQ(expected, result); in TEST()
421 result.Clear(); in TEST()
425 Serialize(value, &result); in TEST()
427 EXPECT_EQ(expected, result); in TEST()
428 result.Clear(); in TEST()
432 Serialize(value, &result); in TEST()
434 EXPECT_EQ(expected, result); in TEST()
435 result.Clear(); in TEST()
439 Serialize(value, &result); in TEST()
441 EXPECT_EQ(expected, result); in TEST()
442 result.Clear(); in TEST()
446 Serialize(value, &result); in TEST()
448 EXPECT_EQ(expected, result); in TEST()
449 result.Clear(); in TEST()
453 Serialize(value, &result); in TEST()
455 EXPECT_EQ(expected, result); in TEST()
456 result.Clear(); in TEST()
460 Serialize(value, &result); in TEST()
462 EXPECT_EQ(expected, result); in TEST()
463 result.Clear(); in TEST()
467 Payload result; in TEST() local
473 Serialize(value, &result); in TEST()
475 EXPECT_EQ(expected, result); in TEST()
476 result.Clear(); in TEST()
480 Serialize(value, &result); in TEST()
482 EXPECT_EQ(expected, result); in TEST()
483 result.Clear(); in TEST()
487 Serialize(value, &result); in TEST()
489 EXPECT_EQ(expected, result); in TEST()
490 result.Clear(); in TEST()
494 Serialize(value, &result); in TEST()
496 EXPECT_EQ(expected, result); in TEST()
497 result.Clear(); in TEST()
501 Serialize(value, &result); in TEST()
503 EXPECT_EQ(expected, result); in TEST()
504 result.Clear(); in TEST()
508 Serialize(value, &result); in TEST()
510 EXPECT_EQ(expected, result); in TEST()
511 result.Clear(); in TEST()
515 Serialize(value, &result); in TEST()
517 EXPECT_EQ(expected, result); in TEST()
518 result.Clear(); in TEST()
522 Serialize(value, &result); in TEST()
524 EXPECT_EQ(expected, result); in TEST()
525 result.Clear(); in TEST()
529 Serialize(value, &result); in TEST()
531 EXPECT_EQ(expected, result); in TEST()
532 result.Clear(); in TEST()
536 Serialize(value, &result); in TEST()
538 EXPECT_EQ(expected, result); in TEST()
539 result.Clear(); in TEST()
543 Payload result; in TEST() local
549 Serialize(value, &result); in TEST()
551 EXPECT_EQ(expected, result); in TEST()
552 result.Clear(); in TEST()
556 Serialize(value, &result); in TEST()
558 EXPECT_EQ(expected, result); in TEST()
559 result.Clear(); in TEST()
563 Serialize(value, &result); in TEST()
565 EXPECT_EQ(expected, result); in TEST()
566 result.Clear(); in TEST()
570 Serialize(value, &result); in TEST()
572 EXPECT_EQ(expected, result); in TEST()
573 result.Clear(); in TEST()
577 Serialize(value, &result); in TEST()
579 EXPECT_EQ(expected, result); in TEST()
580 result.Clear(); in TEST()
584 Serialize(value, &result); in TEST()
586 EXPECT_EQ(expected, result); in TEST()
587 result.Clear(); in TEST()
591 Serialize(value, &result); in TEST()
593 EXPECT_EQ(expected, result); in TEST()
594 result.Clear(); in TEST()
598 Serialize(value, &result); in TEST()
600 EXPECT_EQ(expected, result); in TEST()
601 result.Clear(); in TEST()
605 Serialize(value, &result); in TEST()
607 EXPECT_EQ(expected, result); in TEST()
608 result.Clear(); in TEST()
612 Serialize(value, &result); in TEST()
614 EXPECT_EQ(expected, result); in TEST()
615 result.Clear(); in TEST()
619 Serialize(value, &result); in TEST()
622 EXPECT_EQ(expected, result); in TEST()
623 result.Clear(); in TEST()
627 Serialize(value, &result); in TEST()
630 EXPECT_EQ(expected, result); in TEST()
631 result.Clear(); in TEST()
635 Payload result; in TEST() local
640 Serialize(value, &result); in TEST()
643 EXPECT_EQ(expected, result); in TEST()
644 result.Clear(); in TEST()
647 Serialize(value, &result); in TEST()
650 EXPECT_EQ(expected, result); in TEST()
651 result.Clear(); in TEST()
655 Payload result; in TEST() local
660 Serialize(value, &result); in TEST()
664 EXPECT_EQ(expected, result); in TEST()
665 result.Clear(); in TEST()
668 Serialize(value, &result); in TEST()
672 EXPECT_EQ(expected, result); in TEST()
673 result.Clear(); in TEST()
677 Payload result; in TEST() local
682 Serialize(value, &result); in TEST()
684 EXPECT_EQ(expected, result); in TEST()
685 result.Clear(); in TEST()
689 Payload result; in TEST() local
694 Serialize(value, &result); in TEST()
696 EXPECT_EQ(expected, result); in TEST()
697 result.Clear(); in TEST()
701 Payload result; in TEST() local
707 Serialize(fd1, &result); in TEST()
709 EXPECT_EQ(expected, result); in TEST()
710 EXPECT_EQ(1u, result.FdCount()); in TEST()
711 EXPECT_EQ(100, result.FdArray()[0]); in TEST()
712 result.Clear(); in TEST()
715 Serialize(std::forward_as_tuple(fd1, fd2), &result); in TEST()
720 EXPECT_EQ(expected, result); in TEST()
721 EXPECT_EQ(2u, result.FdCount()); in TEST()
722 EXPECT_EQ(100, result.FdArray()[0]); in TEST()
723 EXPECT_EQ(200, result.FdArray()[1]); in TEST()
724 result.Clear(); in TEST()
730 Serialize(fd1, &result); in TEST()
733 EXPECT_EQ(expected, result); in TEST()
734 EXPECT_EQ(0u, result.FdCount()); in TEST()
735 result.Clear(); in TEST()
739 Payload result; in TEST() local
745 Serialize(value, &result); in TEST()
747 EXPECT_EQ(expected, result); in TEST()
748 result.Clear(); in TEST()
752 Serialize(value, &result); in TEST()
755 EXPECT_EQ(expected, result); in TEST()
756 result.Clear(); in TEST()
760 Serialize(value, &result); in TEST()
763 EXPECT_EQ(expected, result); in TEST()
764 result.Clear(); in TEST()
768 Serialize(value, &result); in TEST()
771 EXPECT_EQ(expected, result); in TEST()
772 result.Clear(); in TEST()
776 Serialize(value, &result); in TEST()
779 EXPECT_EQ(expected, result); in TEST()
780 result.Clear(); in TEST()
784 Serialize(value, &result); in TEST()
787 EXPECT_EQ(expected, result); in TEST()
788 result.Clear(); in TEST()
792 Serialize(value, &result); in TEST()
795 EXPECT_EQ(expected, result); in TEST()
796 result.Clear(); in TEST()
800 Payload result; in TEST() local
806 Serialize(WrapString(value), &result); in TEST()
808 EXPECT_EQ(expected, result); in TEST()
809 result.Clear(); in TEST()
813 Serialize(WrapString(value), &result); in TEST()
816 EXPECT_EQ(expected, result); in TEST()
817 result.Clear(); in TEST()
821 Serialize(WrapString(value), &result); in TEST()
824 EXPECT_EQ(expected, result); in TEST()
825 result.Clear(); in TEST()
829 Serialize(WrapString(value), &result); in TEST()
832 EXPECT_EQ(expected, result); in TEST()
833 result.Clear(); in TEST()
837 Serialize(WrapString(value), &result); in TEST()
840 EXPECT_EQ(expected, result); in TEST()
841 result.Clear(); in TEST()
845 Serialize(WrapString(value), &result); in TEST()
848 EXPECT_EQ(expected, result); in TEST()
849 result.Clear(); in TEST()
853 Serialize(WrapString(value), &result); in TEST()
856 EXPECT_EQ(expected, result); in TEST()
857 result.Clear(); in TEST()
861 Payload result; in TEST() local
867 Serialize(value, &result); in TEST()
869 EXPECT_EQ(expected, result); in TEST()
870 result.Clear(); in TEST()
874 Serialize(value, &result); in TEST()
877 EXPECT_EQ(expected, result); in TEST()
878 result.Clear(); in TEST()
882 Serialize(value, &result); in TEST()
885 EXPECT_EQ(expected, result); in TEST()
886 result.Clear(); in TEST()
890 Serialize(value, &result); in TEST()
893 EXPECT_EQ(expected, result); in TEST()
894 result.Clear(); in TEST()
898 Serialize(value, &result); in TEST()
901 EXPECT_EQ(expected, result); in TEST()
902 result.Clear(); in TEST()
906 Payload result; in TEST() local
912 Serialize(value, &result); in TEST()
914 EXPECT_EQ(expected, result); in TEST()
915 result.Clear(); in TEST()
919 Serialize(value, &result); in TEST()
922 EXPECT_EQ(expected, result); in TEST()
923 result.Clear(); in TEST()
927 Serialize(value, &result); in TEST()
930 EXPECT_EQ(expected, result); in TEST()
931 result.Clear(); in TEST()
935 Serialize(value, &result); in TEST()
938 EXPECT_EQ(expected, result); in TEST()
939 result.Clear(); in TEST()
943 Serialize(value, &result); in TEST()
946 EXPECT_EQ(expected, result); in TEST()
947 result.Clear(); in TEST()
951 Payload result; in TEST() local
957 Serialize(value, &result); in TEST()
959 EXPECT_EQ(expected, result); in TEST()
960 result.Clear(); in TEST()
964 Serialize(value, &result); in TEST()
967 EXPECT_EQ(expected, result); in TEST()
968 result.Clear(); in TEST()
972 Serialize(value, &result); in TEST()
975 EXPECT_EQ(expected, result); in TEST()
976 result.Clear(); in TEST()
980 Serialize(value, &result); in TEST()
983 EXPECT_EQ(expected, result); in TEST()
984 result.Clear(); in TEST()
988 Serialize(value, &result); in TEST()
991 EXPECT_EQ(expected, result); in TEST()
992 result.Clear(); in TEST()
996 Payload result; in TEST() local
1001 Serialize(a0, &result); in TEST()
1003 EXPECT_EQ(expected, result); in TEST()
1004 result.Clear(); in TEST()
1010 Serialize(a1, &result); in TEST()
1013 EXPECT_EQ(expected, result); in TEST()
1014 result.Clear(); in TEST()
1020 Serialize(a2, &result); in TEST()
1023 EXPECT_EQ(expected, result); in TEST()
1024 result.Clear(); in TEST()
1030 Serialize(a3, &result); in TEST()
1033 EXPECT_EQ(expected, result); in TEST()
1034 result.Clear(); in TEST()
1040 Serialize(a4, &result); in TEST()
1043 EXPECT_EQ(expected, result); in TEST()
1044 result.Clear(); in TEST()
1048 Payload result; in TEST() local
1055 Serialize(wrapper, &result); in TEST()
1057 EXPECT_EQ(expected, result); in TEST()
1058 result.Clear(); in TEST()
1063 Serialize(wrapper, &result); in TEST()
1066 EXPECT_EQ(expected, result); in TEST()
1067 result.Clear(); in TEST()
1072 Serialize(wrapper, &result); in TEST()
1075 EXPECT_EQ(expected, result); in TEST()
1076 result.Clear(); in TEST()
1081 Serialize(wrapper, &result); in TEST()
1084 EXPECT_EQ(expected, result); in TEST()
1085 result.Clear(); in TEST()
1090 Serialize(wrapper, &result); in TEST()
1093 EXPECT_EQ(expected, result); in TEST()
1094 result.Clear(); in TEST()
1098 Payload result; in TEST() local
1102 Serialize(p1, &result); in TEST()
1104 EXPECT_EQ(expected, result); in TEST()
1105 result.Clear(); in TEST()
1108 Serialize(p2, &result); in TEST()
1112 EXPECT_EQ(expected, result); in TEST()
1113 result.Clear(); in TEST()
1117 Payload result; in TEST() local
1122 Serialize(t1, &result); in TEST()
1124 EXPECT_EQ(expected, result); in TEST()
1125 result.Clear(); in TEST()
1129 Serialize(t2, &result); in TEST()
1132 EXPECT_EQ(expected, result); in TEST()
1133 result.Clear(); in TEST()
1137 Serialize(t3, &result); in TEST()
1140 EXPECT_EQ(expected, result); in TEST()
1141 result.Clear(); in TEST()
1149 Serialize(t4, &result); in TEST()
1152 EXPECT_EQ(expected, result); in TEST()
1153 result.Clear(); in TEST()
1157 Serialize(t5, &result); in TEST()
1160 EXPECT_EQ(expected, result); in TEST()
1161 result.Clear(); in TEST()
1167 Payload result; in TEST() local
1171 Serialize(t1, &result); in TEST()
1174 EXPECT_EQ(expected, result); in TEST()
1175 result.Clear(); in TEST()
1179 Serialize(t2, &result); in TEST()
1184 EXPECT_EQ(expected, result); in TEST()
1185 result.Clear(); in TEST()
1189 Serialize(t3, &result); in TEST()
1195 EXPECT_EQ(expected, result); in TEST()
1196 result.Clear(); in TEST()
1200 Payload result; in TEST() local
1205 Serialize(m1, &result); in TEST()
1210 EXPECT_EQ(expected, result); in TEST()
1211 result.Clear(); in TEST()
1215 Payload result; in TEST() local
1219 Serialize(t1, &result); in TEST()
1225 EXPECT_EQ(expected, result); in TEST()
1226 result.Clear(); in TEST()
1229 Serialize(tt, &result); in TEST()
1233 EXPECT_EQ(expected, result); in TEST()
1237 Payload result; in TEST() local
1243 Serialize(v, &result); in TEST()
1246 EXPECT_EQ(expected, result); in TEST()
1247 result.Clear(); in TEST()
1250 Serialize(v, &result); in TEST()
1254 EXPECT_EQ(expected, result); in TEST()
1255 result.Clear(); in TEST()
1258 Serialize(v, &result); in TEST()
1261 EXPECT_EQ(expected, result); in TEST()
1262 result.Clear(); in TEST()
1265 Serialize(v, &result); in TEST()
1268 EXPECT_EQ(expected, result); in TEST()
1269 result.Clear(); in TEST()
1272 Serialize(v, &result); in TEST()
1280 EXPECT_EQ(expected, result); in TEST()
1281 result.Clear(); in TEST()
1288 bool result = false; in TEST() local
1293 error = Deserialize(&result, &buffer); in TEST()
1295 EXPECT_EQ(1, result); // Gtest generates warning from bool literals. in TEST()
1299 error = Deserialize(&result, &buffer); in TEST()
1301 EXPECT_EQ(0, result); // Gtest generates warning from bool literals. in TEST()
1306 std::uint8_t result = 0; in TEST() local
1311 error = Deserialize(&result, &buffer); in TEST()
1313 EXPECT_EQ(0U, result); in TEST()
1317 error = Deserialize(&result, &buffer); in TEST()
1319 EXPECT_EQ(127U, result); in TEST()
1323 error = Deserialize(&result, &buffer); in TEST()
1325 EXPECT_EQ(0U, result); in TEST()
1329 error = Deserialize(&result, &buffer); in TEST()
1331 EXPECT_EQ(0xffU, result); in TEST()
1335 error = Deserialize(&result, &buffer); in TEST()
1342 error = Deserialize(&result, &buffer); in TEST()
1349 error = Deserialize(&result, &buffer); in TEST()
1357 std::uint16_t result = 0; in TEST() local
1362 error = Deserialize(&result, &buffer); in TEST()
1364 EXPECT_EQ(0U, result); in TEST()
1368 error = Deserialize(&result, &buffer); in TEST()
1370 EXPECT_EQ(127U, result); in TEST()
1374 error = Deserialize(&result, &buffer); in TEST()
1376 EXPECT_EQ(0U, result); in TEST()
1380 error = Deserialize(&result, &buffer); in TEST()
1382 EXPECT_EQ(0xffU, result); in TEST()
1386 error = Deserialize(&result, &buffer); in TEST()
1388 EXPECT_EQ(0U, result); in TEST()
1392 error = Deserialize(&result, &buffer); in TEST()
1394 EXPECT_EQ(0xffffU, result); in TEST()
1398 error = Deserialize(&result, &buffer); in TEST()
1405 error = Deserialize(&result, &buffer); in TEST()
1413 std::uint32_t result = 0; in TEST() local
1418 error = Deserialize(&result, &buffer); in TEST()
1420 EXPECT_EQ(0U, result); in TEST()
1424 error = Deserialize(&result, &buffer); in TEST()
1426 EXPECT_EQ(127U, result); in TEST()
1430 error = Deserialize(&result, &buffer); in TEST()
1432 EXPECT_EQ(0U, result); in TEST()
1436 error = Deserialize(&result, &buffer); in TEST()
1438 EXPECT_EQ(0xffU, result); in TEST()
1442 error = Deserialize(&result, &buffer); in TEST()
1444 EXPECT_EQ(0U, result); in TEST()
1448 error = Deserialize(&result, &buffer); in TEST()
1450 EXPECT_EQ(0xffffU, result); in TEST()
1454 error = Deserialize(&result, &buffer); in TEST()
1456 EXPECT_EQ(0U, result); in TEST()
1460 error = Deserialize(&result, &buffer); in TEST()
1462 EXPECT_EQ(0xffffffffU, result); in TEST()
1466 error = Deserialize(&result, &buffer); in TEST()
1474 std::uint64_t result = 0; in TEST() local
1479 error = Deserialize(&result, &buffer); in TEST()
1481 EXPECT_EQ(0U, result); in TEST()
1485 error = Deserialize(&result, &buffer); in TEST()
1487 EXPECT_EQ(127U, result); in TEST()
1491 error = Deserialize(&result, &buffer); in TEST()
1493 EXPECT_EQ(0U, result); in TEST()
1497 error = Deserialize(&result, &buffer); in TEST()
1499 EXPECT_EQ(0xffU, result); in TEST()
1503 error = Deserialize(&result, &buffer); in TEST()
1505 EXPECT_EQ(0U, result); in TEST()
1509 error = Deserialize(&result, &buffer); in TEST()
1511 EXPECT_EQ(0xffffU, result); in TEST()
1515 error = Deserialize(&result, &buffer); in TEST()
1517 EXPECT_EQ(0U, result); in TEST()
1521 error = Deserialize(&result, &buffer); in TEST()
1523 EXPECT_EQ(0xffffffffU, result); in TEST()
1528 error = Deserialize(&result, &buffer); in TEST()
1530 EXPECT_EQ(0U, result); in TEST()
1535 error = Deserialize(&result, &buffer); in TEST()
1537 EXPECT_EQ(0xffffffffffffffffUL, result); in TEST()
1542 std::int8_t result = 0; in TEST() local
1547 error = Deserialize(&result, &buffer); in TEST()
1549 EXPECT_EQ(-32, result); in TEST()
1553 error = Deserialize(&result, &buffer); in TEST()
1555 EXPECT_EQ(-1, result); in TEST()
1559 error = Deserialize(&result, &buffer); in TEST()
1561 EXPECT_EQ(0, result); in TEST()
1565 error = Deserialize(&result, &buffer); in TEST()
1567 EXPECT_EQ(127, result); in TEST()
1571 error = Deserialize(&result, &buffer); in TEST()
1573 EXPECT_EQ(-128, result); in TEST()
1577 error = Deserialize(&result, &buffer); in TEST()
1579 EXPECT_EQ(127, result); in TEST()
1583 error = Deserialize(&result, &buffer); in TEST()
1590 error = Deserialize(&result, &buffer); in TEST()
1597 error = Deserialize(&result, &buffer); in TEST()
1605 std::int16_t result = 0; in TEST() local
1610 error = Deserialize(&result, &buffer); in TEST()
1612 EXPECT_EQ(-32, result); in TEST()
1616 error = Deserialize(&result, &buffer); in TEST()
1618 EXPECT_EQ(-1, result); in TEST()
1622 error = Deserialize(&result, &buffer); in TEST()
1624 EXPECT_EQ(0, result); in TEST()
1628 error = Deserialize(&result, &buffer); in TEST()
1630 EXPECT_EQ(127, result); in TEST()
1634 error = Deserialize(&result, &buffer); in TEST()
1636 EXPECT_EQ(-128, result); in TEST()
1640 error = Deserialize(&result, &buffer); in TEST()
1642 EXPECT_EQ(127, result); in TEST()
1646 error = Deserialize(&result, &buffer); in TEST()
1648 EXPECT_EQ(-32768, result); in TEST()
1652 error = Deserialize(&result, &buffer); in TEST()
1654 EXPECT_EQ(32767, result); in TEST()
1658 error = Deserialize(&result, &buffer); in TEST()
1665 error = Deserialize(&result, &buffer); in TEST()
1673 std::int32_t result = 0; in TEST() local
1678 error = Deserialize(&result, &buffer); in TEST()
1680 EXPECT_EQ(-32, result); in TEST()
1684 error = Deserialize(&result, &buffer); in TEST()
1686 EXPECT_EQ(-1, result); in TEST()
1690 error = Deserialize(&result, &buffer); in TEST()
1692 EXPECT_EQ(0, result); in TEST()
1696 error = Deserialize(&result, &buffer); in TEST()
1698 EXPECT_EQ(127, result); in TEST()
1702 error = Deserialize(&result, &buffer); in TEST()
1704 EXPECT_EQ(-128, result); in TEST()
1708 error = Deserialize(&result, &buffer); in TEST()
1710 EXPECT_EQ(127, result); in TEST()
1714 error = Deserialize(&result, &buffer); in TEST()
1716 EXPECT_EQ(-32768, result); in TEST()
1720 error = Deserialize(&result, &buffer); in TEST()
1722 EXPECT_EQ(32767, result); in TEST()
1726 error = Deserialize(&result, &buffer); in TEST()
1728 EXPECT_EQ(-2147483648, result); in TEST()
1732 error = Deserialize(&result, &buffer); in TEST()
1734 EXPECT_EQ(2147483647, result); in TEST()
1738 error = Deserialize(&result, &buffer); in TEST()
1746 std::int64_t result = 0; in TEST() local
1751 error = Deserialize(&result, &buffer); in TEST()
1753 EXPECT_EQ(-32, result); in TEST()
1757 error = Deserialize(&result, &buffer); in TEST()
1759 EXPECT_EQ(-1, result); in TEST()
1763 error = Deserialize(&result, &buffer); in TEST()
1765 EXPECT_EQ(0, result); in TEST()
1769 error = Deserialize(&result, &buffer); in TEST()
1771 EXPECT_EQ(127, result); in TEST()
1775 error = Deserialize(&result, &buffer); in TEST()
1777 EXPECT_EQ(-128, result); in TEST()
1781 error = Deserialize(&result, &buffer); in TEST()
1783 EXPECT_EQ(127, result); in TEST()
1787 error = Deserialize(&result, &buffer); in TEST()
1789 EXPECT_EQ(-32768, result); in TEST()
1793 error = Deserialize(&result, &buffer); in TEST()
1795 EXPECT_EQ(32767, result); in TEST()
1799 error = Deserialize(&result, &buffer); in TEST()
1801 EXPECT_EQ(-2147483648, result); in TEST()
1805 error = Deserialize(&result, &buffer); in TEST()
1807 EXPECT_EQ(2147483647, result); in TEST()
1812 error = Deserialize(&result, &buffer); in TEST()
1816 EXPECT_EQ(-9223372036854775807LL - 1, result); in TEST()
1821 error = Deserialize(&result, &buffer); in TEST()
1823 EXPECT_EQ(9223372036854775807LL, result); in TEST()
1828 float result; in TEST() local
1834 error = Deserialize(&result, &buffer); in TEST()
1836 EXPECT_EQ(kZeroFloat, result); in TEST()
1841 error = Deserialize(&result, &buffer); in TEST()
1843 EXPECT_EQ(kOneFloat, result); in TEST()
1848 double result; in TEST() local
1854 error = Deserialize(&result, &buffer); in TEST()
1856 EXPECT_EQ(kZeroDouble, result); in TEST()
1862 error = Deserialize(&result, &buffer); in TEST()
1864 EXPECT_EQ(kZeroDouble, result); in TEST()
1869 error = Deserialize(&result, &buffer); in TEST()
1871 EXPECT_EQ(kOneDouble, result); in TEST()
1877 error = Deserialize(&result, &buffer); in TEST()
1879 EXPECT_EQ(kOneDouble, result); in TEST()
1884 enum Foo { kFoo, kBar, kBaz } result; in TEST() local
1888 error = Deserialize(&result, &buffer); in TEST()
1890 EXPECT_EQ(kBar, result); in TEST()
1895 enum Foo { kFoo, kBar, kBaz } result; in TEST() local
1899 error = Deserialize(&result, &buffer); in TEST()
1901 EXPECT_EQ(Foo::kBaz, result); in TEST()
1937 std::string result = ""; in TEST() local
1942 error = Deserialize(&result, &buffer); in TEST()
1944 EXPECT_EQ("", result); in TEST()
1949 error = Deserialize(&result, &buffer); in TEST()
1951 EXPECT_EQ(std::string((1 << 5) - 1, 'x'), result); in TEST()
1955 error = Deserialize(&result, &buffer); in TEST()
1957 EXPECT_EQ("", result); in TEST()
1962 error = Deserialize(&result, &buffer); in TEST()
1964 EXPECT_EQ(std::string(0xff, 'x'), result); in TEST()
1968 error = Deserialize(&result, &buffer); in TEST()
1970 EXPECT_EQ("", result); in TEST()
1975 error = Deserialize(&result, &buffer); in TEST()
1977 EXPECT_EQ(std::string(0xffff, 'x'), result); in TEST()
1981 error = Deserialize(&result, &buffer); in TEST()
1983 EXPECT_EQ("", result); in TEST()
1989 error = Deserialize(&result, &buffer); in TEST()
1991 EXPECT_EQ(std::string(0x10000, 'x'), result); in TEST()
1997 result; in TEST() local
2003 error = Deserialize(&result, &buffer); in TEST()
2006 EXPECT_EQ(expected, result); in TEST()
2011 error = Deserialize(&result, &buffer); in TEST()
2014 EXPECT_EQ(expected, result); in TEST()
2018 error = Deserialize(&result, &buffer); in TEST()
2021 EXPECT_EQ(expected, result); in TEST()
2026 error = Deserialize(&result, &buffer); in TEST()
2029 EXPECT_EQ(expected, result); in TEST()
2033 error = Deserialize(&result, &buffer); in TEST()
2036 EXPECT_EQ(expected, result); in TEST()
2041 error = Deserialize(&result, &buffer); in TEST()
2044 EXPECT_EQ(expected, result); in TEST()
2049 std::map<std::uint32_t, std::uint32_t> result; in TEST() local
2055 error = Deserialize(&result, &buffer); in TEST()
2058 EXPECT_EQ(expected, result); in TEST()
2062 error = Deserialize(&result, &buffer); in TEST()
2067 InsertKeyValue<decltype(result)>(&buffer, (1 << 4) - 1); in TEST()
2068 error = Deserialize(&result, &buffer); in TEST()
2071 EXPECT_EQ(expected, result); in TEST()
2075 error = Deserialize(&result, &buffer); in TEST()
2078 EXPECT_EQ(expected, result); in TEST()
2082 InsertKeyValue<decltype(result)>(&buffer, (1 << 16) - 1); in TEST()
2083 error = Deserialize(&result, &buffer); in TEST()
2086 EXPECT_EQ(expected, result); in TEST()
2090 error = Deserialize(&result, &buffer); in TEST()
2093 EXPECT_EQ(expected, result); in TEST()
2097 InsertKeyValue<decltype(result)>(&buffer, (1 << 16)); in TEST()
2098 error = Deserialize(&result, &buffer); in TEST()
2101 EXPECT_EQ(expected, result); in TEST()
2106 std::unordered_map<std::uint32_t, std::uint32_t> result; in TEST() local
2112 error = Deserialize(&result, &buffer); in TEST()
2115 EXPECT_EQ(expected, result); in TEST()
2119 error = Deserialize(&result, &buffer); in TEST()
2124 InsertKeyValue<decltype(result)>(&buffer, (1 << 4) - 1); in TEST()
2125 error = Deserialize(&result, &buffer); in TEST()
2128 EXPECT_EQ(expected, result); in TEST()
2132 error = Deserialize(&result, &buffer); in TEST()
2135 EXPECT_EQ(expected, result); in TEST()
2139 InsertKeyValue<decltype(result)>(&buffer, (1 << 16) - 1); in TEST()
2140 error = Deserialize(&result, &buffer); in TEST()
2143 EXPECT_EQ(expected, result); in TEST()
2147 error = Deserialize(&result, &buffer); in TEST()
2150 EXPECT_EQ(expected, result); in TEST()
2154 InsertKeyValue<decltype(result)>(&buffer, (1 << 16)); in TEST()
2155 error = Deserialize(&result, &buffer); in TEST()
2158 EXPECT_EQ(expected, result); in TEST()
2220 result; in TEST() local
2225 result.reserve(0x10000); in TEST()
2226 ArrayWrapper<std::uint8_t> wrapper(result.data(), result.capacity()); in TEST()
2232 result.resize(wrapper.size()); in TEST()
2234 EXPECT_EQ(expected, result); in TEST()
2241 result.resize(wrapper.size()); in TEST()
2243 EXPECT_EQ(expected, result); in TEST()
2249 result.resize(wrapper.size()); in TEST()
2251 EXPECT_EQ(expected, result); in TEST()
2258 result.resize(wrapper.size()); in TEST()
2260 EXPECT_EQ(expected, result); in TEST()
2266 result.resize(wrapper.size()); in TEST()
2268 EXPECT_EQ(expected, result); in TEST()
2275 result.resize(wrapper.size()); in TEST()
2277 EXPECT_EQ(expected, result); in TEST()