/external/bsdiff/ |
D | split_patch_writer_unittest.cc | 61 EXPECT_TRUE(patch_writer_->AddControlEntry(ControlEntry(15, 5, 0))); in TEST_F() 74 EXPECT_TRUE(patch_writer_->AddControlEntry(ControlEntry(5, 15, -5))); in TEST_F() 87 EXPECT_TRUE(patch_writer_->AddControlEntry(ControlEntry(5, 1, -5))); in TEST_F() 88 EXPECT_TRUE(patch_writer_->AddControlEntry(ControlEntry(4, 0, -4))); in TEST_F() 90 EXPECT_TRUE(patch_writer_->AddControlEntry(ControlEntry(6, 0, -1))); in TEST_F() 92 EXPECT_TRUE(patch_writer_->AddControlEntry(ControlEntry(1, 18, 2))); in TEST_F() 94 EXPECT_TRUE(patch_writer_->AddControlEntry(ControlEntry(1, 0, 1))); in TEST_F() 95 EXPECT_TRUE(patch_writer_->AddControlEntry(ControlEntry(4, 0, -5))); in TEST_F() 103 EXPECT_EQ((std::vector<ControlEntry>{ in TEST_F() 104 ControlEntry(5, 1, -5), in TEST_F() [all …]
|
D | diff_encoder_unittest.cc | 57 EXPECT_TRUE(diff_encoder_->AddControlEntry(ControlEntry(0, 5, 0))); in TEST_F() 59 ControlEntry(0, sizeof(kHelloWorld) - 5, 0))); in TEST_F() 72 diff_encoder_->AddControlEntry(ControlEntry(sizeof(kHelloWorld), 0, 0))); in TEST_F() 83 EXPECT_TRUE(diff_encoder_->AddControlEntry(ControlEntry(0, 0, -5))); in TEST_F() 84 EXPECT_TRUE(diff_encoder_->AddControlEntry(ControlEntry(0, 0, 2))); in TEST_F() 85 EXPECT_FALSE(diff_encoder_->AddControlEntry(ControlEntry(1, 0, 0))); in TEST_F() 92 diff_encoder_->AddControlEntry(ControlEntry(0, 0, sizeof(kHelloWorld)))); in TEST_F() 93 EXPECT_FALSE(diff_encoder_->AddControlEntry(ControlEntry(1, 0, 0))); in TEST_F() 103 ControlEntry(0, 0, sizeof(kHelloWorld) - 3))); in TEST_F() 105 diff_encoder_->AddControlEntry(ControlEntry(sizeof(kHelloWorld), 0, 0))); in TEST_F() [all …]
|
D | endsley_patch_writer_unittest.cc | 60 EXPECT_TRUE(compressed_writer.AddControlEntry(ControlEntry(5, 5, -2))); in TEST_F() 88 EXPECT_TRUE(patch_writer_.AddControlEntry(ControlEntry(2, 3, -2))); in TEST_F() 95 EXPECT_TRUE(patch_writer_.AddControlEntry(ControlEntry(0, 5, 1024))); in TEST_F() 135 EXPECT_TRUE(patch_writer_.AddControlEntry(ControlEntry(2, 3, -2))); in TEST_F() 136 EXPECT_TRUE(patch_writer_.AddControlEntry(ControlEntry(2, 1, 1024))); in TEST_F() 137 EXPECT_TRUE(patch_writer_.AddControlEntry(ControlEntry(1, 1, 1024))); in TEST_F() 164 ControlEntry entry(kEntrySize / 2, kEntrySize / 2, -1); in TEST_F()
|
D | split_patch_writer.cc | 43 bool SplitPatchWriter::AddControlEntry(const ControlEntry& entry) { in AddControlEntry() 44 ControlEntry remaining(entry); in AddControlEntry() 53 ControlEntry current_patch_entry(0, 0, 0); in AddControlEntry() 90 ControlEntry(0, 0, old_pos_))) in AddControlEntry() 135 const ControlEntry& entry) { in AddControlEntryToCurrentPatch()
|
D | endsley_patch_writer.h | 54 bool AddControlEntry(const ControlEntry& entry) override; 59 void EmitControlEntry(const ControlEntry& entry); 82 std::vector<ControlEntry> control_;
|
D | fake_patch_writer.h | 30 bool AddControlEntry(const ControlEntry& entry) override { in AddControlEntry() 54 const std::vector<ControlEntry>& entries() const { return entries_; } in entries() 61 std::vector<ControlEntry> entries_;
|
D | patch_writer_unittest.cc | 73 EXPECT_TRUE(patch_writer_.AddControlEntry(ControlEntry(0, 5, 0))); in TEST_F() 75 ControlEntry(0, sizeof(kHelloWorld) - 5, 0))); in TEST_F() 96 patch_writer_.AddControlEntry(ControlEntry(sizeof(kHelloWorld), 0, 0))); in TEST_F()
|
D | bsdiff_unittest.cc | 61 ControlEntry entry = patch_writer_.entries()[0]; in TEST_F() 80 ControlEntry entry = patch_writer_.entries()[0]; in TEST_F() 101 ControlEntry entry = patch_writer_.entries()[0]; in TEST_F()
|
D | split_patch_writer.h | 39 bool AddControlEntry(const ControlEntry& entry) override; 45 bool AddControlEntryToCurrentPatch(const ControlEntry& entry);
|
D | endsley_patch_writer.cc | 99 bool EndsleyPatchWriter::AddControlEntry(const ControlEntry& entry) { in AddControlEntry() 149 void EndsleyPatchWriter::EmitControlEntry(const ControlEntry& entry) { in EmitControlEntry() 173 const ControlEntry& entry = control_[used_control]; in Flush()
|
D | patch_reader.h | 35 bool ParseControlEntry(ControlEntry* control_entry);
|
D | diff_encoder.h | 43 bool AddControlEntry(const ControlEntry& entry);
|
D | patch_writer.h | 36 bool AddControlEntry(const ControlEntry& entry) override;
|
D | diff_encoder.cc | 26 bool DiffEncoder::AddControlEntry(const ControlEntry& entry) { in AddControlEntry()
|
D | patch_reader_unittest.cc | 91 ControlEntry control_entry(0, 0, 0); in VerifyPatch() 240 ControlEntry control_entry(0, 0, 0); in TEST_F()
|
D | patch_reader.cc | 118 bool BsdiffPatchReader::ParseControlEntry(ControlEntry* control_entry) { in ParseControlEntry()
|
D | patch_writer.cc | 121 bool BsdiffPatchWriter::AddControlEntry(const ControlEntry& entry) { in AddControlEntry()
|
D | bsdiff.cc | 173 ControlEntry(lenf, in bsdiff()
|
D | bspatch.cc | 267 ControlEntry control_entry(0, 0, 0); in bspatch()
|
/external/bsdiff/include/bsdiff/ |
D | control_entry.h | 10 struct ControlEntry { struct 11 ControlEntry(uint64_t diff_size, in ControlEntry() function 27 bool operator==(const ControlEntry& o) const { argument
|
D | patch_writer_interface.h | 40 virtual bool AddControlEntry(const ControlEntry& entry) = 0;
|