equal
deleted
inserted
replaced
|
1 // Copyright (c) 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 // SQLDB internal API header |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef SQLRESOURCETESTER_H |
|
19 #define SQLRESOURCETESTER_H |
|
20 |
|
21 /** |
|
22 TSqlResourceTester class is used internally by the SQL server out of memory and resource leaking |
|
23 tests. |
|
24 It provides methods for heap allocation failure simulation and resource checking and counting. |
|
25 |
|
26 @internalAll |
|
27 @released |
|
28 */ |
|
29 class TSqlResourceTester |
|
30 { |
|
31 public: |
|
32 IMPORT_C static void Mark(); |
|
33 IMPORT_C static void Check(); |
|
34 IMPORT_C static TInt Count(); |
|
35 IMPORT_C static void SetDbHeapFailure(TInt aAllocFailType,TInt aRate); |
|
36 IMPORT_C static void SetHeapFailure(TInt aAllocFailType,TInt aRate); |
|
37 |
|
38 }; |
|
39 |
|
40 #endif //__SQLDBINTERNAL_H__ |