return true;
}
- bool AddResponseBody(const std::string& body, uint32_t length) override
+ bool AddResponseBody(const int8_t* body, uint32_t length) override
{
return true;
}
- bool AddResponse(const std::string& headers, const std::string& body, uint32_t length) override
+ bool AddResponse(const std::string& headers, const int8_t* body, uint32_t length) override
{
return true;
}
- bool WriteResponseChunk(const std::string& chunk, uint32_t length) override
+ bool WriteResponseChunk(const int8_t* chunk, uint32_t length) override
{
return true;
}
Dali::Property::Map testHeaders;
testHeaders.Insert("key2", "value2");
DALI_TEST_CHECK(gRequestInterceptorInstance->AddResponseHeaders(testHeaders));
- DALI_TEST_CHECK(gRequestInterceptorInstance->AddResponseBody("test", 4));
- DALI_TEST_CHECK(gRequestInterceptorInstance->AddResponse("key:value", "test", 4));
- DALI_TEST_CHECK(gRequestInterceptorInstance->WriteResponseChunk("test", 4));
+ DALI_TEST_CHECK(gRequestInterceptorInstance->AddResponseBody((const int8_t*)"test", 4));
+ DALI_TEST_CHECK(gRequestInterceptorInstance->AddResponse("key:value", (const int8_t*)"test", 4));
+ DALI_TEST_CHECK(gRequestInterceptorInstance->WriteResponseChunk((const int8_t*)"test", 4));
std::string testUrl("http://test.html");
DALI_TEST_EQUALS(gRequestInterceptorInstance->GetUrl(), testUrl, TEST_LOCATION);
std::string testMethod("GET");