videoplayerapp/videoplayerengine/tsrc/testvideoappuiengine/stub/src/testutilities.cpp
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: mpx utilities class stub for unit testing |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 1 % |
|
19 |
|
20 #include "testutilities.h" |
|
21 |
|
22 void TestUtilities::DeleteCollectionUtility() |
|
23 { |
|
24 delete iCollectionUtility; |
|
25 iCollectionUtility = NULL; |
|
26 |
|
27 CloseUtility(); |
|
28 } |
|
29 |
|
30 void TestUtilities::DeletePlaybackUtility() |
|
31 { |
|
32 delete iPlaybackUtility; |
|
33 iPlaybackUtility = NULL; |
|
34 |
|
35 CloseUtility(); |
|
36 } |
|
37 |
|
38 void TestUtilities::CloseUtility() |
|
39 { |
|
40 if ( iCollectionUtility == NULL && iPlaybackUtility == NULL ) |
|
41 { |
|
42 delete this; |
|
43 |
|
44 //Dll::SetTls( NULL ); |
|
45 UserSvr::DllSetTls(12345678, NULL); |
|
46 } |
|
47 } |