[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/rtmp r9858: add test case for formatting t
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/rtmp r9858: add test case for formatting the reponse for the red5 echo_test. |
Date: |
Thu, 18 Dec 2008 11:48:18 -0700 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9858
committer: address@hidden
branch nick: rtmp
timestamp: Thu 2008-12-18 11:48:18 -0700
message:
add test case for formatting the reponse for the red5 echo_test.
modified:
testsuite/libnet.all/test_http.cpp
=== modified file 'testsuite/libnet.all/test_http.cpp'
--- a/testsuite/libnet.all/test_http.cpp 2008-12-18 17:32:22 +0000
+++ b/testsuite/libnet.all/test_http.cpp 2008-12-18 18:48:18 +0000
@@ -640,6 +640,17 @@
} else {
runtest.fail("HTTP::parseEchoRequest()");
}
+
+ amf::Buffer &buff = http.formatEchoResponse(headers[1]->getName(),
*headers[3]);
+ string head(reinterpret_cast<const char *>(buff.reference()));
+ const char *ptr3 = reinterpret_cast<const char *>(hex2->reference());
+ const char *ptr4 = reinterpret_cast<const char *>(buff.reference()) +
head.size();
+
+ if (memcmp(ptr3, ptr4, hex2->allocated()) == 0) {
+ runtest.pass("HTTP::formatEchoResponse()");
+ } else {
+ runtest.fail("HTTP::formatEchoResponse()");
+ }
if (dbglogfile.getVerbosity() > 0) {
http.dump();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/rtmp r9858: add test case for formatting the reponse for the red5 echo_test.,
rob <=