sl@0: // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: sl@0: sl@0: #ifndef __URIUTILSTESTS_H__ sl@0: #define __URIUTILSTESTS_H__ sl@0: sl@0: // System includes sl@0: // sl@0: #include sl@0: sl@0: // sl@0: // sl@0: // UriUtils test data sl@0: // sl@0: // sl@0: sl@0: _LIT(KInternetForm0, "http://user@host:port/my%20dir/my%25file.wml?name=dave&surname=cunado#fragment"); sl@0: _LIT(KDisplayForm0, "http://user@host:port/my dir/my%file.wml?name=dave&surname=cunado#fragment"); sl@0: _LIT(KValidDisplayForm0, "http://user@host:port/my%20dir/my%25file.wml?name=dave&surname=cunado#fragment"); sl@0: sl@0: _LIT(KInternetForm1, "http://user@host:port/my%20dir/my%25file.wml?name=dave&surname=cunado"); sl@0: _LIT(KDisplayForm1, "http://user@host:port/my dir/my%file.wml?name=dave&surname=cunado"); sl@0: _LIT(KValidDisplayForm1, "http://user@host:port/my%20dir/my%25file.wml?name=dave&surname=cunado"); sl@0: sl@0: _LIT(KInvalidChars0, "this is bad"); sl@0: _LIT(KInvalidChars1, "#thisisbad"); sl@0: _LIT(KInvalidChars2, "{thisisbad"); sl@0: _LIT(KInvalidChars3, "}thisisbad"); sl@0: _LIT(KInvalidChars4, "|thisisbad"); sl@0: _LIT(KInvalidChars5, "\\thisisbad"); sl@0: _LIT(KInvalidChars6, "^thisisbad"); sl@0: _LIT(KInvalidChars7, "`thisisbad"); sl@0: _LIT(KInvalidChars8, "thisisbad"); sl@0: _LIT(KInvalidChars10, "%thisisbad"); sl@0: _LIT(KInvalidChars11, "\"thisisbad"); sl@0: TBool KInvalid0 = ETrue; sl@0: sl@0: _LIT(KInvalidChars12, "this%20is%20not"); sl@0: _LIT(KInvalidChars13, "%23thisisNotbad"); sl@0: _LIT(KInvalidChars14, "%7BthisisNotbad"); sl@0: _LIT(KInvalidChars15, "%7DthisisNotbad"); sl@0: _LIT(KInvalidChars16, "%7CthisisNotbad"); sl@0: _LIT(KInvalidChars17, "%5CthisisNotbad"); sl@0: _LIT(KInvalidChars18, "%5EthisisNotbad"); sl@0: _LIT(KInvalidChars19, "%60thisisNotbad"); sl@0: _LIT(KInvalidChars20, "%3CthisisNotbad"); sl@0: _LIT(KInvalidChars21, "%3EthisisNotbad"); sl@0: _LIT(KInvalidChars22, "%25thisisNotbad"); sl@0: _LIT(KInvalidChars23, "%22thisisNotbad"); sl@0: _LIT(KInvalidChars24, "*thisisNotbad"); sl@0: _LIT(KInvalidChars25, "(thisisNotbad"); sl@0: _LIT(KInvalidChars26, ")thisisNotbad"); sl@0: _LIT(KInvalidChars27, "!thisisNotbad"); sl@0: _LIT(KInvalidChars28, "'thisisNotbad"); sl@0: TBool KInvalid1 = EFalse; sl@0: sl@0: // Some different forms of IPv6 addresses sl@0: _LIT(KHostTypeIPv6Format1, "FEDC:BA98:7654:3210:FEDC:BA98:7654:3210"); sl@0: _LIT(KHostTypeIPv6Format2, "1080:0:0:0:8:800:200C:4171"); sl@0: _LIT(KHostTypeIPv6Format3, "3ffe:2a00:100:7031::1"); sl@0: _LIT(KHostTypeIPv6Format4, "1080::8:800:200C:417A"); sl@0: _LIT(KHostTypeIPv6Format5, "::192.9.5.5"); sl@0: _LIT(KHostTypeIPv6Format6, "::FFFF:129.144.52.38"); sl@0: _LIT(KHostTypeIPv6Format7, "2010:836B:4179::836B:4179"); sl@0: sl@0: // IPv4 format addresses sl@0: _LIT(KHostTypeIPv4Format, "196.58.110.201"); sl@0: _LIT(KHostTypeIPv4InvalidFormat1, "196.58"); // this is considered a text address sl@0: _LIT(KHostTypeIPv4InvalidFormat2, "196.58.110"); // this is considered a text address sl@0: sl@0: // Text format addresses sl@0: _LIT(KHostTypeTextFormat1, "www.symbian.com"); sl@0: _LIT(KHostTypeTextFormat2, "www.any.number.of.dot.seperated.parts.com"); sl@0: sl@0: sl@0: // Text format addresses sl@0: sl@0: sl@0: #endif // __URIUTILSTESTS_H__