graphicsresourceservices/graphicsresourceimplementation/test/src/tgraphicsresourceinternalsecondprocess.cpp
equal
deleted
inserted
replaced
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
31 RThread().HandleCount(procHandles1, threadHandles1); |
31 RThread().HandleCount(procHandles1, threadHandles1); |
32 |
32 |
33 TPckgBuf<TSgResIntTestInfo> infoPkg; |
33 TPckgBuf<TSgResIntTestInfo> infoPkg; |
34 User::LeaveIfError(User::GetDesParameter(KSecondProcessParametersSlot, infoPkg)); |
34 User::LeaveIfError(User::GetDesParameter(KSecondProcessParametersSlot, infoPkg)); |
35 TSgResIntTestInfo& info = infoPkg(); |
35 TSgResIntTestInfo& info = infoPkg(); |
36 TSgResInternalTestCase testCase = info.iTestCase; |
|
37 TInt result = 0; |
36 TInt result = 0; |
38 |
37 |
39 CTSgResInternalSecondProcessTestHandler* handler = CTSgResInternalSecondProcessTestHandler::NewLC(); |
38 CTSgResInternalSecondProcessTestHandler* handler = CTSgResInternalSecondProcessTestHandler::NewLC(); |
40 handler->OpenDriverL(); |
39 handler->OpenDriverL(); |
41 |
40 |
42 result = handler->RunTestCaseL(testCase, info); |
41 result = handler->RunTestCaseL(info); |
43 CleanupStack::PopAndDestroy(handler); |
42 CleanupStack::PopAndDestroy(handler); |
44 |
43 |
45 // Handle check |
44 // Handle check |
46 if (!(result < KErrNone)) |
45 if (!(result < KErrNone)) |
47 { |
46 { |