sysstatemgmt/systemstatereferenceplugins/test/tunitcustcmd/inc/tcmd_step_devicesecuritycheck.h
author Tapani Kanerva <Tapani.Kanerva@nice.fi>
Thu, 11 Nov 2010 14:35:29 +0000
branchRCL_3
changeset 86 79105dd92dc2
parent 0 4e1aa6a622a0
permissions -rw-r--r--
Export meaningful default HWRM policy files, to fix Bug 3852

// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

/**
 @file
 @test
 @internalComponent - Internal Symbian test code
*/

#ifndef __TCMD_STEP_DEVICESECURITYCHECK_H__
#define __TCMD_STEP_DEVICESECURITYCHECK_H__

#include "cmddevicesecuritycheck.h"
#include <test/testexecutestepbase.h>

_LIT(KTCCustomCmdTestDeviceSecurityCheck, "CCustomCmdTestDeviceSecurityCheck");

class CCustomCmdTestDeviceSecurityCheck: public CTestStep
	{
public:
	CCustomCmdTestDeviceSecurityCheck();
	~CCustomCmdTestDeviceSecurityCheck();
	void CallBackRunL();

	//from CTestStep
	TVerdict doTestStepPreambleL();
	TVerdict doTestStepL();
	TVerdict doTestStepPostambleL();

private:
	void SimulatePasswordEntry();
	
	void TestLockPhoneDeviceRespReceivedHelperL();
	void TestLockPhoneDeviceRespReceivedL();
	void TestLockPhoneDeviceRespReceived1L();
	void TestLockPhoneDeviceRespReceived2L();
	void TestLockPhoneDeviceRespReceived3L();
	void TestLockPhoneDeviceRespReceived4L();
	void TestLockPhoneDeviceRespReceived5L();
	
	void TestLockPhoneToIccRespReceivedHelperL();
	void TestLockPhoneToIccRespReceivedL();
	void TestLockPhoneToIccRespReceived1L();
	void TestLockPhoneToIccRespReceived2L();
	void TestLockPhoneToIccRespReceived3L();

	void TestSecCodeQueryRespReceivedL();
	void TestSecCodeQueryRespReceived1L();
	void TestSecCodeQueryRespReceived2L();

private:
	CActiveScheduler* iActiveScheduler;
	CActiveSchedulerWait* iActiveSchedulerWait;
	CAsyncCallBack* iAsyncStopScheduler;
	TRequestStatus iRequest;
	CCustomCmdDeviceSecurityCheck* iCustomCmdDevSecurityCheck;
	TBool iWrongPwd;
	};

#endif	// __TCMD_STEP_DEVICESECURITYCHECK_H__