camerauis/cameraxui/cxengine/tsrc/unit/unittest_cxesettingscontrolsymbian/unittest_cxesettingscontrolsymbian.cpp
changeset 43 0e652f8f1fbd
parent 19 d9aefe59d544
equal deleted inserted replaced
28:3075d9b614e6 43:0e652f8f1fbd
     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".
    94 {
    94 {
    95     CX_DEBUG_ENTER_FUNCTION();
    95     CX_DEBUG_ENTER_FUNCTION();
    96 
    96 
    97     CxeScene videoScene;
    97     CxeScene videoScene;
    98 
    98 
    99     videoScene.insert(CxeSettingIds::SCENE_ID, CxeSettingIds::VIDEO_SCENE_AUTO);
    99     videoScene.insert(CxeSettingIds::SCENE_ID, Cxe::VIDEO_SCENE_AUTO);
   100     videoScene.insert(CxeSettingIds::FOCAL_RANGE, CxeAutoFocusControl::Hyperfocal);
   100     videoScene.insert(CxeSettingIds::FOCAL_RANGE, CxeAutoFocusControl::Hyperfocal);
   101     videoScene.insert(CxeSettingIds::WHITE_BALANCE, WhitebalanceAutomatic);
   101     videoScene.insert(CxeSettingIds::WHITE_BALANCE, WhitebalanceAutomatic);
   102     videoScene.insert(CxeSettingIds::EXPOSURE_MODE, ExposureAuto);
   102     videoScene.insert(CxeSettingIds::EXPOSURE_MODE, ExposureAuto);
   103     videoScene.insert(CxeSettingIds::COLOR_TONE, ColortoneNormal);
   103     videoScene.insert(CxeSettingIds::COLOR_TONE, ColortoneNormal);
   104     videoScene.insert(CxeSettingIds::CONTRAST, 0);
   104     videoScene.insert(CxeSettingIds::CONTRAST, 0);
   107 
   107 
   108     mSettingsControl->handleSceneChanged(videoScene);
   108     mSettingsControl->handleSceneChanged(videoScene);
   109 
   109 
   110     CxeScene imageScene;
   110     CxeScene imageScene;
   111 
   111 
   112     imageScene.insert(CxeSettingIds::SCENE_ID, CxeSettingIds::IMAGE_SCENE_NIGHT);
   112     imageScene.insert(CxeSettingIds::SCENE_ID, Cxe::IMAGE_SCENE_NIGHT);
   113     imageScene.insert(CxeSettingIds::FOCAL_RANGE, CxeAutoFocusControl::Auto);
   113     imageScene.insert(CxeSettingIds::FOCAL_RANGE, CxeAutoFocusControl::Auto);
   114     imageScene.insert(CxeSettingIds::WHITE_BALANCE, WhitebalanceAutomatic);
   114     imageScene.insert(CxeSettingIds::WHITE_BALANCE, WhitebalanceAutomatic);
   115     imageScene.insert(CxeSettingIds::EXPOSURE_MODE, ExposureNight);
   115     imageScene.insert(CxeSettingIds::EXPOSURE_MODE, ExposureNight);
   116     imageScene.insert(CxeSettingIds::COLOR_TONE, ColortoneNormal);
   116     imageScene.insert(CxeSettingIds::COLOR_TONE, ColortoneNormal);
   117     imageScene.insert(CxeSettingIds::CONTRAST, 0);
   117     imageScene.insert(CxeSettingIds::CONTRAST, 0);