| 56 | } |
| 57 | |
| 58 | const char* MemoryLeakWarning::FinalReport(int toBeDeletedLeaks) |
| 59 | { |
| 60 | TInt cellDifference(User::CountAllocCells() - _impl->iInitialAllocCells); |
| 61 | if( cellDifference != toBeDeletedLeaks ) { |
| 62 | return "Heap imbalance after test\n"; |
| 63 | } |
| 64 | |
| 65 | TInt processHandles; |
| 66 | TInt threadHandles; |
| 67 | RThread().HandleCount(processHandles, threadHandles); |
| 68 | |
| 69 | if(_impl->iInitialProcessHandleCount != processHandles || |
| 70 | _impl->iInitialThreadHandleCount != threadHandles) { |
| 71 | return "Handle count imbalance after test\n"; |
| 72 | } |
| 73 | |
| 74 | return ""; |
| 75 | } |
| 76 | |
| 77 | void MemoryLeakWarning::CheckPointUsage() |
| 78 | { |
nothing calls this directly
no outgoing calls
no test coverage detected