MCPcopy Create free account
hub / github.com/aria2/aria2 / testIsContentEncodingSpecified

Method testIsContentEncodingSpecified

test/HttpResponseTest.cc:293–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293void HttpResponseTest::testIsContentEncodingSpecified()
294{
295 HttpResponse httpResponse;
296
297 httpResponse.setHttpHeader(make_unique<HttpHeader>());
298 CPPUNIT_ASSERT(!httpResponse.isContentEncodingSpecified());
299
300 httpResponse.getHttpHeader()->put(HttpHeader::CONTENT_ENCODING, "gzip");
301 CPPUNIT_ASSERT(httpResponse.isContentEncodingSpecified());
302}
303
304void HttpResponseTest::testGetContentEncoding()
305{

Callers

nothing calls this directly

Calls 3

setHttpHeaderMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected