os/security/authorisation/userpromptservice/policies/test/tupspolicies/source/tpolicyreader.h
First public contribution.
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #ifndef TPOLICYREADER_H
20 #define TPOLICYREADER_H
25 #include <test/tefunit.h>
26 #include <ups/policy.h>
28 #include "policyreader.h"
30 class CTestPolicyReader : public CTestFixture
37 // Policy Reader Unit Test
38 void TestPolicyReaderL();
40 // Create a suite of all the tests
41 static CTestSuite* CreateSuiteL(const TDesC& aName);
44 TBool CheckPolicyL(const TDesC& aPolicySection);
45 void ReadExpectedValuesL(const TDesC& aPolicySection);
46 TBool CompareExpectedValues(const UserPromptService::CPolicy& aPolicy);
47 void CreatePolicyReaderL(const TDesC& aPolicyFile);
48 void TestPolicyListL(const TDesC& aPolicyFile);
51 TInt iSystemServerSecurity;
52 UserPromptService::CPolicyReader* iPolicyReader;
54 RArray<TSecureId> iSidList;
57 TUid iPolicyEvaluator;
66 #endif // TPOLICYREADER_H