VirtualBox

Changeset 57847 in vbox for trunk/src/VBox/Runtime/testcase


Ignore:
Timestamp:
Sep 21, 2015 9:37:15 PM (9 years ago)
Author:
vboxsync
Message:

tstRTUri: a couple of more tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTUri.cpp

    r57724 r57847  
    241241    },
    242242    {   /* #14 */
     243        "file:///dir/dir/file",
     244        /*.pszScheme    =*/ "file",
     245        /*.pszAuthority =*/ "",
     246        /*.pszPath      =*/ "/dir/dir/file",
     247        /*.pszQuery     =*/ NULL,
     248        /*.pszFragment  =*/ NULL,
     249        /*.pszUsername  =*/ NULL,
     250        /*.pszPassword  =*/ NULL,
     251        /*.pszHost      =*/ NULL,
     252        /*.uPort        =*/ UINT32_MAX,
     253        /*.pszCreated   =*/ NULL /* same as pszUri*/,
     254    },
     255    {   /* #15 */
    243256        "foo:///",
    244257        /*.pszScheme    =*/ "foo",
     
    253266        /*.pszCreated   =*/ NULL /* same as pszUri*/,
    254267    },
    255     {   /* #15 */
     268    {   /* #16 */
    256269        "foo://",
    257270        /*.pszScheme    =*/ "foo",
     
    266279        /*.pszCreated   =*/ NULL /* same as pszUri*/,
    267280    },
    268     {   /* #16 - UTF-8 escape sequences. */
     281    {   /* #17 - UTF-8 escape sequences. */
    269282        "http://example.com/%ce%b3%ce%bb%cf%83%ce%b1%20%e0%a4%95\xe0\xa4\x95",
    270283        /*.pszScheme    =*/ "http",
     
    290303g_apCreateFileURIs[] =
    291304{
    292     { "C:\\over\\ <>#%\"{}|^[]`\\there", "file:///C:%5Cover%5C%20%3C%3E%23%25%22%7B%7D%7C%5E%5B%5D%60%5Cthere", URI_FILE_FORMAT_WIN },
    293     { "/over/ <>#%\"{}|^[]`/there", "file:///over/%20%3C%3E%23%25%22%7B%7D%7C%5E%5B%5D%60/there", URI_FILE_FORMAT_UNIX },
    294     { "/", "file:///", URI_FILE_FORMAT_UNIX },
    295     { "/C:/over/ <>#%\"{}|^[]`/there", "file:///C:%5Cover%5C%20%3C%3E%23%25%22%7B%7D%7C%5E%5B%5D%60%5Cthere", URI_FILE_FORMAT_UNIX },
    296     { "\\over\\ <>#%\"{}|^[]`\\there", "file:///over/%20%3C%3E%23%25%22%7B%7D%7C%5E%5B%5D%60/there", URI_FILE_FORMAT_WIN }
     305    {
     306        "C:\\over\\ <>#%\"{}|^[]`\\there",
     307        "file:///C:%5Cover%5C%20%3C%3E%23%25%22%7B%7D%7C%5E%5B%5D%60%5Cthere",
     308        URI_FILE_FORMAT_WIN
     309    },
     310    {
     311        "/over/ <>#%\"{}|^[]`/there",
     312        "file:///over/%20%3C%3E%23%25%22%7B%7D%7C%5E%5B%5D%60/there",
     313        URI_FILE_FORMAT_UNIX
     314    },
     315    {
     316        "/",
     317        "file:///",
     318        URI_FILE_FORMAT_UNIX
     319    },
     320    {
     321        "/C:/over/ <>#%\"{}|^[]`/there",
     322        "file:///C:%5Cover%5C%20%3C%3E%23%25%22%7B%7D%7C%5E%5B%5D%60%5Cthere",
     323        URI_FILE_FORMAT_UNIX
     324    },
     325    {
     326        "\\over\\ <>#%\"{}|^[]`\\there",
     327        "file:///over/%20%3C%3E%23%25%22%7B%7D%7C%5E%5B%5D%60/there",
     328        URI_FILE_FORMAT_WIN
     329    },
     330    {
     331        "/",
     332        "file:///",
     333        URI_FILE_FORMAT_UNIX
     334    },
     335    {
     336        "\\",
     337        "file:///",
     338        URI_FILE_FORMAT_WIN
     339    },
    297340};
    298341
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette