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