camerauis/cameraxui/cxengine/tsrc/unit/unittest_cxevideocapturecontrolsymbian/unittest_cxevideocapturecontrolsymbian.h
branchRCL_3
changeset 24 bac7acad7cb3
parent 23 61bc0f252b2b
child 25 2c87b2808fd7
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "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".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 #ifndef UNITTEST_CXESTILLIMAGESYMBIAN_H
       
    18 #define UNITTEST_CXESTILLIMAGESYMBIAN_H
       
    19 
       
    20 #include <QObject>
       
    21 #include "cxevideocapturecontrolsymbian.h"
       
    22 #include "cxevideocapturecontrolsymbianunit.h"
       
    23 
       
    24 class CxeFakeCameraDevice;
       
    25 class CxeFakeViewfinderControl;
       
    26 class CxeSnapshotControl;
       
    27 class CxeFakeCameraDeviceControl;
       
    28 class CxeFakeSettings;
       
    29 class CxeFakeFilenameGenerator;
       
    30 class QSignalSpy;
       
    31 class CxeFakeQualityPresets;
       
    32 class CxeDiskMonitor;
       
    33 
       
    34 class UnitTestCxeVideoCaptureControlSymbian : public QObject
       
    35 {
       
    36     Q_OBJECT
       
    37 
       
    38 public:
       
    39     UnitTestCxeVideoCaptureControlSymbian();
       
    40     ~UnitTestCxeVideoCaptureControlSymbian();
       
    41 
       
    42 private slots:
       
    43     void init();
       
    44     void cleanup();
       
    45     void initTestCase();
       
    46     void cleanupTestCase();
       
    47 
       
    48     void testState();
       
    49     void testRecord();
       
    50     void testPause();
       
    51     void testStop();
       
    52     void testRemainingTime();
       
    53     void testElapsedTime();
       
    54     void testFilename();
       
    55     void testReset();
       
    56     void testSnapshot();
       
    57     void testHandleSnapshotReady();
       
    58     void testInit();
       
    59     void testDeinit();
       
    60     void testHandleSoundPlayed();
       
    61     void testMvruoOpenComplete();
       
    62     void testMvruoPrepareComplete();
       
    63     void testMvruoRecordComplete();
       
    64     void testMvruoEvent();
       
    65 
       
    66 private:
       
    67     // Helper methods for test cases
       
    68     void doPrepareStuff();
       
    69 
       
    70 private:
       
    71     CxeVideoCaptureControlSymbianUnit *mCxeVideoCaptureControlSymbian;
       
    72     CxeFakeCameraDevice *mCameraDevice;
       
    73     CxeFakeViewfinderControl *mViewfinderControl;
       
    74     CxeSnapshotControl *mSnapshotControl;
       
    75     CxeFakeCameraDeviceControl *mCameraDeviceControl;
       
    76     CxeFakeSettings *mSettings;
       
    77     CxeFakeFilenameGenerator *mFilenameGeneratorSymbian;
       
    78     QSignalSpy *mSpyState;
       
    79     CxeFakeQualityPresets *mFakeQualityPresets;
       
    80     CxeDiskMonitor *mDiskMonitor;
       
    81 };
       
    82 
       
    83 #endif // UNITTEST_CXESTILLIMAGESYMBIAN_H