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< CasDownloaderCasFromCommandLine (std::string service_account_filepath, CasDownloaderFlags flags)
 
template<typename... Args>
std::unique_ptr< CasDownloaderCasWithServiceAccountUsingConfig (std::string service_account_filepath, bool prefer_uncompressed=false, Args... flag_args)
 
template<typename... Args>
std::unique_ptr< CasDownloaderCasUsingConfig (Args... flag_args)
 
template<typename... Args>
std::unique_ptr< CasDownloaderCasPreferUncompressedUsingConfig (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)
 
Result< void > CreateTestDirs ()
 
void SetUp () override
 

Protected Attributes

TemporaryDir temp_dir_
 
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

◆ 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

◆ 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

◆ 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: