[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/rtmp r9841: add test case for formatEcho()
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/rtmp r9841: add test case for formatEcho(). |
Date: |
Wed, 17 Dec 2008 10:31:38 -0700 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9841
committer: address@hidden
branch nick: rtmp
timestamp: Wed 2008-12-17 10:31:38 -0700
message:
add test case for formatEcho().
modified:
testsuite/libnet.all/test_http.cpp
=== modified file 'testsuite/libnet.all/test_http.cpp'
--- a/testsuite/libnet.all/test_http.cpp 2008-12-01 01:33:32 +0000
+++ b/testsuite/libnet.all/test_http.cpp 2008-12-17 17:31:38 +0000
@@ -625,10 +625,20 @@
}
}
+// http.clearFields();
+ amf::Buffer &buf1 = http.formatEcho("2", *encstr);
+ http.processHeaderFields(buf1);
+ cerr << "FIXME: " << http.getField("content-length") << endl;
+
+ if (http.getField("content-length") == "26") {
+ runtest.pass("HTTP::formatEcho()");
+ } else {
+ runtest.fail("HTTP::formatEcho()");
+ }
+
if (dbglogfile.getVerbosity() > 0) {
http.dump();
}
-
}
static void
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/rtmp r9841: add test case for formatEcho().,
rob <=