Merge "Add a GetMappedPackageLength to Updater" am: 5135d1f095 am: 254e5c940b
am: 2040283730
Change-Id: Id1e061da1299c46814ff125efef3bda613f7f748
This commit is contained in:
@@ -44,4 +44,5 @@ class UpdaterInterface {
|
|||||||
virtual ZipArchiveHandle GetPackageHandle() const = 0;
|
virtual ZipArchiveHandle GetPackageHandle() const = 0;
|
||||||
virtual std::string GetResult() const = 0;
|
virtual std::string GetResult() const = 0;
|
||||||
virtual uint8_t* GetMappedPackageAddress() const = 0;
|
virtual uint8_t* GetMappedPackageAddress() const = 0;
|
||||||
|
virtual size_t GetMappedPackageLength() const = 0;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -62,10 +62,12 @@ class Updater : public UpdaterInterface {
|
|||||||
std::string GetResult() const override {
|
std::string GetResult() const override {
|
||||||
return result_;
|
return result_;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t* GetMappedPackageAddress() const override {
|
uint8_t* GetMappedPackageAddress() const override {
|
||||||
return mapped_package_.addr;
|
return mapped_package_.addr;
|
||||||
}
|
}
|
||||||
|
size_t GetMappedPackageLength() const override {
|
||||||
|
return mapped_package_.length;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class UpdaterTestBase;
|
friend class UpdaterTestBase;
|
||||||
|
|||||||
Reference in New Issue
Block a user