equal
deleted
inserted
replaced
|
1 // Copyright (c) 2005-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 #include "t_sqloom.h" |
|
17 |
|
18 RTest TheTest(_L("t_sqloom4")); |
|
19 |
|
20 /////////////////////////////////////////////////////////////////////////////////////// |
|
21 /////////////// Secure database OOM tests ///////////////////////////// |
|
22 /////////////////////////////////////////////////////////////////////////////////////// |
|
23 |
|
24 void DoTestsL() |
|
25 { |
|
26 TheTest.Start(_L("SQL OOM tests - 4")); |
|
27 DbOomTestsL(ESecureDb); |
|
28 } |
|
29 |
|
30 TInt E32Main() |
|
31 { |
|
32 TheTest.Title(); |
|
33 |
|
34 CTrapCleanup* tc = CTrapCleanup::New(); |
|
35 |
|
36 __UHEAP_MARK; |
|
37 |
|
38 CreateTestDir(); |
|
39 DeleteTestFiles(); |
|
40 |
|
41 TRAPD(err, DoTestsL()); |
|
42 DeleteTestFiles(); |
|
43 TEST2(err, KErrNone); |
|
44 |
|
45 __UHEAP_MARKEND; |
|
46 |
|
47 TheTest.End(); |
|
48 TheTest.Close(); |
|
49 |
|
50 delete tc; |
|
51 |
|
52 User::Heap().Check(); |
|
53 return KErrNone; |
|
54 } |