Android-cuttlefish cvd tool
Classes | Namespaces | Functions
cas_downloader_test.cpp File Reference
#include "cuttlefish/host/libs/web/cas/cas_downloader.h"
#include <stdlib.h>
#include <fstream>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include <android-base/file.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <fmt/core.h>
#include "cuttlefish/common/libs/utils/files.h"
#include "cuttlefish/common/libs/utils/result.h"
#include "cuttlefish/common/libs/utils/result_matchers.h"
#include "cuttlefish/host/libs/web/cas/cas_flags.h"
Include dependency graph for cas_downloader_test.cpp:

Classes

class  cuttlefish::CasDownloaderTests
 

Namespaces

namespace  cuttlefish
 

Functions

void cuttlefish::CreateTempFileWithText (const std::string &filepath, const std::string &text)
 
 cuttlefish::TEST_F (CasDownloaderTests, FailsToCreateWithInvalidConfigPath)
 
 cuttlefish::TEST_F (CasDownloaderTests, FailsToCreateWithInvalidCasDownloaderPath)
 
 cuttlefish::TEST_F (CasDownloaderTests, UsesAdcIfServiceAccountUnavailable)
 
 cuttlefish::TEST_F (CasDownloaderTests, UsesServiceAccountIfAvailable)
 
 cuttlefish::TEST_F (CasDownloaderTests, IgnoresUnsupportedFlags)
 
 cuttlefish::TEST_F (CasDownloaderTests, HandlesFalseBoolFlag)
 
 cuttlefish::TEST_F (CasDownloaderTests, HandlesUnexpectedHelpOutput)
 
 cuttlefish::TEST_F (CasDownloaderTests, PassesOptionalStatsFilepathWhenSet)
 
 cuttlefish::TEST_F (CasDownloaderTests, RecognizesValidFlags)
 
 cuttlefish::TEST_F (CasDownloaderTests, DisablesCacheIfCacheDirNotSet)
 
 cuttlefish::TEST_F (CasDownloaderTests, CacheEnabledIfCacheDirSet)
 
 cuttlefish::TEST_F (CasDownloaderTests, FailsIfDigestsFileDoesNotExist)
 
 cuttlefish::TEST_F (CasDownloaderTests, FailsIfArtifactNotInDigestsFile)
 
 cuttlefish::TEST_F (CasDownloaderTests, DownloadsDigestsOnlyIfNeeded)
 
 cuttlefish::TEST_F (CasDownloaderTests, DownloadsUncompressedIfPreferUncompressed)
 
 cuttlefish::TEST_F (CasDownloaderTests, DownloadsCompressedIfNotPreferUncompressed)
 
 cuttlefish::TEST_F (CasDownloaderTests, DownloadsCompressedIfPreferUncompressedButUnavailable)
 
 cuttlefish::TEST_F (CasDownloaderTests, PassesCasOptionsFromCommandLine)
 
int cuttlefish::main (int argc, char **argv)