aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/test/llservicebuilder_tut.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:04 -0500
committerJacek Antonelli2008-08-15 23:45:04 -0500
commit117e22047c5752352342d64e3fb7ce00a4eb8113 (patch)
treee32de2cfba0dda8705ae528fcd1fbe23ba075685 /linden/indra/test/llservicebuilder_tut.cpp
parentSecond Life viewer sources 1.18.0.6 (diff)
downloadmeta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.zip
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.gz
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.bz2
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.xz
Second Life viewer sources 1.18.1.2
Diffstat (limited to 'linden/indra/test/llservicebuilder_tut.cpp')
-rw-r--r--linden/indra/test/llservicebuilder_tut.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/linden/indra/test/llservicebuilder_tut.cpp b/linden/indra/test/llservicebuilder_tut.cpp
index 762aa46..3b9d8b4 100644
--- a/linden/indra/test/llservicebuilder_tut.cpp
+++ b/linden/indra/test/llservicebuilder_tut.cpp
@@ -92,5 +92,22 @@ namespace tut
92 std::string test_url = mServiceBuilder.buildServiceURI("ServiceBuilderTest", data_map); 92 std::string test_url = mServiceBuilder.buildServiceURI("ServiceBuilderTest", data_map);
93 ensure_equals("Replacement URL Creation for Non-existant Service", test_url , "/agent/{$agent-id}/name"); 93 ensure_equals("Replacement URL Creation for Non-existant Service", test_url , "/agent/{$agent-id}/name");
94 } 94 }
95
96 template<> template<>
97 void ServiceBuilderTestObject::test<5>()
98 {
99 LLSD test_block;
100 test_block["service-builder"] = "/proc/{$proc}{%params}";
101 mServiceBuilder.createServiceDefinition("ServiceBuilderTest", test_block["service-builder"]);
102 LLSD data_map;
103 data_map["proc"] = "do/something/useful";
104 data_map["params"]["estate_id"] = 1;
105 data_map["params"]["query"] = "public";
106 std::string test_url = mServiceBuilder.buildServiceURI("ServiceBuilderTest", data_map);
107 ensure_equals(
108 "two part URL Creation",
109 test_url ,
110 "/proc/do/something/useful?estate_id=1&query=public");
111 }
95} 112}
96 113