sl@0: /* sl@0: * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: #ifndef TPOLICYREADER_H sl@0: #define TPOLICYREADER_H sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: #include "policyreader.h" sl@0: sl@0: class CTestPolicyReader : public CTestFixture sl@0: { sl@0: public: sl@0: // From CTestFixture sl@0: void SetupL(); sl@0: void TearDownL(); sl@0: sl@0: // Policy Reader Unit Test sl@0: void TestPolicyReaderL(); sl@0: sl@0: // Create a suite of all the tests sl@0: static CTestSuite* CreateSuiteL(const TDesC& aName); sl@0: sl@0: private: sl@0: TBool CheckPolicyL(const TDesC& aPolicySection); sl@0: void ReadExpectedValuesL(const TDesC& aPolicySection); sl@0: TBool CompareExpectedValues(const UserPromptService::CPolicy& aPolicy); sl@0: void CreatePolicyReaderL(const TDesC& aPolicyFile); sl@0: void TestPolicyListL(const TDesC& aPolicyFile); sl@0: sl@0: TInt iExpectedError; sl@0: TInt iSystemServerSecurity; sl@0: UserPromptService::CPolicyReader* iPolicyReader; sl@0: TInt iSidClasses; sl@0: RArray iSidList; sl@0: TPtrC iDestination; sl@0: TInt iOptions; sl@0: TUid iPolicyEvaluator; sl@0: TUid iDialogCreator; sl@0: TInt iMajorVersion; sl@0: TInt iMinorVersion; sl@0: TBool iDefault; sl@0: TInt iFlags; sl@0: RFs iFs; sl@0: }; sl@0: sl@0: #endif // TPOLICYREADER_H sl@0: