sl@0
|
1 |
// Copyright (c) 2004-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 |
// Unit test data for PREQ748 - Adding support for the SIP scheme in URIs.
|
sl@0
|
15 |
// Plus adding two new methods validate and equivalent
|
sl@0
|
16 |
//
|
sl@0
|
17 |
//
|
sl@0
|
18 |
|
sl@0
|
19 |
_LIT8(KUri0, "sip:user:pass@location.com:1666;transport=tcp;x=123;df223;2342;2323?asd=b");
|
sl@0
|
20 |
_LIT8(KScheme0, "sip");
|
sl@0
|
21 |
_LIT8(KUserInfo0, "user:pass");
|
sl@0
|
22 |
_LIT8(KHost0, "location.com");
|
sl@0
|
23 |
_LIT8(KPort0, "1666");
|
sl@0
|
24 |
_LIT8(KParams0, ";transport=tcp;x=123;df223;2342;2323");
|
sl@0
|
25 |
_LIT8(KHeaders0, "asd=b");
|
sl@0
|
26 |
|
sl@0
|
27 |
_LIT8(KVldUri0, "sip:user:pass@location.com:1666;transport=tcp;x=123;df=223?asd=b");
|
sl@0
|
28 |
_LIT8(KVldNotSupported, "http://user:pass@location.com");
|
sl@0
|
29 |
_LIT8(KVldInvalidScheme, "s1p");
|
sl@0
|
30 |
_LIT8(KVldInvalidHost0, "sip:user@loc..com");
|
sl@0
|
31 |
_LIT8(KVldInvalidHost1, "sip:user@loc[.com");
|
sl@0
|
32 |
_LIT8(KVldInvalidHost2, "sip:user@loc~ation.com");
|
sl@0
|
33 |
_LIT8(KVldInvalidHost3, "sip:hos#t");
|
sl@0
|
34 |
_LIT8(KVldInvalidHost4, "sip:host#");
|
sl@0
|
35 |
_LIT8(KVldInvalidHost5, "SIP:@:[]");
|
sl@0
|
36 |
_LIT8(KVldValidHost0, "sip:user@location.com:1666");
|
sl@0
|
37 |
_LIT8(KVldValidHost1, "sip:user@loc-ation.com:1666");
|
sl@0
|
38 |
_LIT8(KVldValidHost2, "sip:user@loc123-at-ion.com:1666");
|
sl@0
|
39 |
_LIT8(KVldInvalidPort0, "sip:user@location.com:port");
|
sl@0
|
40 |
_LIT8(KVldInvalidNoPort, "sip:user@location.com:;transport=tcp");
|
sl@0
|
41 |
_LIT8(KVldValidPort0, "sip:user@location.com:1666");
|
sl@0
|
42 |
_LIT8(KVldInvalidUserInfo0, "sip:use]r@location.com:1666");
|
sl@0
|
43 |
_LIT8(KVldInvalidUserInfo1, "sip:user:p|wd@location.com:1666");
|
sl@0
|
44 |
_LIT8(KVldInvalidUserInfo2, "sip:@location.com:1666");
|
sl@0
|
45 |
_LIT8(KVldInvalidUserInfo3, "sip:user:@location.com:1666");
|
sl@0
|
46 |
_LIT8(KVldValidUserInfo0, "sip:user@location.com:1666");
|
sl@0
|
47 |
_LIT8(KVldValidUserInfo1, "sip:user:p.a's*s-_w~d!@location.com:1666");
|
sl@0
|
48 |
_LIT8(KVldValidUserInfo2, "sip:%61ser@location.com:1666");
|
sl@0
|
49 |
_LIT8(KVldValidUserInfo3, "sip:user:%61pwd@location.com:1666");
|
sl@0
|
50 |
_LIT8(KVldInvalidParams0, "sip:user@location.com:1666;transport=");
|
sl@0
|
51 |
_LIT8(KVldInvalidParams1, "sip:user@location.com:1666;=1234");
|
sl@0
|
52 |
_LIT8(KVldInvalidParams2, "sip:user@location.com:1666;c\transport=tcp");
|
sl@0
|
53 |
_LIT8(KVldInvalidParams3, "sip:host;#=value");
|
sl@0
|
54 |
_LIT8(KVldInvalidParams4, "sip:host;name=#");
|
sl@0
|
55 |
_LIT8(KVldInvalidParams5, "sip:host;name=tom;name=dick");
|
sl@0
|
56 |
_LIT8(KVldValidParams0, "sip:user@location.com:1666;transport=tcp");
|
sl@0
|
57 |
_LIT8(KVldValidParams1, "sip:user@location.com:1666;transport=tcp;thru-_.!~*'()%61[]/:&+$=42");
|
sl@0
|
58 |
_LIT8(KVldValidParams2, "sip:user@location.com:1666;parameter");
|
sl@0
|
59 |
_LIT8(KVldInvalidHeaders0, "sip:user@location.com:1666?header=c\b");
|
sl@0
|
60 |
_LIT8(KVldInvalidHeaders1, "sip:host?name=tom&name=dick");
|
sl@0
|
61 |
_LIT8(KVldInvalidHeaders2, "sip:host?name=tom&date");
|
sl@0
|
62 |
_LIT8(KVldValidHeaders0, "sip:user@location.com:1666?header=123");
|
sl@0
|
63 |
_LIT8(KVldValidHeaders1, "sip:user@location.com:1666?header=123&head-_.!~*'()%61[]/:?+$=42");
|
sl@0
|
64 |
_LIT8(KVldValidHeaders2, "sip:host?date=");
|
sl@0
|
65 |
_LIT8(KVldValidHeaders3, "SIPS:bob@Symbian.com?to=");
|
sl@0
|
66 |
|
sl@0
|
67 |
_LIT8(KVldInvalidGeneral1, "sIps:atalanta.com:8830/04-1.html");
|
sl@0
|
68 |
_LIT8(KVldInvalidGeneral2, "sIps:atalanta..com:8830");
|
sl@0
|
69 |
_LIT8(KVldValidGeneral1, "sips:user;info@atalanta.com:8830;04-1.html");
|
sl@0
|
70 |
|
sl@0
|
71 |
_LIT8(KParseUri, "http://@:[]");
|
sl@0
|
72 |
|
sl@0
|
73 |
_LIT8(KEquivUri0, "sip:user:pass@location.com:1666;transport=tcp;x=123;df=223?asd=b");
|
sl@0
|
74 |
_LIT8(KEquivUri1, "sip:user:pass@192.168.0.1:1666;transport=tcp;x=123;df=223?asd=b");
|
sl@0
|
75 |
_LIT8(KEquivScheme0, "sIp:user:pass@location.com:1666;transport=tcp;x=123;df=223?asd=b");
|
sl@0
|
76 |
_LIT8(KEquivUserInfo0, "sip:uSer:pass@location.com:1666;transport=tcp;x=123;df=223?asd=b");
|
sl@0
|
77 |
_LIT8(KEquivUserInfo1, "sip:user@location.com:1666;transport=tcp;x=123;df=223?asd=b");
|
sl@0
|
78 |
_LIT8(KEquivHost0, "sip:user:pass@locaTion.com:1666;transport=tcp;x=123;df=223?asd=b");
|
sl@0
|
79 |
_LIT8(KEquivHost1, "sip:user:pass@192.168.00.01:1666;transport=tcp;x=123;df=223?asd=b");
|
sl@0
|
80 |
_LIT8(KEquivPort0, "sip:user:pass@location.com:1888;transport=tcp;x=123;df=223?asd=b");
|
sl@0
|
81 |
_LIT8(KEquivParam0, "sip:user:pass@location.com:1666;transport=tcp?asd=b");
|
sl@0
|
82 |
_LIT8(KEquivParam1, "sip:user:pass@location.com:1666;df=223;transport=tcp;x=123?asd=b");
|
sl@0
|
83 |
_LIT8(KEquivParam2, "sip:user:pass@location.com:1666;transport=udp?asd=b");
|
sl@0
|
84 |
_LIT8(KEquivParam3, "sip:user:pass@location.com:1666;transport=tcp;x=0;df=223");
|
sl@0
|
85 |
_LIT8(KEquivParam4, "sip:location.com;user=user;ttl=ttl;method=method;param;maddr=192.168.0.1");
|
sl@0
|
86 |
_LIT8(KEquivParam5, "sip:location.com;maddr=192.168.0.1;ttl=ttl;method=method;user=user");
|
sl@0
|
87 |
_LIT8(KEquivParam6, "sip:location.com;user=user;ttl=ttl;transport=tcp;method=method;maddr=192.168.0.1");
|
sl@0
|
88 |
_LIT8(KEquivParam7, "sip:location.com;user=user;ttl=ttl;method=method");
|
sl@0
|
89 |
_LIT8(KEquivParam8, "sip:location.com;user=u$er;ttl=ttl;method=method;maddr=192.168.0.1");
|
sl@0
|
90 |
_LIT8(KEquivParam9, "sip:location.com;user=user;ttl=42;method=method;maddr=192.168.0.1");
|
sl@0
|
91 |
_LIT8(KEquivParam10, "sip:location.com;user=user;ttl=ttl;maddr=192.168.000.001;method=method");
|
sl@0
|
92 |
_LIT8(KEquivParam11, "sip:location.com;user=user;ttl=ttl;maddr=192.168.000.002;method=method");
|
sl@0
|
93 |
_LIT8(KEquivParam12, "sip:location.com;user=user;ttl=ttl;maddr=location1.com;method=method");
|
sl@0
|
94 |
_LIT8(KEquivParam13, "sip:location.com;user=user;ttl=ttl;maddr=location01.com;method=method");
|
sl@0
|
95 |
_LIT8(KEquivParam14, "sip:location.com;user=user;ttl=ttl;method=method;addr=192.168.0.1");
|
sl@0
|
96 |
|
sl@0
|
97 |
_LIT8(KEquivHeader0, "sip:location.com?asd=b");
|
sl@0
|
98 |
_LIT8(KEquivHeader1, "sip:location.com?asd=b");
|
sl@0
|
99 |
_LIT8(KEquivHeader2, "sip:location.com?asd=b&h2=2");
|
sl@0
|
100 |
_LIT8(KEquivHeader3, "sip:location.com?h2=2&asd=b");
|
sl@0
|
101 |
_LIT8(KEquivHeader4, "sip:location.com?Call-Id=99&Contact&Content-Encoding=true&Content-Length=256&Content-Type=text&From=user%40location.com&Subject=Test&To=you%40place.com");
|
sl@0
|
102 |
_LIT8(KEquivHeader5, "sip:location.com?i=99&m&e=true&l=256&c=text&f=user%40location.com&s=Test&t=you%40place.com");
|
sl@0
|
103 |
_LIT8(KEquivHeader6, "sip:location.com?m&e=true&i=99&C=text&f=user%40location.com&s=Test&t=you%40place.com&L=256");
|
sl@0
|
104 |
_LIT8(KEquivHeader7, "sip:location.com?m&e=true&i=99&C=text&s=Test&t=you%40place.com&L=256");
|
sl@0
|
105 |
|
sl@0
|
106 |
_LIT8(KEquivExpand0, "sip:user:pass@loca%54ion.com:1666;%74rans%50or%74=%74cp;x=123;df%3d223?asd=b");
|
sl@0
|
107 |
_LIT8(KEquivExpand1, "sip:user:%70%61%73%73@location.com:1666;%74ransport=tcp;x=123;df=223?asd=b");
|
sl@0
|
108 |
_LIT8(KEquivExpand2, "sip:user:%50%61%73%73@location.com:1666;%74ransport=tcp;x=123;df=223?asd=b");
|
sl@0
|
109 |
_LIT8(KEquivExpand3, "sipS:Bob+11111;ext=22@[::FfFf:129.144.52.38];%74ransport=//(:t.c*%70);method=SET?c=tests&from=Bob");
|
sl@0
|
110 |
_LIT8(KEquivExpand4, "sIpS:Bo%62+11111;ext=22@[::FfFf:129.144.52.38];method=SET;transport=//(:t.c*%70)?content-type=tests&f=B%6Fb");
|
sl@0
|
111 |
|
sl@0
|
112 |
_LIT8(KEquivGeneral1, "sip:alice:SecretWord@192.168.0.5:80;transport=tcp?to=alice&subject=project&content-type=text&call-id=100&contact=bob&from=fred");
|
sl@0
|
113 |
_LIT8(KEquivGeneral2, "SiP:alice:SecretWord@192.168.000.005:90;transport=tcp?t=alice&s=project&c=test&i=200&m=%61llice&f=fred");
|