diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-15 12:52:03 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-15 12:52:03 +0000 |
| commit | d8d159ccd86183649771b5b20ef154504540b1ab (patch) | |
| tree | c32e4a8b838fced1337b406a81d56cd1f80d3712 /test/HttpHeaderTest.cc | |
| parent | 6a1fe669751801b55affa0aeaff4646ac2ac6a00 (diff) | |
2010-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Replaced HttpHeader::responseStatus_ with HttpHeader::statusCode_.
statusCode_ is of type int.
* src/AbstractProxyResponseCommand.cc
* src/FtpNegotiationCommand.cc
* src/HttpHeader.cc
* src/HttpHeader.h
* src/HttpHeaderProcessor.cc
* src/HttpResponse.cc
* src/HttpResponse.h
* src/HttpResponseCommand.cc
* src/HttpSkipResponseCommand.cc
* src/util.cc
* src/util.h
* test/HttpHeaderProcessorTest.cc
* test/HttpHeaderTest.cc
* test/HttpResponseTest.cc
* test/UtilTest.cc
Diffstat (limited to 'test/HttpHeaderTest.cc')
| -rw-r--r-- | test/HttpHeaderTest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/HttpHeaderTest.cc b/test/HttpHeaderTest.cc index af01f7cc..47a9bd65 100644 --- a/test/HttpHeaderTest.cc +++ b/test/HttpHeaderTest.cc @@ -83,7 +83,7 @@ void HttpHeaderTest::testGet() void HttpHeaderTest::testClearField() { HttpHeader h; - h.setResponseStatus(HttpHeader::S200); + h.setStatusCode(200); h.setVersion(HttpHeader::HTTP_1_1); h.put("Foo", "Bar"); @@ -92,7 +92,7 @@ void HttpHeaderTest::testClearField() h.clearField(); CPPUNIT_ASSERT_EQUAL(std::string(""), h.getFirst("Foo")); - CPPUNIT_ASSERT_EQUAL(HttpHeader::S200, h.getResponseStatus()); + CPPUNIT_ASSERT_EQUAL(200, h.getStatusCode()); CPPUNIT_ASSERT_EQUAL(HttpHeader::HTTP_1_1, h.getVersion()); } |
