os/ossrv/genericservices/httputils/Test/t_uriparser/UriUtilsTests.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 
    17 
    18 #ifndef __URIUTILSTESTS_H__
    19 #define __URIUTILSTESTS_H__
    20 
    21 // System includes
    22 //
    23 #include <e32base.h>
    24 
    25 //
    26 //
    27 // UriUtils test data
    28 //
    29 //
    30 
    31 _LIT(KInternetForm0, "http://user@host:port/my%20dir/my%25file.wml?name=dave&surname=cunado#fragment");
    32 _LIT(KDisplayForm0, "http://user@host:port/my dir/my%file.wml?name=dave&surname=cunado#fragment");
    33 _LIT(KValidDisplayForm0, "http://user@host:port/my%20dir/my%25file.wml?name=dave&surname=cunado#fragment");
    34 
    35 _LIT(KInternetForm1, "http://user@host:port/my%20dir/my%25file.wml?name=dave&surname=cunado");
    36 _LIT(KDisplayForm1, "http://user@host:port/my dir/my%file.wml?name=dave&surname=cunado");
    37 _LIT(KValidDisplayForm1, "http://user@host:port/my%20dir/my%25file.wml?name=dave&surname=cunado");
    38 
    39 _LIT(KInvalidChars0, "this is bad");
    40 _LIT(KInvalidChars1, "#thisisbad");
    41 _LIT(KInvalidChars2, "{thisisbad");
    42 _LIT(KInvalidChars3, "}thisisbad");
    43 _LIT(KInvalidChars4, "|thisisbad");
    44 _LIT(KInvalidChars5, "\\thisisbad");
    45 _LIT(KInvalidChars6, "^thisisbad");
    46 _LIT(KInvalidChars7, "`thisisbad");
    47 _LIT(KInvalidChars8, "<thisisbad");
    48 _LIT(KInvalidChars9, ">thisisbad");
    49 _LIT(KInvalidChars10, "%thisisbad");
    50 _LIT(KInvalidChars11, "\"thisisbad");
    51 TBool KInvalid0 = ETrue;
    52 
    53 _LIT(KInvalidChars12, "this%20is%20not");
    54 _LIT(KInvalidChars13, "%23thisisNotbad");
    55 _LIT(KInvalidChars14, "%7BthisisNotbad");
    56 _LIT(KInvalidChars15, "%7DthisisNotbad");
    57 _LIT(KInvalidChars16, "%7CthisisNotbad");
    58 _LIT(KInvalidChars17, "%5CthisisNotbad");
    59 _LIT(KInvalidChars18, "%5EthisisNotbad");
    60 _LIT(KInvalidChars19, "%60thisisNotbad");
    61 _LIT(KInvalidChars20, "%3CthisisNotbad");
    62 _LIT(KInvalidChars21, "%3EthisisNotbad");
    63 _LIT(KInvalidChars22, "%25thisisNotbad");
    64 _LIT(KInvalidChars23, "%22thisisNotbad");
    65 _LIT(KInvalidChars24, "*thisisNotbad");
    66 _LIT(KInvalidChars25, "(thisisNotbad");
    67 _LIT(KInvalidChars26, ")thisisNotbad");
    68 _LIT(KInvalidChars27, "!thisisNotbad");
    69 _LIT(KInvalidChars28, "'thisisNotbad");
    70 TBool KInvalid1 = EFalse;
    71 
    72 // Some different forms of IPv6 addresses
    73 _LIT(KHostTypeIPv6Format1, "FEDC:BA98:7654:3210:FEDC:BA98:7654:3210");
    74 _LIT(KHostTypeIPv6Format2, "1080:0:0:0:8:800:200C:4171");
    75 _LIT(KHostTypeIPv6Format3, "3ffe:2a00:100:7031::1");
    76 _LIT(KHostTypeIPv6Format4, "1080::8:800:200C:417A");
    77 _LIT(KHostTypeIPv6Format5, "::192.9.5.5");
    78 _LIT(KHostTypeIPv6Format6, "::FFFF:129.144.52.38");
    79 _LIT(KHostTypeIPv6Format7, "2010:836B:4179::836B:4179");
    80 
    81 // IPv4 format addresses
    82 _LIT(KHostTypeIPv4Format, "196.58.110.201");
    83 _LIT(KHostTypeIPv4InvalidFormat1, "196.58");		// this is considered a text address
    84 _LIT(KHostTypeIPv4InvalidFormat2, "196.58.110");	// this is considered a text address
    85 
    86 // Text format addresses
    87 _LIT(KHostTypeTextFormat1, "www.symbian.com");
    88 _LIT(KHostTypeTextFormat2, "www.any.number.of.dot.seperated.parts.com");
    89 
    90 
    91 // Text format addresses
    92 
    93 
    94 #endif // __URIUTILSTESTS_H__