camerauis/cameraxui/cxengine/tsrc/unit/unittest_cxememorymonitor/oommonitorsession.cpp
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 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: Fake ROomMonitorSession class implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "oommonitorsession.h" |
|
19 |
|
20 TInt ROomMonitorSession::Connect() |
|
21 { |
|
22 return KErrNone; |
|
23 } |
|
24 |
|
25 TInt ROomMonitorSession::RequestFreeMemory(TInt /*aBytesRequested*/) |
|
26 { |
|
27 return KErrNone; |
|
28 } |
|
29 |
|
30 void ROomMonitorSession::RequestFreeMemory(TInt /*aBytesRequested*/, TRequestStatus& /*aStatus*/) |
|
31 { |
|
32 // do nothing |
|
33 } |
|
34 |
|
35 TInt ROomMonitorSession::RequestOptionalRam(TInt /*aBytesRequested*/, TInt /*aMinimumBytesNeeded*/, TInt /*aPluginId*/, TInt& /*aBytesAvailable*/) |
|
36 { |
|
37 return KErrNone; |
|
38 } |
|
39 |
|
40 void ROomMonitorSession::RequestOptionalRam(TInt /*aBytesRequested*/, TInt /*aMinimumBytesNeeded*/, TInt /*aPluginId*/, TRequestStatus& /*aStatus*/) |
|
41 { |
|
42 // do nothing |
|
43 } |
|
44 |
|
45 void ROomMonitorSession::CancelRequestFreeMemory() |
|
46 { |
|
47 // do nothing |
|
48 } |
|
49 |
|
50 void ROomMonitorSession::ThisAppIsNotExiting(TInt /*aWgId*/) |
|
51 { |
|
52 // do nothing |
|
53 } |
|
54 |
|
55 void ROomMonitorSession::SetOomPriority(TOomPriority /*aPriority*/) |
|
56 { |
|
57 // do nothing |
|
58 } |
|
59 |
|
60 void ROomMonitorSession::Close() |
|
61 { |
|
62 // do nothing |
|
63 } |
|
64 |
|
65 //End of file |