Lines Matching defs:uri
5 * Test uri.h
7 * Written to aid with refactoring the uri handling to support fullPath
15 #include "uri.h"
37 void toStringTest( std::string uri, std::string expected ) {
38 stringTest( URI(uri.c_str()).toString(), expected );
40 void pathTest( std::string uri, std::string expected ) {
41 stringTest( ValueOrEmpty(URI(uri.c_str()).getPath()), expected );
72 std::ofstream fhl("/tmp/cxxtest-uri.svg", std::ofstream::out);
73 stringTest( URI("cxxtest-uri.svg").getFullPath("/tmp"), std::string("/tmp/cxxtest-uri.svg") );
74 stringTest( URI("cxxtest-uri.svg").getFullPath("/usr/../tmp"), std::string("/tmp/cxxtest-uri.svg") );