Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
TestWebServer Class Reference
Inheritance diagram for TestWebServer:

Protected Member Functions

 TestWebServer ()
 
 ~TestWebServer () override=default
 
void SetUp () override
 
void TearDown () override
 
void SetupMediaSources ()
 
void TearDownMediaSources ()
 
std::string GetUrl (const std::string &path)
 
std::string GetUrlOfTestFile (const std::string &testFile)
 
bool GetLastModifiedOfTestFile (const std::string &testFile, CDateTime &lastModified)
 
void CheckHtmlTestFileResponse (const CCurlFile &curl)
 
void CheckRangesTestFileResponse (const CCurlFile &curl, int httpStatus=MHD_HTTP_OK, bool empty=false)
 
void CheckRangesTestFileResponse (const CCurlFile &curl, const std::string &result, const CHttpRanges &ranges)
 
std::string GenerateRangeHeaderValue (unsigned int start, unsigned int end)
 

Protected Attributes

CWebServer webserver
 
CHTTPJsonRpcHandler m_jsonRpcHandler
 
CHTTPVfsHandler m_vfsHandler
 
std::string baseUrl
 
std::string sourcePath
 
uint16_t webserverPort
 

Constructor & Destructor Documentation

◆ TestWebServer()

TestWebServer::TestWebServer ( )
inlineprotected

◆ ~TestWebServer()

TestWebServer::~TestWebServer ( )
overrideprotecteddefault

Member Function Documentation

◆ CheckHtmlTestFileResponse()

void TestWebServer::CheckHtmlTestFileResponse ( const CCurlFile curl)
inlineprotected

◆ CheckRangesTestFileResponse() [1/2]

void TestWebServer::CheckRangesTestFileResponse ( const CCurlFile curl,
const std::string &  result,
const CHttpRanges ranges 
)
inlineprotected

◆ CheckRangesTestFileResponse() [2/2]

void TestWebServer::CheckRangesTestFileResponse ( const CCurlFile curl,
int  httpStatus = MHD_HTTP_OK,
bool  empty = false 
)
inlineprotected

◆ GenerateRangeHeaderValue()

std::string TestWebServer::GenerateRangeHeaderValue ( unsigned int  start,
unsigned int  end 
)
inlineprotected

◆ GetLastModifiedOfTestFile()

bool TestWebServer::GetLastModifiedOfTestFile ( const std::string &  testFile,
CDateTime lastModified 
)
inlineprotected

◆ GetUrl()

std::string TestWebServer::GetUrl ( const std::string &  path)
inlineprotected

◆ GetUrlOfTestFile()

std::string TestWebServer::GetUrlOfTestFile ( const std::string &  testFile)
inlineprotected

◆ SetUp()

void TestWebServer::SetUp ( )
inlineoverrideprotected

◆ SetupMediaSources()

void TestWebServer::SetupMediaSources ( )
inlineprotected

◆ TearDown()

void TestWebServer::TearDown ( )
inlineoverrideprotected

◆ TearDownMediaSources()

void TestWebServer::TearDownMediaSources ( )
inlineprotected

Member Data Documentation

◆ baseUrl

std::string TestWebServer::baseUrl
protected

◆ m_jsonRpcHandler

CHTTPJsonRpcHandler TestWebServer::m_jsonRpcHandler
protected

◆ m_vfsHandler

CHTTPVfsHandler TestWebServer::m_vfsHandler
protected

◆ sourcePath

std::string TestWebServer::sourcePath
protected

◆ webserver

CWebServer TestWebServer::webserver
protected

◆ webserverPort

uint16_t TestWebServer::webserverPort
protected

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