aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/test
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/test')
-rw-r--r--linden/indra/test/lluri_tut.cpp39
-rw-r--r--linden/indra/test/test.vcproj6
-rw-r--r--linden/indra/test/test_vc8.vcproj16
3 files changed, 45 insertions, 16 deletions
diff --git a/linden/indra/test/lluri_tut.cpp b/linden/indra/test/lluri_tut.cpp
index 8ff1921..c23825b 100644
--- a/linden/indra/test/lluri_tut.cpp
+++ b/linden/indra/test/lluri_tut.cpp
@@ -264,5 +264,44 @@ namespace tut
264 "datasever:12345", "/agent/11111111-2222-3333-4444-5566778899aa/logininfo"); 264 "datasever:12345", "/agent/11111111-2222-3333-4444-5566778899aa/logininfo");
265 } 265 }
266#endif // LL_ENABLE_JANKY_DEPRECATED_WEB_SERVICE_CALLS 266#endif // LL_ENABLE_JANKY_DEPRECATED_WEB_SERVICE_CALLS
267
268
269 template<> template<>
270 void URITestObject::test<15>()
271 {
272 LLURI u("secondlife:///app/login?first_name=Testert4&last_name=Tester&web_login_key=test");
273 // if secondlife is the scheme, LLURI should parse /app/login as path, with no authority
274 ensure_equals("scheme", u.scheme(), "secondlife");
275 ensure_equals("authority", u.authority(), "");
276 ensure_equals("path", u.path(), "/app/login");
277 ensure_equals("pathmap", u.pathArray()[0].asString(), "app");
278 ensure_equals("pathmap", u.pathArray()[1].asString(), "login");
279 ensure_equals("query", u.query(), "first_name=Testert4&last_name=Tester&web_login_key=test");
280 ensure_equals("query map element", u.queryMap()["last_name"].asString(), "Tester");
281
282 u = LLURI("secondlife://Da Boom/128/128/128");
283 // if secondlife is the scheme, LLURI should parse /128/128/128 as path, with Da Boom as authority
284 ensure_equals("scheme", u.scheme(), "secondlife");
285 ensure_equals("authority", u.authority(), "Da Boom");
286 ensure_equals("path", u.path(), "/128/128/128");
287 ensure_equals("pathmap", u.pathArray()[0].asString(), "128");
288 ensure_equals("pathmap", u.pathArray()[1].asString(), "128");
289 ensure_equals("pathmap", u.pathArray()[2].asString(), "128");
290 ensure_equals("query", u.query(), "");
291 }
292
293 template<> template<>
294 void URITestObject::test<16>()
295 {
296 // Parse about: schemes
297 LLURI u("about:blank?redirect-http-hack=secondlife%3A%2F%2F%2Fapp%2Flogin%3Ffirst_name%3DCallum%26last_name%3DLinden%26location%3Dspecify%26grid%3Dvaak%26region%3D%2FMorris%2F128%2F128%26web_login_key%3Defaa4795-c2aa-4c58-8966-763c27931e78");
298 ensure_equals("scheme", u.scheme(), "about");
299 ensure_equals("authority", u.authority(), "");
300 ensure_equals("path", u.path(), "blank");
301 ensure_equals("pathmap", u.pathArray()[0].asString(), "blank");
302 ensure_equals("query", u.query(), "redirect-http-hack=secondlife:///app/login?first_name=Callum&last_name=Linden&location=specify&grid=vaak&region=/Morris/128/128&web_login_key=efaa4795-c2aa-4c58-8966-763c27931e78");
303 ensure_equals("query map element", u.queryMap()["redirect-http-hack"].asString(), "secondlife:///app/login?first_name=Callum&last_name=Linden&location=specify&grid=vaak&region=/Morris/128/128&web_login_key=efaa4795-c2aa-4c58-8966-763c27931e78");
304 }
267} 305}
268 306
307
diff --git a/linden/indra/test/test.vcproj b/linden/indra/test/test.vcproj
index 7e84533..6e74417 100644
--- a/linden/indra/test/test.vcproj
+++ b/linden/indra/test/test.vcproj
@@ -194,6 +194,12 @@
194 RelativePath=".\io.cpp"> 194 RelativePath=".\io.cpp">
195 </File> 195 </File>
196 <File 196 <File
197 RelativePath=".\llapp_tut.cpp">
198 </File>
199 <File
200 RelativePath=".\llbase64_tut.cpp">
201 </File>
202 <File
197 RelativePath=".\llbuffer_tut.cpp"> 203 RelativePath=".\llbuffer_tut.cpp">
198 </File> 204 </File>
199 205
diff --git a/linden/indra/test/test_vc8.vcproj b/linden/indra/test/test_vc8.vcproj
index b491eea..cb023b3 100644
--- a/linden/indra/test/test_vc8.vcproj
+++ b/linden/indra/test/test_vc8.vcproj
@@ -321,10 +321,6 @@
321 > 321 >
322 </File> 322 </File>
323 <File 323 <File
324 RelativePath=".\lldatapacker_tut.cpp"
325 >
326 </File>
327 <File
328 RelativePath=".\llerror_tut.cpp" 324 RelativePath=".\llerror_tut.cpp"
329 > 325 >
330 </File> 326 </File>
@@ -353,10 +349,6 @@
353 > 349 >
354 </File> 350 </File>
355 <File 351 <File
356 RelativePath=".\llpartdata_tut.cpp"
357 >
358 </File>
359 <File
360 RelativePath=".\llpipeutil.cpp" 352 RelativePath=".\llpipeutil.cpp"
361 > 353 >
362 </File> 354 </File>
@@ -385,10 +377,6 @@
385 > 377 >
386 </File> 378 </File>
387 <File 379 <File
388 RelativePath=".\llstring_tut.cpp"
389 >
390 </File>
391 <File
392 RelativePath=".\lltiming_tut.cpp" 380 RelativePath=".\lltiming_tut.cpp"
393 > 381 >
394 </File> 382 </File>
@@ -409,10 +397,6 @@
409 > 397 >
410 </File> 398 </File>
411 <File 399 <File
412 RelativePath=".\m3math_tut.cpp"
413 >
414 </File>
415 <File
416 RelativePath=".\math.cpp" 400 RelativePath=".\math.cpp"
417 > 401 >
418 </File> 402 </File>