1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/imagingandcamerafws/cameraunittest/src/TSU_ECM_ADV/ECamAdvSetTest.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,161 @@
1.4 +
1.5 +// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// under the terms of "Eclipse Public License v1.0"
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +
1.20 +#ifndef ECamAdvSetTest_H
1.21 +#define ECamAdvSetTest_H
1.22 +
1.23 +#include <testframework.h>
1.24 +#include <ecamadvsettings.h>
1.25 +#include "ECamObserverTest.h"
1.26 +
1.27 +class RECamAdvSetTest : public RTestStep
1.28 + {
1.29 +public:
1.30 + static RECamAdvSetTest* NewL(TBool aAllocTest);
1.31 +protected:
1.32 + // from RTestStep;
1.33 + TVerdict DoTestStepL();
1.34 + TVerdict DoAdvTestStepL();
1.35 +private:
1.36 + RECamAdvSetTest(TBool aAllocTest);
1.37 + };
1.38 +
1.39 +class RECamAdvSetNotificationTest : public RECamObserverTest
1.40 + {
1.41 +public:
1.42 + static RECamAdvSetNotificationTest* NewL(TBool aAllocTest);
1.43 +
1.44 +protected:
1.45 + // from RTestStep;
1.46 + TVerdict DoTestStepL();
1.47 + void ConstructL();
1.48 +
1.49 +private:
1.50 + RECamAdvSetNotificationTest(TBool aAllocTest);
1.51 + };
1.52 +
1.53 +class RECamAdvSetDefaultsTest : public RECamObserverTest
1.54 + {
1.55 +public:
1.56 + static RECamAdvSetDefaultsTest* NewL(TBool aAllocTest);
1.57 +protected:
1.58 + // from RTestStep;
1.59 + TVerdict DoTestStepL();
1.60 +
1.61 +private:
1.62 + void TestISOTypesL(CCamera::CCameraAdvancedSettings* aSettings, CCamera::CCameraAdvancedSettings::TISORateType aIsoRateType, RArray<TInt> aSupportedIsoRates, TVerdict& aResult);
1.63 +private:
1.64 + RECamAdvSetDefaultsTest(TBool aAllocTest);
1.65 + TUid iInputEventUid;
1.66 + };
1.67 +
1.68 +class RECamAdvSetGettersTest : public RECamObserverTest
1.69 + {
1.70 +public:
1.71 + static RECamAdvSetGettersTest* NewL(TBool aAllocTest);
1.72 +protected:
1.73 + // from RTestStep;
1.74 + TVerdict DoTestStepL();
1.75 +private:
1.76 + RECamAdvSetGettersTest(TBool aAllocTest);
1.77 + TUid iInputEventUid;
1.78 + };
1.79 +
1.80 +class RECamAdvSetTwoCamTest : public RECamObserverTest
1.81 + {
1.82 +public:
1.83 + static RECamAdvSetTwoCamTest* NewL(TBool aAllocTest);
1.84 +protected:
1.85 + // from RTestStep;
1.86 + TVerdict DoTestStepL();
1.87 +private:
1.88 + RECamAdvSetTwoCamTest(TBool aAllocTest);
1.89 + TUid iInputEventUid;
1.90 + };
1.91 +
1.92 +class RECamAdvSetNegTest : public RECamObserverTest
1.93 + {
1.94 +public:
1.95 + static RECamAdvSetNegTest* NewL(TBool aAllocTest);
1.96 +protected:
1.97 + // from RTestStep;
1.98 + TVerdict DoTestStepL();
1.99 +private:
1.100 + RECamAdvSetNegTest(TBool aAllocTest);
1.101 + TUid iInputEventUid;
1.102 + };
1.103 +
1.104 +class RECamAdvSetBaselineTest : public RECamObserverTest
1.105 + {
1.106 +public:
1.107 + static RECamAdvSetBaselineTest* NewL(TBool aAllocTest);
1.108 +protected:
1.109 + // from RTestStep;
1.110 + TVerdict DoTestStepL();
1.111 +private:
1.112 + RECamAdvSetBaselineTest(TBool aAllocTest);
1.113 + TUid iInputEventUid;
1.114 + };
1.115 +
1.116 +class RECamAdvSetTest2 : public RTestStep
1.117 + {
1.118 +public:
1.119 + static RECamAdvSetTest2* NewL(TBool aAllocTest);
1.120 +protected:
1.121 + // from RTestStep;
1.122 + TVerdict DoTestStepL();
1.123 + void RatioSubStepL(CCamera::CCameraAdvancedSettings* aCamera, TInt aSuppRange, TInt aTestValue, TInt aExpValues);
1.124 + void FlashSubStepL(CCamera::CCameraAdvancedSettings*, TInt aSuppRange, TInt aTestValue, TInt aExpValues);
1.125 + void OvrSubStepL(CCamera& aCamera, TInt aSuppRange, TInt aTestValue, TInt aExpValues);
1.126 +private:
1.127 + RECamAdvSetTest2(TBool aAllocTest);
1.128 + };
1.129 +
1.130 +class RECamContinuousZoomAllocTest : public RECamContinousZoomObserverTest
1.131 + {
1.132 +public:
1.133 + static RECamContinuousZoomAllocTest* NewL(TBool aAllocTest);
1.134 +protected:
1.135 + // from RTestStep;
1.136 + TVerdict DoTestStepL();
1.137 + TVerdict DoAllocTestStepL();
1.138 +private:
1.139 + RECamContinuousZoomAllocTest(TBool aAllocTest);
1.140 + };
1.141 +
1.142 +class RECamContinuousZoomTest : public RECamContinousZoomObserverTest
1.143 + {
1.144 +public:
1.145 + static RECamContinuousZoomTest* NewL(TBool aAllocTest);
1.146 +protected:
1.147 + // from RTestStep;
1.148 + TVerdict DoTestStepL();
1.149 +private:
1.150 + RECamContinuousZoomTest(TBool aAllocTest);
1.151 + };
1.152 +
1.153 +class RECamDependantSupportedDriveModesTest : public RTestStep
1.154 + {
1.155 +public:
1.156 + static RECamDependantSupportedDriveModesTest* NewL(TBool aAllocTest);
1.157 +protected:
1.158 + // from RTestStep;
1.159 + TVerdict DoTestStepL();
1.160 +private:
1.161 + RECamDependantSupportedDriveModesTest(TBool aAllocTest);
1.162 + };
1.163 +
1.164 +#endif // ECamAdvSetTest_H