Lines Matching refs:strlen
81 const size_t size = strlen(s); // don't include terminating NULL char
174 EXPECT_FALSE(encoder_.EncodeChunk(kTarget, strlen(kTarget), delta()));
216 EXPECT_TRUE(null_encoder.EncodeChunk(kTarget, strlen(kTarget), delta()));
218 EXPECT_GE(strlen(kTarget) + kFileHeaderSize + kWindowHeaderSize,
229 EXPECT_TRUE(simple_encoder_.Encode(kTarget, strlen(kTarget), delta()));
230 EXPECT_GE(strlen(kTarget) + kFileHeaderSize + kWindowHeaderSize,
241 EXPECT_TRUE(simple_encoder_.Encode(kTarget, strlen(kTarget), delta()));
242 EXPECT_GE(strlen(kTarget) + kFileHeaderSize + kWindowHeaderSize,
254 strlen(kTarget),
256 EXPECT_GE(strlen(kTarget) + kFileHeaderSize + kWindowHeaderSize,
267 EXPECT_TRUE(encoder_.EncodeChunk(kTarget, strlen(kTarget), delta()));
269 EXPECT_GE(strlen(kTarget) + kFileHeaderSize + kWindowHeaderSize,
281 EXPECT_TRUE(json_encoder_.EncodeChunk(kTarget, strlen(kTarget), delta()));
289 EXPECT_TRUE(encoder_.EncodeChunk(kTarget, strlen(kTarget), &delta_encode));
291 EXPECT_GE(strlen(kTarget) + kFileHeaderSize + kWindowHeaderSize,
313 EXPECT_TRUE(encoder_.EncodeChunk(kTarget, strlen(kTarget), &delta_crope));
315 EXPECT_GE(strlen(kTarget) + kFileHeaderSize + kWindowHeaderSize,
339 chunk_start_index < strlen(kTarget);
342 const size_t bytes_available = strlen(kTarget) - chunk_start_index;
351 const size_t num_windows = (strlen(kTarget) / chunk_size) + 1;
353 strlen(kTarget) + (kWindowHeaderSize * num_windows);
383 for (size_t chunk_size = 1; chunk_size < strlen(kTarget); ++chunk_size) {
420 for (size_t chunk_size = 1; chunk_size < strlen(kTarget); ++chunk_size) {
436 chunk_start_index < strlen(kTarget);
439 const size_t bytes_available = strlen(kTarget) - chunk_start_index;
454 const size_t num_windows = (strlen(kTarget) / chunk_size) + 1;
456 strlen(kTarget) + (kWindowHeaderSize * num_windows);
470 for (size_t chunk_size = 1; chunk_size < strlen(kTarget); ++chunk_size) {
491 strlen(kTarget),
494 EXPECT_GE(strlen(kTarget) + kFileHeaderSize + kWindowHeaderSize,
506 EXPECT_TRUE(copy_encoder.EncodeChunk(kTarget, strlen(kTarget), &delta_after));
617 const size_t target_size = strlen(kTarget);
649 const size_t target_size = strlen(kTarget);
725 EXPECT_TRUE(simple_encoder_.Encode(kTarget, strlen(kTarget), delta()));
726 EXPECT_GE(strlen(kTarget) + kFileHeaderSize + kWindowHeaderSize,
737 EXPECT_TRUE(encoder_.EncodeChunk(kTarget, strlen(kTarget), delta()));
755 ExpectSize(strlen(kTarget)); // Size of the target window
775 ExpectSize(strlen(kTarget)); // Size of the target window
791 ExpectSize(strlen(kTarget) + 7); // Delta encoding len
792 ExpectSize(strlen(kTarget)); // Size of the target window
794 ExpectSize(strlen(kTarget)); // Length of the data section
800 ExpectSize(strlen(kTarget));
807 strlen(kRedundantTarget),
809 EXPECT_GE(strlen(kRedundantTarget) + kFileHeaderSize + kWindowHeaderSize,
826 ExpectSize(strlen(kRedundantTarget)); // Size of the target window
836 ExpectSize(strlen(kRedundantTarget) - 1); // COPY size 255
845 strlen(kRedundantTarget),
847 EXPECT_GE(strlen(kRedundantTarget) + kFileHeaderSize + kWindowHeaderSize,
863 ExpectSize(strlen(kRedundantTarget) + 0x0A); // Length of the delta encoding
864 ExpectSize(strlen(kRedundantTarget)); // Size of the target window
866 ExpectSize(strlen(kRedundantTarget)); // Length of the data section
873 ExpectSize(strlen(kRedundantTarget)); // ADD size
912 EXPECT_TRUE(simple_encoder_.Encode(kTarget, strlen(kTarget), delta()));
913 EXPECT_GE(strlen(kTarget) + kFileHeaderSize + kWindowHeaderSize,
924 EXPECT_TRUE(encoder_.EncodeChunk(kTarget, strlen(kTarget), delta()));
925 EXPECT_GE(strlen(kTarget) + kFileHeaderSize + kWindowHeaderSize,
947 ExpectSize(strlen(kTarget)); // Size of the target window
961 ExpectSize(strlen(kTarget) + 7); // Delta encoding len
962 ExpectSize(strlen(kTarget)); // Size of the target window
964 ExpectSize(strlen(kTarget)); // Length of the data section
970 ExpectSize(strlen(kTarget));
977 const VCDChecksum html2_checksum = ComputeAdler32(kTarget, strlen(kTarget));
990 ExpectSize(strlen(kTarget)); // Size of the target window
1005 ExpectSize(strlen(kTarget) + 12); // Delta encoding len
1006 ExpectSize(strlen(kTarget)); // Size of the target window
1009 ExpectSize(0x02 + strlen(kTarget)); // Interleaved
1014 ExpectSize(strlen(kTarget));