aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/test/llhttpclient_tut.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/test/llhttpclient_tut.cpp
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/test/llhttpclient_tut.cpp')
-rw-r--r--linden/indra/test/llhttpclient_tut.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/linden/indra/test/llhttpclient_tut.cpp b/linden/indra/test/llhttpclient_tut.cpp
index c84d34b..ef53e71 100644
--- a/linden/indra/test/llhttpclient_tut.cpp
+++ b/linden/indra/test/llhttpclient_tut.cpp
@@ -32,9 +32,10 @@
32 */ 32 */
33 33
34#include <tut/tut.h> 34#include <tut/tut.h>
35#include "linden_common.h"
35#include "lltut.h" 36#include "lltut.h"
36
37#include "llhttpclient.h" 37#include "llhttpclient.h"
38#include "llformat.h"
38#include "llpipeutil.h" 39#include "llpipeutil.h"
39#include "llpumpio.h" 40#include "llpumpio.h"
40 41
@@ -312,4 +313,23 @@ namespace tut
312 ensureStatusError(); 313 ensureStatusError();
313 ensure_equals("reason", mReason, "STATUS_ERROR"); 314 ensure_equals("reason", mReason, "STATUS_ERROR");
314 } 315 }
316
317 template<> template<>
318 void HTTPClientTestObject::test<7>()
319 {
320 // Can not use the little mini server. The blocking request won't ever let it run.
321 // Instead get from a known LLSD source and compare results with the non-blocking get
322 // which is tested against the mini server earlier.
323 LLSD expected;
324
325 LLHTTPClient::get("http://secondlife.com/xmlhttp/homepage.php", newResult());
326 runThePump();
327 ensureStatusOK();
328 expected = getResult();
329
330 LLSD result;
331 result = LLHTTPClient::blockingGet("http://secondlife.com/xmlhttp/homepage.php");
332 LLSD body = result["body"];
333 ensure_equals("echoed result matches", body.size(), expected.size());
334 }
315} 335}