Android-cuttlefish cvd tool
Protected Member Functions | Protected Attributes | List of all members
cuttlefish::CasDownloaderTests Class Reference
Inheritance diagram for cuttlefish::CasDownloaderTests:
Inheritance graph
[legend]
Collaboration diagram for cuttlefish::CasDownloaderTests:
Collaboration graph
[legend]

Protected Member Functions

std::string FakeCasdownloader (const std::string &text)
 
template<typename... Args>
std::string CreateCasConfig (const std::string &downloader_path, bool prefer_uncompressed, Args... flag_args)
 
std::unique_ptr< CasDownloader > CasFromCommandLine (std::string service_account_filepath, CasDownloaderFlags flags)
 
template<typename... Args>
std::unique_ptr< CasDownloader > CasWithServiceAccountUsingConfig (std::string service_account_filepath, bool prefer_uncompressed=false, Args... flag_args)
 
template<typename... Args>
std::unique_ptr< CasDownloader > CasUsingConfig (Args... flag_args)
 
template<typename... Args>
std::unique_ptr< CasDownloader > CasPreferUncompressedUsingConfig (Args... flag_args)
 
template<typename... Args>
std::string FakeDownloaderForArtifactAndFlags (std::string artifact_path, Args... flag_args)
 
template<typename... Args>
std::string CasDigestsFile (const std::string &filename, Args... file_args)
 
DeviceBuild MakeDeviceBuild (const std::string &id, const std::string &target, const std::string &branch="")
 
Result< std::string > DownloadWithDigests (CasDownloader &cas, const DeviceBuild &build, const std::string &artifact_name, DigestsFn digests, const std::optional< std::string > &stats_filepath=std::nullopt)
 
Result< void > CreateTestDirs ()
 
void SetUp () override
 

Protected Attributes

TemporaryDir temp_dir_
 
FakeDigestsSource digests_source_
 
std::string target_dir_
 
std::string cas_output_filepath_
 
std::string cas_config_filepath_
 
std::string downloader_path_
 
std::string service_account_filepath_
 

Member Function Documentation

◆ CasDigestsFile()

template<typename... Args>
std::string cuttlefish::CasDownloaderTests::CasDigestsFile ( const std::string &  filename,
Args...  file_args 
)
inlineprotected

◆ CasFromCommandLine()

std::unique_ptr< CasDownloader > cuttlefish::CasDownloaderTests::CasFromCommandLine ( std::string  service_account_filepath,
CasDownloaderFlags  flags 
)
inlineprotected

◆ CasPreferUncompressedUsingConfig()

template<typename... Args>
std::unique_ptr< CasDownloader > cuttlefish::CasDownloaderTests::CasPreferUncompressedUsingConfig ( Args...  flag_args)
inlineprotected

◆ CasUsingConfig()

template<typename... Args>
std::unique_ptr< CasDownloader > cuttlefish::CasDownloaderTests::CasUsingConfig ( Args...  flag_args)
inlineprotected

◆ CasWithServiceAccountUsingConfig()

template<typename... Args>
std::unique_ptr< CasDownloader > cuttlefish::CasDownloaderTests::CasWithServiceAccountUsingConfig ( std::string  service_account_filepath,
bool  prefer_uncompressed = false,
Args...  flag_args 
)
inlineprotected

◆ CreateCasConfig()

template<typename... Args>
std::string cuttlefish::CasDownloaderTests::CreateCasConfig ( const std::string &  downloader_path,
bool  prefer_uncompressed,
Args...  flag_args 
)
inlineprotected

◆ CreateTestDirs()

Result< void > cuttlefish::CasDownloaderTests::CreateTestDirs ( )
inlineprotected

◆ DownloadWithDigests()

Result< std::string > cuttlefish::CasDownloaderTests::DownloadWithDigests ( CasDownloader &  cas,
const DeviceBuild &  build,
const std::string &  artifact_name,
DigestsFn  digests,
const std::optional< std::string > &  stats_filepath = std::nullopt 
)
inlineprotected

◆ FakeCasdownloader()

std::string cuttlefish::CasDownloaderTests::FakeCasdownloader ( const std::string &  text)
inlineprotected

◆ FakeDownloaderForArtifactAndFlags()

template<typename... Args>
std::string cuttlefish::CasDownloaderTests::FakeDownloaderForArtifactAndFlags ( std::string  artifact_path,
Args...  flag_args 
)
inlineprotected

◆ MakeDeviceBuild()

DeviceBuild cuttlefish::CasDownloaderTests::MakeDeviceBuild ( const std::string &  id,
const std::string &  target,
const std::string &  branch = "" 
)
inlineprotected

◆ SetUp()

void cuttlefish::CasDownloaderTests::SetUp ( )
inlineoverrideprotected

Member Data Documentation

◆ cas_config_filepath_

std::string cuttlefish::CasDownloaderTests::cas_config_filepath_
protected

◆ cas_output_filepath_

std::string cuttlefish::CasDownloaderTests::cas_output_filepath_
protected

◆ digests_source_

FakeDigestsSource cuttlefish::CasDownloaderTests::digests_source_
protected

◆ downloader_path_

std::string cuttlefish::CasDownloaderTests::downloader_path_
protected

◆ service_account_filepath_

std::string cuttlefish::CasDownloaderTests::service_account_filepath_
protected

◆ target_dir_

std::string cuttlefish::CasDownloaderTests::target_dir_
protected

◆ temp_dir_

TemporaryDir cuttlefish::CasDownloaderTests::temp_dir_
protected

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