Home
last modified time | relevance | path

Searched refs:ControlEntry (Results 1 – 21 of 21) sorted by relevance

/external/bsdiff/
Dsplit_patch_writer_unittest.cc61 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 …]
Ddiff_encoder_unittest.cc57 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 …]
Dendsley_patch_writer_unittest.cc60 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()
Dsplit_patch_writer.cc43 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()
Dendsley_patch_writer.h54 bool AddControlEntry(const ControlEntry& entry) override;
59 void EmitControlEntry(const ControlEntry& entry);
82 std::vector<ControlEntry> control_;
Dfake_patch_writer.h30 bool AddControlEntry(const ControlEntry& entry) override { in AddControlEntry()
54 const std::vector<ControlEntry>& entries() const { return entries_; } in entries()
61 std::vector<ControlEntry> entries_;
Dpatch_writer_unittest.cc73 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()
Dbsdiff_unittest.cc61 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()
Dendsley_patch_writer.cc99 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()
Dsplit_patch_writer.h39 bool AddControlEntry(const ControlEntry& entry) override;
45 bool AddControlEntryToCurrentPatch(const ControlEntry& entry);
Dpatch_reader.h35 bool ParseControlEntry(ControlEntry* control_entry);
Ddiff_encoder.h43 bool AddControlEntry(const ControlEntry& entry);
Dpatch_writer.h36 bool AddControlEntry(const ControlEntry& entry) override;
Dpatch_reader_unittest.cc91 ControlEntry control_entry(0, 0, 0); in VerifyPatch()
240 ControlEntry control_entry(0, 0, 0); in TEST_F()
Ddiff_encoder.cc26 bool DiffEncoder::AddControlEntry(const ControlEntry& entry) { in AddControlEntry()
Dpatch_reader.cc118 bool BsdiffPatchReader::ParseControlEntry(ControlEntry* control_entry) { in ParseControlEntry()
Dpatch_writer.cc121 bool BsdiffPatchWriter::AddControlEntry(const ControlEntry& entry) { in AddControlEntry()
Dbsdiff.cc173 ControlEntry(lenf, in bsdiff()
Dbspatch.cc266 ControlEntry control_entry(0, 0, 0); in bspatch()
/external/bsdiff/include/bsdiff/
Dcontrol_entry.h10 struct ControlEntry { struct
11 ControlEntry(uint64_t diff_size, in ControlEntry() argument
27 bool operator==(const ControlEntry& o) const { argument
Dpatch_writer_interface.h40 virtual bool AddControlEntry(const ControlEntry& entry) = 0;