1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 /* |
2 // All rights reserved. |
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
3 // This component and the accompanying materials are made available |
3 * All rights reserved. |
4 // under the terms of "Eclipse Public License v1.0" |
4 * This component and the accompanying materials are made available |
5 // which accompanies this distribution, and is available |
5 * under the terms of "Eclipse Public License v1.0" |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 * which accompanies this distribution, and is available |
7 // |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 // Initial Contributors: |
8 * |
9 // Nokia Corporation - initial contribution. |
9 * Initial Contributors: |
10 // |
10 * Nokia Corporation - initial contribution. |
11 // Contributors: |
11 * |
12 // |
12 * Contributors: |
13 // Description: |
13 * |
14 // |
14 * Description: |
|
15 * |
|
16 */ |
15 |
17 |
16 #include "T_LongSql.h" |
18 |
|
19 #include "t_longsql.h" |
17 |
20 |
18 #include <e32test.h> |
21 #include <e32test.h> |
19 #include <cntfield.h> |
22 #include <cntfield.h> |
20 |
23 |
21 RTest TheTest(_L("Building a long SQL query")); |
24 RTest TheTest(_L("Building a long SQL query")); |
22 |
25 |
23 // |
26 //////////////////////////////// |
24 // CSqlSearch class definition |
27 // CSqlSearch class definition |
25 // |
28 //////////////////////////////// |
26 CSqlSearcher::CSqlSearcher() |
29 CSqlSearcher::CSqlSearcher() |
27 { |
30 { |
28 } |
31 } |
29 |
32 |
30 CSqlSearcher::~CSqlSearcher() |
33 CSqlSearcher::~CSqlSearcher() |
65 CleanupStack::PopAndDestroy(idleFinder); |
68 CleanupStack::PopAndDestroy(idleFinder); |
66 |
69 |
67 CleanupStack::PopAndDestroy(fieldsToSearch); |
70 CleanupStack::PopAndDestroy(fieldsToSearch); |
68 } |
71 } |
69 |
72 |
70 // |
73 //////////////////////////////// |
71 // Main test: |
74 // Main test: |
72 // |
75 //////////////////////////////// |
73 |
76 |
74 static void doMainL() |
77 static void doMainL() |
75 { |
78 { |
76 CActiveScheduler* scheduler = new(ELeave) CActiveScheduler; |
79 CActiveScheduler* scheduler = new(ELeave) CActiveScheduler; |
77 CleanupStack::PushL(scheduler); |
80 CleanupStack::PushL(scheduler); |