camerauis/cameraxui/cxengine/tsrc/unit/unittest_cxeimagedataitemsymbian/unittest_cxeimagedataitemsymbian.h
changeset 46 c826656d6714
parent 19 d9aefe59d544
equal deleted inserted replaced
42:feebad15db8c 46:c826656d6714
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    31 public:
    31 public:
    32     UnitTestCxeImageDataItemSymbian();
    32     UnitTestCxeImageDataItemSymbian();
    33     ~UnitTestCxeImageDataItemSymbian();
    33     ~UnitTestCxeImageDataItemSymbian();
    34 
    34 
    35 private slots:
    35 private slots:
       
    36     
       
    37     // for every test case
    36     void init();
    38     void init();
       
    39     
       
    40     // for every test case
    37     void cleanup();
    41     void cleanup();
       
    42 
       
    43     // before any test cases
       
    44     void initTestCase();
       
    45     // after last test case
       
    46     void cleanupTestCase();
       
    47         
    38     void testSave();
    48     void testSave();
    39     void testSaveFail();
       
    40     void testPath();
    49     void testPath();
       
    50     void testState();
       
    51     void testId();
       
    52     void testIsLocationEnabled();
    41 
    53 
    42 private:
    54 private:
    43     QString generateImageFileName(int counter);
    55     QString generateImageFileName();
    44     QString generateImageFileNameWithLetter(int counter, QString letter);
    56     QString dummyPath(const QString &drive);
       
    57     QString path();
    45 
    58 
    46 private:
    59 private:
    47     CxeImageDataItemSymbian *mImageDataItem; // This will be recreated for each test
    60     CxeImageDataItemSymbian *mImageDataItem; // This will be recreated for each test
    48     QString mPath;
    61     QString mFilename;
       
    62     int mImageCounter;
    49 };
    63 };
    50 
    64 
    51 #endif // UNITTEST_CXEIMAGEDATAITEMSYMBIAN_H
    65 #endif // UNITTEST_CXEIMAGEDATAITEMSYMBIAN_H