Aktualizr
C++ SOTA Client
All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
Public Member Functions | List of all members
UpdateAgentMock Class Reference
Inheritance diagram for UpdateAgentMock:
[legend]
Collaboration diagram for UpdateAgentMock:
[legend]

Public Member Functions

 UpdateAgentMock (boost::filesystem::path target_filepath, std::string target_name)
 
 MOCK_METHOD (bool, download,(const Uptane::Target &target, const std::string &data))
 
 MOCK_METHOD (data::ResultCode::Numeric, install,(const Uptane::Target &target))
 
- Public Member Functions inherited from FileUpdateAgent
 FileUpdateAgent (boost::filesystem::path target_filepath, std::string target_name)
 
bool isTargetSupported (const Uptane::Target &target) const override
 
bool getInstalledImageInfo (Uptane::InstalledImageInfo &installed_image_info) const override
 
bool download (const Uptane::Target &target, const std::string &data) override
 
data::ResultCode::Numeric install (const Uptane::Target &target) override
 
void completeInstall () override
 
data::InstallationResult applyPendingInstall (const Uptane::Target &target) override
 
- Public Member Functions inherited from UpdateAgent
 UpdateAgent (const UpdateAgent &)=delete
 
UpdateAgentoperator= (const UpdateAgent &)=delete
 

Additional Inherited Members

- Public Types inherited from UpdateAgent
using Ptr = std::shared_ptr< UpdateAgent >
 

Detailed Description

Definition at line 16 of file aktualizr_secondary_test.cc.


The documentation for this class was generated from the following file: