camerauis/cameraxui/cxengine/tsrc/unit/unittest_cxevideocapturecontrolsymbian/unittest_cxevideocapturecontrolsymbian.h
changeset 19 d9aefe59d544
child 24 2094593137f5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/camerauis/cameraxui/cxengine/tsrc/unit/unittest_cxevideocapturecontrolsymbian/unittest_cxevideocapturecontrolsymbian.h	Fri Apr 16 14:51:30 2010 +0300
@@ -0,0 +1,79 @@
+/*
+* Copyright (c) 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:
+*
+*/
+#ifndef UNITTEST_CXESTILLIMAGESYMBIAN_H
+#define UNITTEST_CXESTILLIMAGESYMBIAN_H
+
+#include <QObject>
+#include "cxevideocapturecontrolsymbian.h"
+#include "cxevideocapturecontrolsymbianunit.h"
+
+class CxeFakeCameraDevice;
+class CxeFakeViewfinderControl;
+class CxeFakeCameraDeviceControl;
+class CxeFakeSettings;
+class CxeFakeFilenameGenerator;
+class QSignalSpy;
+class CxeFakeQualityPresets;
+
+class UnitTestCxeVideoCaptureControlSymbian : public QObject
+{
+    Q_OBJECT
+
+public:
+    UnitTestCxeVideoCaptureControlSymbian();
+    ~UnitTestCxeVideoCaptureControlSymbian();
+
+private slots:
+    void init();
+    void cleanup();
+    void initTestCase();
+    void cleanupTestCase();
+
+    void testState();
+    void testRecord();
+    void testPause();
+    void testStop();
+    void testRemainingTime();
+    void testElapsedTime();
+    void testReset();
+    void testFilename();
+    void testSnapshot();
+    void testHandleSnapshotEvent();
+    void testInit();
+    void testDeinit();
+    void testHandleSoundPlayed();
+    void testMvruoOpenComplete();
+    void testMvruoPrepareComplete();
+    void testMvruoRecordComplete();
+    void testMvruoEvent();
+
+private:
+    // Helper methods for test cases
+    void doPrepareStuff();
+
+private:
+    CxeVideoCaptureControlSymbianUnit *mCxeVideoCaptureControlSymbian;
+    CxeFakeCameraDevice *mCameraDevice;
+    CxeFakeViewfinderControl *mViewfinderControl;
+    CxeFakeCameraDeviceControl *mCameraDeviceControl;
+    CxeFakeSettings *mSettings;
+    CxeFakeFilenameGenerator *mFilenameGeneratorSymbian;
+    QSignalSpy *mSpyState;
+    CxeFakeQualityPresets *mFakeQualityPresets;
+};
+
+#endif // UNITTEST_CXESTILLIMAGESYMBIAN_H