Android-cuttlefish cvd tool
Classes | Functions | Variables
cuttlefish::anonymous_namespace{url_download_test.cpp} Namespace Reference

Classes

class  UrlDownloadTests
 

Functions

std::optional< std::pair< size_t, size_t > > RequestedRange (const std::vector< std::string > &headers)
 
 TEST_F (UrlDownloadTests, WithoutAVersionTheWholeObjectIsDownloadedSuccess)
 
 TEST_F (UrlDownloadTests, APartialFileIsResumedSuccess)
 
 TEST_F (UrlDownloadTests, AVersionedUrlResumesWithoutIfRangeSuccess)
 
 TEST_F (UrlDownloadTests, APartialFileOfAnotherVersionIsNotResumedSuccess)
 
 TEST_F (UrlDownloadTests, APartialFileLongerThanTheObjectIsDiscardedSuccess)
 
 TEST_F (UrlDownloadTests, AnUnmeasuredObjectIsNotResumedSuccess)
 
 TEST_F (UrlDownloadTests, AChangedObjectFailsTheResumedDownloadFail)
 
 TEST_F (UrlDownloadTests, APartialFileIsHeldUnderALockSuccess)
 
 TEST_F (UrlDownloadTests, AnOpenFileIsFoundAtItsPathSuccess)
 
 TEST_F (UrlDownloadTests, AnOpenFileRenamedAwayIsNotFoundSuccess)
 
 TEST_F (UrlDownloadTests, AnOpenFileReplacedAtItsPathIsNotFoundSuccess)
 
 TEST_F (UrlDownloadTests, APartialFileOfAnotherVersionIsRemovedSuccess)
 
 TEST_F (UrlDownloadTests, ALockedPartialFileOfAnotherVersionIsKeptSuccess)
 
 TEST_F (UrlDownloadTests, OtherFilesNextToTheArtifactAreKeptSuccess)
 
 TEST_F (UrlDownloadTests, AMissingObjectLeavesNoPartialFileFail)
 

Variables

constexpr char kUrl [] = "https://example.com/dist/phone-img-1.zip"
 
constexpr char kContents [] = "0123456789ABCDEF"
 
constexpr char kRangePrefix [] = "Range: bytes="
 
constexpr char kVersion [] = "\"v1\""
 
constexpr size_t kSize = 16
 

Function Documentation

◆ RequestedRange()

std::optional< std::pair< size_t, size_t > > cuttlefish::anonymous_namespace{url_download_test.cpp}::RequestedRange ( const std::vector< std::string > &  headers)

◆ TEST_F() [1/15]

cuttlefish::anonymous_namespace{url_download_test.cpp}::TEST_F ( UrlDownloadTests  ,
AChangedObjectFailsTheResumedDownloadFail   
)

◆ TEST_F() [2/15]

cuttlefish::anonymous_namespace{url_download_test.cpp}::TEST_F ( UrlDownloadTests  ,
ALockedPartialFileOfAnotherVersionIsKeptSuccess   
)

◆ TEST_F() [3/15]

cuttlefish::anonymous_namespace{url_download_test.cpp}::TEST_F ( UrlDownloadTests  ,
AMissingObjectLeavesNoPartialFileFail   
)

◆ TEST_F() [4/15]

cuttlefish::anonymous_namespace{url_download_test.cpp}::TEST_F ( UrlDownloadTests  ,
AnOpenFileIsFoundAtItsPathSuccess   
)

◆ TEST_F() [5/15]

cuttlefish::anonymous_namespace{url_download_test.cpp}::TEST_F ( UrlDownloadTests  ,
AnOpenFileRenamedAwayIsNotFoundSuccess   
)

◆ TEST_F() [6/15]

cuttlefish::anonymous_namespace{url_download_test.cpp}::TEST_F ( UrlDownloadTests  ,
AnOpenFileReplacedAtItsPathIsNotFoundSuccess   
)

◆ TEST_F() [7/15]

cuttlefish::anonymous_namespace{url_download_test.cpp}::TEST_F ( UrlDownloadTests  ,
AnUnmeasuredObjectIsNotResumedSuccess   
)

◆ TEST_F() [8/15]

cuttlefish::anonymous_namespace{url_download_test.cpp}::TEST_F ( UrlDownloadTests  ,
APartialFileIsHeldUnderALockSuccess   
)

◆ TEST_F() [9/15]

cuttlefish::anonymous_namespace{url_download_test.cpp}::TEST_F ( UrlDownloadTests  ,
APartialFileIsResumedSuccess   
)

◆ TEST_F() [10/15]

cuttlefish::anonymous_namespace{url_download_test.cpp}::TEST_F ( UrlDownloadTests  ,
APartialFileLongerThanTheObjectIsDiscardedSuccess   
)

◆ TEST_F() [11/15]

cuttlefish::anonymous_namespace{url_download_test.cpp}::TEST_F ( UrlDownloadTests  ,
APartialFileOfAnotherVersionIsNotResumedSuccess   
)

◆ TEST_F() [12/15]

cuttlefish::anonymous_namespace{url_download_test.cpp}::TEST_F ( UrlDownloadTests  ,
APartialFileOfAnotherVersionIsRemovedSuccess   
)

◆ TEST_F() [13/15]

cuttlefish::anonymous_namespace{url_download_test.cpp}::TEST_F ( UrlDownloadTests  ,
AVersionedUrlResumesWithoutIfRangeSuccess   
)

◆ TEST_F() [14/15]

cuttlefish::anonymous_namespace{url_download_test.cpp}::TEST_F ( UrlDownloadTests  ,
OtherFilesNextToTheArtifactAreKeptSuccess   
)

◆ TEST_F() [15/15]

cuttlefish::anonymous_namespace{url_download_test.cpp}::TEST_F ( UrlDownloadTests  ,
WithoutAVersionTheWholeObjectIsDownloadedSuccess   
)

Variable Documentation

◆ kContents

constexpr char cuttlefish::anonymous_namespace{url_download_test.cpp}::kContents[] = "0123456789ABCDEF"
constexpr

◆ kRangePrefix

constexpr char cuttlefish::anonymous_namespace{url_download_test.cpp}::kRangePrefix[] = "Range: bytes="
constexpr

◆ kSize

constexpr size_t cuttlefish::anonymous_namespace{url_download_test.cpp}::kSize = 16
constexpr

◆ kUrl

constexpr char cuttlefish::anonymous_namespace{url_download_test.cpp}::kUrl[] = "https://example.com/dist/phone-img-1.zip"
constexpr

◆ kVersion

constexpr char cuttlefish::anonymous_namespace{url_download_test.cpp}::kVersion[] = "\"v1\""
constexpr