Lines Matching full:size
32 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
33 for (size_t i = 0; i < delta_file_header_.size(); ++i) {
41 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
42 for (size_t i = 0; i < delta_file_.size(); ++i) {
51 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
52 for (size_t i = 0; i < delta_file_.size(); ++i) {
62 delta_file_.resize(delta_file_.size() - 1);
63 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
64 for (size_t i = 0; i < delta_file_.size(); ++i) {
69 EXPECT_GE(expected_target_.size(), output_.size());
74 delta_file_.resize(delta_file_header_.size()
75 + delta_window_header_.size() - 1);
76 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
77 for (size_t i = 0; i < delta_file_.size(); ++i) {
92 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
94 for (size_t i = 0; i < delta_file_.size(); ++i) {
102 EXPECT_GE(expected_target_.size(), output_.size());
106 decoder_.SetMaximumTargetWindowSize(expected_target_.size());
107 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
108 for (size_t i = 0; i < delta_file_.size(); ++i) {
116 decoder_.SetMaximumTargetFileSize(expected_target_.size());
117 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
118 for (size_t i = 0; i < delta_file_.size(); ++i) {
126 decoder_.SetMaximumTargetWindowSize(expected_target_.size() - 1);
127 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
129 for (size_t i = 0; i < delta_file_.size(); ++i) {
140 decoder_.SetMaximumTargetFileSize(expected_target_.size() - 1);
141 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
143 for (size_t i = 0; i < delta_file_.size(); ++i) {
159 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
161 for (size_t i = 0; i < delta_file_.size(); ++i) {
171 EXPECT_GE(expected_target_.size(), output_.size());
182 delta_file_[delta_file_header_.size()] = VCD_SOURCE + VCD_TARGET;
183 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
185 for (size_t i = 0; i < delta_file_.size(); ++i) {
189 EXPECT_EQ(delta_file_header_.size(), i);
200 delta_file_[delta_file_header_.size()] = 0xFD;
201 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
202 for (size_t i = 0; i < delta_file_.size(); ++i) {
211 // Replace the Win_Indicator and the source size and source offset with a
215 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
217 for (size_t i = 0; i < delta_file_.size(); ++i) {
232 ++delta_file_[delta_file_header_.size() + 2]; // increment size
233 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
235 for (size_t i = 0; i < delta_file_.size(); ++i) {
238 // It should fail after decoding the source segment size
239 EXPECT_EQ(delta_file_header_.size() + 2, i);
249 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
251 for (size_t i = 0; i < delta_file_.size(); ++i) {
254 // It should fail after decoding the source segment size
255 EXPECT_EQ(delta_file_header_.size() + 5, i);
265 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
267 for (size_t i = 0; i < delta_file_.size(); ++i) {
270 // It should fail after decoding the source segment size
271 EXPECT_EQ(delta_file_header_.size() + 4, i);
281 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
283 for (size_t i = 0; i < delta_file_.size(); ++i) {
286 // It should fail after decoding the source segment size
287 EXPECT_GE(delta_file_header_.size() + 6, i);
297 ++delta_file_[delta_file_header_.size() + 3]; // increment start pos
298 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
300 for (size_t i = 0; i < delta_file_.size(); ++i) {
304 EXPECT_EQ(delta_file_header_.size() + 3, i);
314 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
316 for (size_t i = 0; i < delta_file_.size(); ++i) {
320 EXPECT_EQ(delta_file_header_.size() + 7, i);
330 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
332 for (size_t i = 0; i < delta_file_.size(); ++i) {
336 EXPECT_EQ(delta_file_header_.size() + 6, i);
346 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
348 for (size_t i = 0; i < delta_file_.size(); ++i) {
352 EXPECT_GE(delta_file_header_.size() + 8, i);
361 delta_file_[delta_file_header_.size() + 4] = 0;
362 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
364 for (size_t i = 0; i < delta_file_.size(); ++i) {
367 // It should fail after decoding the copy address segment size
368 EXPECT_EQ(delta_file_header_.size() + 10, i);
377 ++delta_file_[delta_file_header_.size() + 4];
378 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
380 for (size_t i = 0; i < delta_file_.size(); ++i) {
383 // It should fail after decoding the copy address segment size
384 EXPECT_EQ(delta_file_header_.size() + 10, i);
393 --delta_file_[delta_file_header_.size() + 4];
394 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
396 for (size_t i = 0; i < delta_file_.size(); ++i) {
399 // It should fail after decoding the copy address segment size
400 EXPECT_EQ(delta_file_header_.size() + 10, i);
410 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
412 for (size_t i = 0; i < delta_file_.size(); ++i) {
416 EXPECT_GE(delta_file_header_.size() + delta_window_header_.size() + 4,
427 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
429 for (size_t i = 0; i < delta_file_.size(); ++i) {
433 EXPECT_EQ(delta_file_header_.size() + 7, i);
443 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
445 for (size_t i = 0; i < delta_file_.size(); ++i) {
449 EXPECT_GE(delta_file_header_.size() + 9, i);
459 delta_file_.replace(delta_file_header_.size
460 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
462 for (size_t i = 0; i < delta_file_.size(); ++i) {
473 ++delta_file_[delta_file_header_.size() + 6];
474 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
476 for (size_t i = 0; i < delta_file_.size(); ++i) {
484 EXPECT_GE(expected_target_.size(), output_.size());
488 --delta_file_[delta_file_header_.size() + 6];
489 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
491 for (size_t i = 0; i < delta_file_.size(); ++i) {
499 EXPECT_GE(expected_target_.size(), output_.size());
504 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
506 for (size_t i = 0; i < delta_file_.size(); ++i) {
509 // It should fail after decoding the target window size
510 EXPECT_EQ(delta_file_header_.size() + 9, i);
520 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
522 for (size_t i = 0; i < delta_file_.size(); ++i) {
525 // It should fail after decoding the target window size
526 EXPECT_EQ(delta_file_header_.size() + 8, i);
536 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
538 for (size_t i = 0; i < delta_file_.size(); ++i) {
541 // It should fail after decoding the target window size
542 EXPECT_GE(delta_file_header_.size() + 10, i);
552 delta_file_[delta_file_header_.size() + 7] = 0xF8;
553 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
554 for (size_t i = 0; i < delta_file_.size(); ++i) {
562 delta_file_[delta_file_header_.size() + 7] = 0x01;
563 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
565 for (size_t i = 0; i < delta_file_.size(); ++i) {
569 EXPECT_EQ(delta_file_header_.size() + 7, i);
579 delta_file_[delta_file_header_.size() + 7] = 0x02;
580 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
582 for (size_t i = 0; i < delta_file_.size(); ++i) {
586 EXPECT_EQ(delta_file_header_.size() + 7, i);
595 delta_file_[delta_file_header_.size() + 7] = 0x04;
596 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
598 for (size_t i = 0; i < delta_file_.size(); ++i) {
602 EXPECT_EQ(delta_file_header_.size() + 7, i);
611 delta_file_[delta_file_header_.size() + 8] = 0;
612 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
614 for (size_t i = 0; i < delta_file_.size(); ++i) {
617 // It should fail after decoding the copy address segment size
618 EXPECT_EQ(delta_file_header_.size() + 10, i);
627 ++delta_file_[delta_file_header_.size() + 8];
628 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
630 for (size_t i = 0; i < delta_file_.size(); ++i) {
633 // It should fail after decoding the copy address segment size
634 EXPECT_EQ(delta_file_header_.size() + 10, i);
643 --delta_file_[delta_file_header_.size() + 8];
644 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
646 for (size_t i = 0; i < delta_file_.size(); ++i) {
649 // It should fail after decoding the copy address segment size
650 EXPECT_EQ(delta_file_header_.size() + 10, i);
660 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
662 for (size_t i = 0; i < delta_file_.size(); ++i) {
666 EXPECT_GE(delta_file_header_.size() + delta_window_header_.size() + 4,
677 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
679 for (size_t i = 0; i < delta_file_.size(); ++i) {
682 // It should fail after decoding the add/run data segment size
683 EXPECT_EQ(delta_file_header_.size() + 11, i);
693 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
695 for (size_t i = 0; i < delta_file_.size(); ++i) {
698 // It should fail after decoding the add/run data segment size
699 EXPECT_GE(delta_file_header_.size() + 13, i);
708 delta_file_[delta_file_header_.size() + 9] = 0;
709 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
711 for (size_t i = 0; i < delta_file_.size(); ++i) {
714 // It should fail after decoding the copy address segment size
715 EXPECT_EQ(delta_file_header_.size() + 10, i);
724 ++delta_file_[delta_file_header_.size() + 9];
725 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
727 for (size_t i = 0; i < delta_file_.size(); ++i) {
730 // It should fail after decoding the copy address segment size
731 EXPECT_EQ(delta_file_header_.size() + 10, i);
740 --delta_file_[delta_file_header_.size() + 9];
741 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
743 for (size_t i = 0; i < delta_file_.size(); ++i) {
746 // It should fail after decoding the copy address segment size
747 EXPECT_EQ(delta_file_header_.size() + 10, i);
757 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
759 for (size_t i = 0; i < delta_file_.size(); ++i) {
763 EXPECT_GE(delta_file_header_.size() + delta_window_header_.size() + 4,
774 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
776 for (size_t i = 0; i < delta_file_.size(); ++i) {
779 // It should fail after decoding the instructions segment size
780 EXPECT_EQ(delta_file_header_.size() + 12, i);
790 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
792 for (size_t i = 0; i < delta_file_.size(); ++i) {
795 // It should fail after decoding the instructions segment size
796 EXPECT_GE(delta_file_header_.size() + 14, i);
805 delta_file_[delta_file_header_.size() + 10] = 0;
806 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
808 for (size_t i = 0; i < delta_file_.size(); ++i) {
811 // It should fail after decoding the copy address segment size
812 EXPECT_EQ(delta_file_header_.size() + 10, i);
821 ++delta_file_[delta_file_header_.size() + 10];
822 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
824 for (size_t i = 0; i < delta_file_.size(); ++i) {
827 // It should fail after decoding the copy address segment size
828 EXPECT_EQ(delta_file_header_.size() + 10, i);
837 --delta_file_[delta_file_header_.size() + 10];
838 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
840 for (size_t i = 0; i < delta_file_.size(); ++i) {
843 // It should fail after decoding the copy address segment size
844 EXPECT_EQ(delta_file_header_.size() + 10, i);
854 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
856 for (size_t i = 0; i < delta_file_.size(); ++i) {
859 // It should fail after decoding the copy address segment size
860 EXPECT_EQ(delta_file_header_.size() + 14, i);
870 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
872 for (size_t i = 0; i < delta_file_.size(); ++i) {
875 // It should fail after decoding the copy address segment size
876 EXPECT_EQ(delta_file_header_.size() + 13, i);
886 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
888 for (size_t i = 0; i < delta_file_.size(); ++i) {
891 // It should fail after decoding the copy address segment size
892 EXPECT_GE(delta_file_header_.size() + 15, i);
901 --delta_file_[delta_file_header_.size() + 9];
902 ++delta_file_[delta_file_header_.size() + 10];
903 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
905 for (size_t i = 0; i < delta_file_.size(); ++i) {
913 EXPECT_GE(expected_target_.size(), output_.size());
920 delta_file_[delta_file_header_.size() + 0x70] =
922 delta_file_[delta_file_header_.size() + 0x71] =
924 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
926 for (size_t i = 0; i < delta_file_.size(); ++i) {
934 EXPECT_GE(expected_target_.size(), output_.size());
938 delta_file_[delta_file_header_.size() + 0x70] = 0;
939 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
941 for (size_t i = 0; i < delta_file_.size(); ++i) {
949 EXPECT_GE(expected_target_.size(), output_.size());
953 ++delta_file_[delta_file_header_.size() + 0x70];
954 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
956 for (size_t i = 0; i < delta_file_.size(); ++i) {
964 EXPECT_GE(expected_target_.size(), output_.size());
968 --delta_file_[delta_file_header_.size() + 0x70];
969 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
971 for (size_t i = 0; i < delta_file_.size(); ++i) {
979 EXPECT_GE(expected_target_.size(), output_.size());
984 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
986 for (size_t i = 0; i < delta_file_.size(); ++i) {
994 EXPECT_GE(expected_target_.size(), output_.size());
999 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
1001 for (size_t i = 0; i < delta_file_.size(); ++i) {
1009 EXPECT_GE(expected_target_.size(), output_.size());
1014 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
1016 for (size_t i = 0; i < delta_file_.size(); ++i) {
1024 EXPECT_GE(expected_target_.size(), output_.size());
1028 delta_file_[delta_file_header_.size() + 0x7B] =
1030 delta_file_[delta_file_header_.size() + 0x7C] =
1032 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
1034 for (size_t i = 0; i < delta_file_.size(); ++i) {
1042 EXPECT_GE(expected_target_.size(), output_.size());
1047 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
1049 for (size_t i = 0; i < delta_file_.size(); ++i) {
1057 EXPECT_GE(expected_target_.size(), output_.size());
1062 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
1064 for (size_t i = 0; i < delta_file_.size(); ++i) {
1072 EXPECT_GE(expected_target_.size(), output_.size());
1077 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
1079 for (size_t i = 0; i < delta_file_.size(); ++i) {
1087 EXPECT_GE(expected_target_.size(), output_.size());
1091 delta_file_[delta_file_header_.size() + 0x72] =
1093 delta_file_[delta_file_header_.size() + 0x73] =
1095 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
1097 for (size_t i = 0; i < delta_file_.size(); ++i) {
1105 EXPECT_GE(expected_target_.size(), output_.size());
1109 delta_file_[delta_file_header_.size() + 0x72] = 0;
1110 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
1112 for (size_t i = 0; i < delta_file_.size(); ++i) {
1120 EXPECT_GE(expected_target_.size(), output_.size());
1124 ++delta_file_[delta_file_header_.size() + 0x72];
1125 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
1127 for (size_t i = 0; i < delta_file_.size(); ++i) {
1135 EXPECT_GE(expected_target_.size(), output_.size());
1139 --delta_file_[delta_file_header_.size() + 0x72];
1140 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
1142 for (size_t i = 0; i < delta_file_.size(); ++i) {
1150 EXPECT_GE(expected_target_.size(), output_.size());
1155 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
1157 for (size_t i = 0; i < delta_file_.size(); ++i) {
1165 EXPECT_GE(expected_target_.size(), output_.size());
1170 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
1172 for (size_t i = 0; i < delta_file_.size(); ++i) {
1180 EXPECT_GE(expected_target_.size(), output_.size());
1185 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
1187 for (size_t i = 0; i < delta_file_.size(); ++i) {
1195 EXPECT_GE(expected_target_.size(), output_.size());
1199 delta_file_[delta_file_header_.size() + 0x78] =
1201 delta_file_[delta_file_header_.size() + 0x79] =
1203 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
1205 for (size_t i = 0; i < delta_file_.size(); ++i) {
1213 EXPECT_GE(expected_target_.size(), output_.size());
1217 delta_file_[delta_file_header_.size() + 0x78] = 0;
1218 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
1220 for (size_t i = 0; i < delta_file_.size(); ++i) {
1228 EXPECT_GE(expected_target_.size(), output_.size());
1232 ++delta_file_[delta_file_header_.size() + 0x78];
1233 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
1235 for (size_t i = 0; i < delta_file_.size(); ++i) {
1243 EXPECT_GE(expected_target_.size(), output_.size());
1247 --delta_file_[delta_file_header_.size() + 0x78];
1248 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
1250 for (size_t i = 0; i < delta_file_.size(); ++i) {
1258 EXPECT_GE(expected_target_.size(), output_.size());
1263 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
1265 for (size_t i = 0; i < delta_file_.size(); ++i) {
1273 EXPECT_GE(expected_target_.size(), output_.size());
1278 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
1280 for (size_t i = 0; i < delta_file_.size(); ++i) {
1288 EXPECT_GE(expected_target_.size(), output_.size());
1293 decoder_.StartDecoding(dictionary_.data(), dictionary_.size());
1295 for (size_t i = 0; i < delta_file_.size(); ++i) {
1303 EXPECT_GE(expected_target_.size(), output_.size());