[ITC][dali-adaptor][Non-ACR][Added TC for dali adaptor]
authorJahangir <ja.alam@samsung.com>
Mon, 17 Oct 2016 18:38:36 +0000 (14:38 -0400)
committerJahangir <ja.alam@samsung.com>
Mon, 17 Oct 2016 18:38:56 +0000 (14:38 -0400)
Change-Id: Id0faa34377c3e6fac78d65993b4b06865892a503

src/itc/dali-adaptor/CMakeLists.txt
src/itc/dali-adaptor/application/ITs-application-common.cpp [new file with mode: 0644]
src/itc/dali-adaptor/application/ITs-application-common.h [new file with mode: 0644]
src/itc/dali-adaptor/application/ITs-application.cpp [new file with mode: 0644]
src/itc/dali-adaptor/key-grab/ITs-key-grab-common.cpp [new file with mode: 0644]
src/itc/dali-adaptor/key-grab/ITs-key-grab-common.h [new file with mode: 0644]
src/itc/dali-adaptor/key-grab/ITs-key-grab.cpp [new file with mode: 0644]
src/itc/dali-adaptor/tct-dali-adaptor-native_common_iot.h
src/itc/dali-adaptor/tct-dali-adaptor-native_mobile.h
src/itc/dali-adaptor/tct-dali-adaptor-native_tv.h
src/itc/dali-adaptor/tct-dali-adaptor-native_wearable.h

index 38afbd8..7ccb26f 100755 (executable)
@@ -5,6 +5,10 @@ SET(RPM_NAME "native-${PKG_NAME}-itc")
 
 SET(CAPI_LIB "glib-2.0 capi-appfw-application capi-system-info dali-core dali-adaptor dali-toolkit ecore ecore-evas storage capi-system-sensor")
 SET(TC_SOURCES
+application/ITs-application.cpp
+application/ITs-application-common.cpp
+key-grab/ITs-key-grab.cpp
+key-grab/ITs-key-grab-common.cpp
 native-image-source/ITs-native-image-source.cpp
 native-image-source/ITs-native-image-source-common.cpp
 timer/ITs-timer-common.cpp
diff --git a/src/itc/dali-adaptor/application/ITs-application-common.cpp b/src/itc/dali-adaptor/application/ITs-application-common.cpp
new file mode 100644 (file)
index 0000000..5cfe33b
--- /dev/null
@@ -0,0 +1,21 @@
+#include "ITs-application-common.h"
+
+/** @addtogroup itc-dali-adaptor
+*      @brief Integrated testsuites for module dali-adaptor
+*      @ingroup itc
+*      @{ 
+*/
+
+/** @addtogroup itc-application
+*      @brief Integrated testcases and testcase helper function, callbacks for suite application
+*      @ingroup itc-dali-adaptor
+*      @{ 
+*/
+
+//Add helper function definitions here
+  
+
+
+/** @} */ // end of itc-application
+/** @} */ // end of itc-dali-adaptor
diff --git a/src/itc/dali-adaptor/application/ITs-application-common.h b/src/itc/dali-adaptor/application/ITs-application-common.h
new file mode 100644 (file)
index 0000000..db65847
--- /dev/null
@@ -0,0 +1,37 @@
+#ifndef _ITS_APPLICATION_COMMON_H_
+#define _ITS_APPLICATION_COMMON_H_
+
+
+#include "dali-common.h"
+#include <exception>
+#include <dali/dali.h>
+#include <dali-toolkit/dali-toolkit.h>
+
+using namespace std;
+using namespace Dali;
+using namespace Toolkit;
+
+/** @addtogroup itc-dali-adaptor
+*      @brief Integrated testsuites for module dali-adaptor
+*      @ingroup itc
+*      @{ 
+*/
+
+/** @addtogroup itc-application
+*      @brief Integrated testcases and testcase helper function, callbacks for suite application
+*      @ingroup itc-dali-adaptor
+*      @{ 
+*/
+
+#define SUITE_NAME          "APPLICATION_ITC"
+
+/*******************************************************HELPER FUNCTIONS**************************************************/
+
+//Helper function for Initialization
+
+
+/** @} */ // end of itc-application
+/** @} */ // end of itc-dali-adaptor
+
+#endif  //_ITS_APPLICATION_COMMON_H_
diff --git a/src/itc/dali-adaptor/application/ITs-application.cpp b/src/itc/dali-adaptor/application/ITs-application.cpp
new file mode 100644 (file)
index 0000000..b24e315
--- /dev/null
@@ -0,0 +1,462 @@
+#include "ITs-application-common.h"
+#define VIEW_MODE_COUNT 4
+
+/** @addtogroup itc-dali-adaptor
+*      @brief Integrated testsuites for module dali-adaptor
+*      @ingroup itc
+*      @{ 
+*/
+
+
+/** @addtogroup itc-application
+*      @brief Integrated testcases and testcase helper function, callbacks for suite application
+*      @ingroup itc-dali-adaptor
+*      @{ 
+*/
+
+extern int gArgc;
+extern char ** gArgv;
+extern int test_return_value;
+//& set: application
+
+bool gResetSignalStatus = false;
+bool gResizeSignalStatus = false;
+bool gIdleCalled = false;
+
+ViewMode viewModes[VIEW_MODE_COUNT]
+{
+       MONO,
+       STEREO_HORIZONTAL,
+       STEREO_VERTICAL,
+       STEREO_INTERLACED
+};
+void ITs_application_startup(void)
+{
+       test_return_value=0;
+}
+
+void ITs_application_cleanup(void)
+{
+}
+
+/**@addtogroup  itc-application-testcases      
+ * @brief       Integration testcases for module application   
+ * @ingroup     itc-application
+ * @{  
+ */
+void ApplicationLower(Application& mApplication);
+void ApplicationSetGetStereoBase(Application& mApplication);
+void ApplicationSetGetViewMode(Application& mApplication);
+//~ void ApplicationResetSignal(Application& mApplication);
+void ApplicationReplaceWindow(Application& mApplication);
+void ApplicationAssignmentOperator(Application& mApplication);
+void ApplicationCopyConstructor(Application& mApplication);
+void ApplicationAddIdle();
+
+namespace
+{
+       enum TEST_CASES_LIST_WINDOW
+       {
+               APPLICATION_LOWER,
+               APPLICATION_SET_GET_STEREOBASE,
+               APPLICATION_SET_GET_VIEWMODE,
+               APPLICATION_RESET_SIGNAL,
+               APPLICATION_REPLACE_WINDOW,
+               APPLICATION_ASSIGNMENT_OPERATOR,
+               APPLICATION_COPY_CONSTRUCTOR,
+               APPLICATION_ADDIDLE
+       };
+
+       struct Application_TestApp : public ConnectionTracker
+       {
+               Application_TestApp( Application& app, int test_case )
+               : mApplication( app ),
+               mTestCase( test_case )
+               {
+                       mApplication.InitSignal().Connect( this, &Application_TestApp::OnInit );
+               }
+               
+               void OnInit(Application& app)
+               {
+                       mApplication.AddIdle( MakeCallback( this, &Application_TestApp::OnIdle ) );
+                       ExcuteTest();
+                       mTimer = Timer::New( INTERVAL );
+                       mTimer.TickSignal().Connect( this, &Application_TestApp::Tick );
+                       mTimer.Start();
+               }
+               
+               bool Tick()
+               {
+                       mTimer.Stop();
+                       mApplication.Quit();
+                       return true;
+               }
+               
+               void ExcuteTest()
+               {
+                       switch (mTestCase)
+                       {
+                               case APPLICATION_LOWER:
+                               ApplicationLower(mApplication);
+                               break;
+                         
+                               case APPLICATION_SET_GET_STEREOBASE:
+                               ApplicationSetGetStereoBase(mApplication);
+                               break;
+                         
+                               case APPLICATION_SET_GET_VIEWMODE:
+                               ApplicationSetGetViewMode(mApplication);
+                               break;
+                         
+                               //~ case APPLICATION_RESET_SIGNAL:
+                               //~ ApplicationResetSignal(mApplication);
+                               //~ break;
+                         
+                               case APPLICATION_REPLACE_WINDOW:
+                               ApplicationReplaceWindow(mApplication);
+                               break;
+                         
+                               case APPLICATION_ASSIGNMENT_OPERATOR:
+                               ApplicationAssignmentOperator(mApplication);
+                               break;
+                         
+                               case APPLICATION_COPY_CONSTRUCTOR:
+                               ApplicationCopyConstructor(mApplication);
+                               break;
+                         
+                               case APPLICATION_ADDIDLE:
+                               ApplicationAddIdle();
+                               break;
+                       }
+               }
+               
+               void OnIdle()
+               {
+                       gIdleCalled = true;
+               }
+
+               // Data
+               Application& mApplication;
+               int mTestCase;
+               Timer mTimer;
+       };
+       
+} // unnamed namespace
+
+
+/**
+ * ##############################
+ * TC Logic Implementation Area.
+ * ##############################
+ **/
+
+void ApplicationResetSignalCallback(Application& app)
+{
+       gResetSignalStatus = true;
+}
+
+void ApplicationResizeSignalCallback(Application& app)
+{
+       gResizeSignalStatus = true;
+}
+
+void ApplicationLower(Application& mApplication)
+{
+       try
+       {
+               mApplication.Lower();
+       }
+       catch( ... )
+       {
+               DALI_CHECK_FAIL( true, "Lower gives exception." );
+       }
+       DaliLog::PrintPass();
+}
+
+void ApplicationSetGetStereoBase(Application& mApplication)
+{
+       float setStereoBase = 1.0f;
+       mApplication.SetStereoBase( setStereoBase );
+       float getStereoBase = mApplication.GetStereoBase();
+       DALI_CHECK_FAIL( setStereoBase != getStereoBase, "Stereo base set and get is failed." );
+       DaliLog::PrintPass();
+}
+
+void ApplicationSetGetViewMode(Application& mApplication)
+{
+       for ( int modeIndex = 0; modeIndex < VIEW_MODE_COUNT; modeIndex++ )
+       {
+               mApplication.SetViewMode( viewModes[modeIndex] );
+               ViewMode  viewMode = mApplication.GetViewMode();
+               DALI_CHECK_FAIL( viewMode != viewModes[modeIndex], "View mode set and get is failed." );
+       }
+       
+       DaliLog::PrintPass();
+}
+
+//~ void ApplicationResetSignal(Application& mApplication)
+//~ {
+       //~ mApplication.ResetSignal().Connect(&ApplicationResetSignalCallback);
+       //~ Stage stage = Stage::GetCurrent();
+    //~ stage.SetBackgroundColor( Color::WHITE );
+    //~ Button button = PushButton::New();
+    //~ button.SetLabelText("Button");
+    //~ button.SetAnchorPoint( AnchorPoint::CENTER );
+    //~ button.SetPosition(stage.GetSize().width/2,stage.GetSize().height/2);
+    //~ stage.Add( button );
+       //~ DALI_CHECK_FAIL( !gResetSignalStatus, "Application Reset Signal is not fired" );
+       //~ DaliLog::PrintPass();
+//~ }
+
+void ApplicationReplaceWindow(Application& mApplication)
+{
+       Window window = mApplication.GetWindow();
+       mApplication.ResizeSignal().Connect(&ApplicationResizeSignalCallback);
+       mApplication.ReplaceWindow(PositionSize( 0, 0, Stage::GetCurrent().GetSize().width - 1, Stage::GetCurrent().GetSize().height - 1) ,"new Window");
+       DALI_CHECK_FAIL( !gResizeSignalStatus, "Application Resize Signal is not fired" );
+       DALI_CHECK_FAIL( window == mApplication.GetWindow(), "Application ReplaceWindow is failed" );
+       DaliLog::PrintPass();
+}
+
+void ApplicationAssignmentOperator(Application& mApplication)
+{
+       Application application;
+       application = mApplication; 
+       DALI_CHECK_FAIL( mApplication != application, "Application assignment operator is failed" );
+       DaliLog::PrintPass();
+}
+
+void ApplicationCopyConstructor(Application& mApplication)
+{
+       Application application = mApplication;
+       DALI_CHECK_FAIL( mApplication != application, "Application copy constructor is failed" );
+       DaliLog::PrintPass();
+}
+
+void ApplicationAddIdle()
+{
+       DALI_CHECK_FAIL( gIdleCalled, "Application AddIdle is failed" );
+       DaliLog::PrintPass();
+}
+
+ /**
+ * End of TC Logic Implementation Area.
+ **/
+
+//& purpose: Check if Lower API is work without any error
+//& type: auto
+/**
+* @testcase                    ITcApplicationLower
+* @since_tizen          2.4
+* @type                                Positive
+* @description                 Check if Lower API is work without any error
+* @scenario                            Create an  application object \n
+*                       Check if Lower API works properly properly without exception\n
+* @apicovered                  Application::Lower ()
+* @passcase             if Lower API works properly properly without exception
+* @failcase                            if Lower API does not work properly properly
+* @precondition                        NA
+* @postcondition               NA
+*/
+
+int ITcApplicationLower(void)
+{
+       DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+       Application application = Application::New( &gArgc, &gArgv );
+       CHECK_OPEN_GL(SUITE_NAME,__LINE__)
+       Application_TestApp testApp( application, APPLICATION_LOWER);
+       application.MainLoop(); 
+    return test_return_value;
+}
+
+//& purpose: Check if Application stereo base is set and get properly
+//& type: auto
+/**
+* @testcase                    ITcApplicationSetGetStereoBase
+* @since_tizen          2.4
+* @type                                Positive
+* @description                 Check if Application stereo base is set and get properly
+* @scenario                            Create an  application object \n
+*                       Check if the application object is created or not \n
+*                       Create an initialized application object using Application::New method and check \n
+* @apicovered                  Application::SetStereoBase(), Application::GetStereoBase ()
+* @passcase             if Application stereo base set and get works properly 
+* @failcase                            if Application stereo base set and get does not work properly
+* @precondition                        NA
+* @postcondition               NA
+*/
+
+int ITcApplicationSetGetStereoBase(void)
+{
+       DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+       Application application = Application::New( &gArgc, &gArgv );
+       CHECK_OPEN_GL(SUITE_NAME,__LINE__)
+       Application_TestApp testApp( application, APPLICATION_SET_GET_STEREOBASE);
+       application.MainLoop(); 
+    return test_return_value;
+}
+
+//& purpose: Check if Application view mode is set and get properly
+//& type: auto
+/**
+* @testcase                    ITcApplicationSetGetViewMode
+* @since_tizen          2.4
+* @type                                Positive
+* @description                 Check if Application view mode is set and get properly
+* @scenario                            Create an  application object \n
+*                       Check if Application view mode is set and get properly \n
+* @apicovered                  Application::SetViewMode(), Application::GetViewMode ()
+* @passcase             if Application view mode is set and get properly
+* @failcase                            if Application view mode set and get does not work properly
+* @precondition                        NA
+* @postcondition               NA
+*/
+
+int ITcApplicationSetGetViewMode(void)
+{
+       DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+       Application application = Application::New( &gArgc, &gArgv );
+       CHECK_OPEN_GL(SUITE_NAME,__LINE__)
+       Application_TestApp testApp( application, APPLICATION_SET_GET_VIEWMODE);
+       application.MainLoop(); 
+    return test_return_value;
+}
+
+//& purpose: Check if signal is sent when the system requires the user to reinitialise itself. 
+//& type: auto
+/**
+* @testcase                    ITcApplicationResetSignal
+* @since_tizen          2.4
+* @type                                Positive
+* @description                 Check if signal is sent when the system requires the user to reinitialise itself.
+* @scenario                            Create an  emptyapplication object \n
+*                       Check if the application ApplicationResetSignal callback is called\n
+* @apicovered                  Application::ResetSignal ()
+* @passcase             if signal is sent when the system requires the user to reinitialise itself. 
+* @failcase                            if signal is not sent when the system requires the user to reinitialise itself. 
+* @precondition                        NA
+* @postcondition               NA
+*/
+
+//~ int ITcApplicationResetSignal(void)
+//~ {
+       //~ DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+       //~ Application application = Application::New( &gArgc, &gArgv );
+       //~ CHECK_OPEN_GL(SUITE_NAME,__LINE__)
+       //~ Application_TestApp testApp( application, APPLICATION_RESET_SIGNAL);
+       //~ application.MainLoop();     
+    //~ return test_return_value;
+//~ }
+
+//& purpose: Check if the current window is replaced
+//& type: auto
+/**
+* @testcase                    ITcApplicationReplaceWindow
+* @since_tizen          2.4
+* @type                                Positive
+* @description                 Check if the current window is replaced
+* @scenario                            Create an  application object \n
+*                                              Get the current window. and then replace window with new one which have different size than previous. \n
+*                       Check if the application Application resize signal callback is called and new window is diffent than previous. \n
+* @apicovered                  Application::ReplaceWindow(), Application::GetWindow(), Application::ResizeSignal ()
+* @passcase             If resize signal callback is called and new window not same to previous
+* @failcase                            If resize signal callback is not called or new window same to previous
+* @precondition                        NA
+* @postcondition               NA
+*/
+
+int ITcApplicationReplaceWindow(void)
+{
+       DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+       Application application = Application::New( &gArgc, &gArgv );
+       CHECK_OPEN_GL(SUITE_NAME,__LINE__)
+       Application_TestApp testApp( application, APPLICATION_REPLACE_WINDOW);
+       application.MainLoop(); 
+    return test_return_value;
+}
+
+//& purpose: Check if assignment operator work correctly or not
+//& type: auto
+/**
+* @testcase                    ITcApplicationAssignmentOperator
+* @since_tizen          2.4
+* @type                                Positive
+* @description                 Check if assignment operator work correctly or not
+* @scenario                            Create an application object \n
+*                       Create another application object with that previously created application object using assignment operator\n
+*                                              Check both object is equal
+*                                              Create application object using assignment operator and check
+* @apicovered                  Application::operator=(const Application& Application)
+* @passcase             if both application object is equal
+* @failcase                            if both application object is not equal
+* @precondition                        NA
+* @postcondition               NA
+*/
+
+int ITcApplicationAssignmentOperator(void)
+{
+       DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+       Application application = Application::New( &gArgc, &gArgv );
+       CHECK_OPEN_GL(SUITE_NAME,__LINE__)
+       Application_TestApp testApp( application, APPLICATION_ASSIGNMENT_OPERATOR);
+       application.MainLoop(); 
+    return test_return_value;
+}
+
+//& purpose: Check if copy constructor work correctly or not
+//& type: auto
+/**
+* @testcase                    ITcApplicationCopyConstructor
+* @since_tizen          2.4
+* @type                                Positive
+* @description                 Check if copy constructor work correctly or not.
+* @scenario                            Create an application object \n
+*                       Create another application object with that previously created application object using copy constructor\n
+*                                              Check both object is equal
+* @apicovered                  Application::Application(const Application& application)
+* @passcase             if copy constructor work correctly.
+* @failcase                            if copy constructor do not work correctly.
+* @precondition                        NA
+* @postcondition               NA
+*/
+
+int ITcApplicationCopyConstructor(void)
+{
+       DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+       Application application = Application::New( &gArgc, &gArgv );
+       CHECK_OPEN_GL(SUITE_NAME,__LINE__)
+       Application_TestApp testApp( application, APPLICATION_COPY_CONSTRUCTOR);
+       application.MainLoop(); 
+    return test_return_value;
+}
+
+//& purpose: Check if function passed in is called from the main loop when it is idle. 
+//& type: auto
+/**
+* @testcase                    ITcApplicationAddIdle
+* @since_tizen          2.4
+* @type                                Positive
+* @description                 Check if function passed in is called from the main loop when it is idle.
+* @scenario                            Create an application object \n
+*                                              A function is passed to AddIdle and check that the function is called when application is in idle mode.
+* @apicovered                  Application::AddIdle(CallbackBase* callback)
+* @passcase             if function is called when application is in idle mode.
+* @failcase                            if function is not called when application is in idle mode.
+* @precondition                        NA
+* @postcondition               NA
+*/
+
+int ITcApplicationAddIdle(void)
+{
+       DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+       Application application = Application::New( &gArgc, &gArgv );
+       CHECK_OPEN_GL(SUITE_NAME,__LINE__)
+       Application_TestApp testApp( application, APPLICATION_ADDIDLE);
+       application.MainLoop(); 
+    return test_return_value;
+}
+/** @} */ // end of itc-application-testcases  
+/** @} */ // end of itc-application    
+/** @} */ // end of itc-dali-adaptor
diff --git a/src/itc/dali-adaptor/key-grab/ITs-key-grab-common.cpp b/src/itc/dali-adaptor/key-grab/ITs-key-grab-common.cpp
new file mode 100644 (file)
index 0000000..b6f41ac
--- /dev/null
@@ -0,0 +1,18 @@
+#include "ITs-key-grab-common.h"
+
+/** @addtogroup itc-dali-adaptor
+ *  @ingroup itc
+ *  @{
+ */
+
+
+/** @addtogroup itc-key-grab
+ *  @brief Integrated testcases and testcase helper function, callbacks for suite key-grab 
+ *  @ingroup itc-dali-adaptor
+ *  @{
+ */
+
+//Add helper function definitions here
+
+/** @} */ // end of itc-key-grab
+/** @} */ // end of itc-dali-adaptor
diff --git a/src/itc/dali-adaptor/key-grab/ITs-key-grab-common.h b/src/itc/dali-adaptor/key-grab/ITs-key-grab-common.h
new file mode 100644 (file)
index 0000000..0c3d395
--- /dev/null
@@ -0,0 +1,32 @@
+#ifndef _ITS_KEY_GRAB_COMMON_H_
+#define _ITS_KEY_GRAB_COMMON_H_
+
+#include "dali-common.h"
+
+#include "dali-common.h"
+#include <dali/public-api/adaptor-framework/key-grab.h>
+#include <dali/dali.h>
+#include <dali-toolkit/dali-toolkit.h>
+
+using namespace std;
+using namespace Dali;
+using namespace Toolkit;
+
+/** @addtogroup itc-dali-adaptor
+ *  @ingroup itc
+ *  @{
+ */
+
+/** @addtogroup itc-key-grab
+ *  @brief Integrated testcases and testcase helper function, callbacks for suite key-grab
+ *  @ingroup itc-dali-adaptor
+ *  @{
+ */
+
+#define SUITE_NAME                                                     "KEY_GRAB_ITC"
+
+
+/** @} */ // end of itc-key-grab
+/** @} */ // end of itc-dali-adaptor
+
+#endif  //_ITS_KEY_GRAB_COMMON_H_
diff --git a/src/itc/dali-adaptor/key-grab/ITs-key-grab.cpp b/src/itc/dali-adaptor/key-grab/ITs-key-grab.cpp
new file mode 100644 (file)
index 0000000..e606890
--- /dev/null
@@ -0,0 +1,332 @@
+#include "ITs-key-grab-common.h"
+#define KEY_COUNT 42
+#define KEY_MODE_COUNT 4
+
+/** @addtogroup itc-dali-adaptor
+*      @brief Integrated testsuites for module dali-adaptor
+*      @ingroup itc
+*      @{ 
+*/
+
+/** @addtogroup itc-window
+*      @brief Integrated testcases and testcase helper function, callbacks for suite key-grab
+*      @ingroup itc-dali-adaptor
+*      @{ 
+*/
+
+extern int gArgc;
+extern char ** gArgv;
+extern int test_return_value;
+
+struct KeyGrapModeTest
+{
+       std::string ModeName;
+       KeyGrab::KeyGrabMode Mode;
+};
+struct KeyGrapTest
+{
+       std::string KeyName;
+       KEY Key;
+};
+
+void KeyGrabGrabKey();
+void KeyGrabUngrabKey();
+void KeyGrabGrabKeyTopmost();
+void KeyGrabUngrabKeyTopmost();
+
+Window gWindow;
+
+KeyGrapModeTest daliKeyGrabModes[KEY_MODE_COUNT]
+{
+       {"KeyGrab::TOPMOST",KeyGrab::TOPMOST},
+       {"KeyGrab::SHARED",KeyGrab::SHARED},
+       {"KeyGrab::OVERRIDE_EXCLUSIVE",KeyGrab::OVERRIDE_EXCLUSIVE},
+       {"KeyGrab::EXCLUSIVE",KeyGrab::EXCLUSIVE}
+};
+
+KeyGrapTest daliKeys[KEY_COUNT] 
+{
+       {"DALI_KEY_INVALID",DALI_KEY_INVALID},
+       {"DALI_KEY_ESCAPE",DALI_KEY_ESCAPE},
+       {"DALI_KEY_BACKSPACE",DALI_KEY_BACKSPACE},
+       {"DALI_KEY_SHIFT_LEFT",DALI_KEY_SHIFT_LEFT},
+       {"DALI_KEY_SHIFT_RIGHT",DALI_KEY_SHIFT_RIGHT},
+       {"DALI_KEY_CURSOR_UP",DALI_KEY_CURSOR_UP},
+       {"DALI_KEY_CURSOR_LEFT",DALI_KEY_CURSOR_LEFT},
+       {"DALI_KEY_CURSOR_RIGHT",DALI_KEY_CURSOR_RIGHT},
+       {"DALI_KEY_CURSOR_DOWN",DALI_KEY_CURSOR_DOWN},
+       {"DALI_KEY_BACK",DALI_KEY_BACK},
+       {"DALI_KEY_CAMERA",DALI_KEY_CAMERA},
+       {"DALI_KEY_CONFIG",DALI_KEY_CONFIG},
+       {"DALI_KEY_POWER",DALI_KEY_POWER},
+       {"DALI_KEY_PAUSE",DALI_KEY_PAUSE},
+       {"DALI_KEY_CANCEL",DALI_KEY_CANCEL},
+       {"DALI_KEY_PLAY_CD",DALI_KEY_PLAY_CD},
+       {"DALI_KEY_STOP_CD",DALI_KEY_STOP_CD},
+       {"DALI_KEY_PAUSE_CD",DALI_KEY_PAUSE_CD},
+       {"DALI_KEY_NEXT_SONG",DALI_KEY_NEXT_SONG},
+       {"DALI_KEY_PREVIOUS_SONG",DALI_KEY_PREVIOUS_SONG},
+       {"DALI_KEY_REWIND",DALI_KEY_REWIND},
+       {"DALI_KEY_FASTFORWARD",DALI_KEY_FASTFORWARD},
+       {"DALI_KEY_MEDIA",DALI_KEY_MEDIA},
+       {"DALI_KEY_PLAY_PAUSE",DALI_KEY_PLAY_PAUSE},
+       {"DALI_KEY_MUTE",DALI_KEY_MUTE},
+       {"DALI_KEY_MENU",DALI_KEY_MENU},
+       {"DALI_KEY_HOME",DALI_KEY_HOME},
+       {"DALI_KEY_HOMEPAGE",DALI_KEY_HOMEPAGE},
+       {"DALI_KEY_WEBPAGE",DALI_KEY_WEBPAGE},
+       {"DALI_KEY_MAIL",DALI_KEY_MAIL},
+       {"DALI_KEY_SCREENSAVER",DALI_KEY_SCREENSAVER},
+       {"DALI_KEY_BRIGHTNESS_UP",DALI_KEY_BRIGHTNESS_UP},
+       {"DALI_KEY_BRIGHTNESS_DOWN",DALI_KEY_BRIGHTNESS_DOWN},
+       {"DALI_KEY_SOFT_KBD",DALI_KEY_SOFT_KBD},
+       {"DALI_KEY_QUICK_PANEL",DALI_KEY_QUICK_PANEL},
+       {"DALI_KEY_TASK_SWITCH",DALI_KEY_TASK_SWITCH},
+       {"DALI_KEY_APPS",DALI_KEY_APPS},
+       {"DALI_KEY_SEARCH",DALI_KEY_SEARCH},
+       {"DALI_KEY_VOICE",DALI_KEY_VOICE},
+       {"DALI_KEY_LANGUAGE",DALI_KEY_LANGUAGE},
+       {"DALI_KEY_VOLUME_UP",DALI_KEY_VOLUME_UP},
+       {"DALI_KEY_VOLUME_DOWN",DALI_KEY_VOLUME_DOWN}
+};
+
+void ITs_key_grab_startup(void)
+{
+       test_return_value=0;
+}
+
+void ITs_key_grab_cleanup(void)
+{
+}
+
+/** @addtogroup itc-key-grab-testcases
+ *  @brief Integrated testcases for suite key-grab
+ *  @ingroup itc-key-grab
+ *  @{
+ */
+
+namespace
+{
+       enum TEST_CASES_LIST_KEY_GRAB
+       {
+               KEY_GRAB_GRABKEY,
+               KEY_GRAB_UNGRABKEY,
+               KEY_GRAB_GRABKEYTOPMOST,
+               KEY_GRAB_UNGRABKEYTOPMOST
+       };
+
+       struct KeyGrab_TestApp : public ConnectionTracker
+       {
+         KeyGrab_TestApp( Application& app, int test_case )
+         : mApplication( app ),
+               mTestCase( test_case )
+         {
+               mApplication.InitSignal().Connect( this, &KeyGrab_TestApp::OnInit );
+         }
+
+         void OnInit(Application& app)
+         {
+                 gWindow = app.GetWindow();
+                 mTimer = Timer::New( INTERVAL );
+                 mTimer.TickSignal().Connect( this, &KeyGrab_TestApp::Tick );
+                 mTimer.Start();
+         }
+
+         bool Tick()
+         {             
+                       mTimer.Stop();
+                       ExcuteTest();
+                       mApplication.Quit();    
+                       return true;
+         }
+
+         void ExcuteTest()
+         {
+                 switch (mTestCase)
+                 {
+                         case KEY_GRAB_GRABKEY:
+                         KeyGrabGrabKey();
+                         break;
+                         
+                         case KEY_GRAB_UNGRABKEY:
+                         KeyGrabUngrabKey();
+                         break;
+                         
+                         case KEY_GRAB_GRABKEYTOPMOST:
+                         KeyGrabGrabKeyTopmost();
+                         break;
+                         
+                         case KEY_GRAB_UNGRABKEYTOPMOST:
+                         KeyGrabUngrabKeyTopmost();
+                         break;
+                 }
+         }
+
+               // Data
+               Application& mApplication;
+               int mTestCase;
+               Timer mTimer;
+       };
+
+} // unnamed namespace
+
+
+/**
+ * ##############################
+ * TC Logic Implementation Area.
+ * ##############################
+ **/
+
+void KeyGrabGrabKey()
+{      
+       for ( std::size_t keyIndex = 0; keyIndex < KEY_COUNT; ++keyIndex )
+    {
+               for ( std::size_t modeIndex = 0; modeIndex < KEY_MODE_COUNT; ++modeIndex )
+               {
+                       DALI_CHECK_FAIL( KeyGrab::GrabKey( gWindow, daliKeys[keyIndex].Key, daliKeyGrabModes[modeIndex].Mode ), "KeyGrab::GrabKey() is failed for Key=" +daliKeys[keyIndex].KeyName +" Mode="+ daliKeyGrabModes[modeIndex].ModeName );
+               }
+       }
+       DaliLog::PrintPass();
+}
+
+void KeyGrabUngrabKey()
+{      
+       for ( std::size_t keyIndex = 0; keyIndex < KEY_COUNT; ++keyIndex )
+    {
+               for ( std::size_t modeIndex = 0; modeIndex < KEY_MODE_COUNT; ++modeIndex )
+               {
+                       DALI_CHECK_FAIL( KeyGrab::GrabKey( gWindow, daliKeys[keyIndex].Key, daliKeyGrabModes[modeIndex].Mode ), "KeyGrab::GrabKey() is failed for Key=" +daliKeys[keyIndex].KeyName +" Mode=" +daliKeyGrabModes[modeIndex].ModeName );
+                       DALI_CHECK_FAIL( KeyGrab::UngrabKey( gWindow, daliKeys[keyIndex].Key ), "KeyGrab::UngrabKey() is failed for Key=" +daliKeys[keyIndex].KeyName );
+               }
+    }
+       DaliLog::PrintPass();
+}
+
+void KeyGrabGrabKeyTopmost()
+{      
+       for ( std::size_t keyIndex = 0; keyIndex < KEY_COUNT; ++keyIndex )
+    {
+               //LOG_I("KeyGrabGrabKeyTopmost");
+               DALI_CHECK_FAIL( KeyGrab::GrabKeyTopmost( gWindow, daliKeys[keyIndex].Key ), "KeyGrab::GrabKeyTopmost() is failed for Key="+ daliKeys[keyIndex].KeyName );
+    }
+       DaliLog::PrintPass();
+}
+
+void KeyGrabUngrabKeyTopmost()
+{      
+       for ( std::size_t keyIndex = 0; keyIndex < KEY_COUNT; ++keyIndex )
+    {
+               //LOG_I("KeyGrabUngrabKeyTopmost");
+               DALI_CHECK_FAIL( KeyGrab::GrabKeyTopmost( gWindow, daliKeys[keyIndex].Key ), "KeyGrab::GrabKeyTopmost() is failed for Key=" +daliKeys[keyIndex].KeyName );
+               DALI_CHECK_FAIL( KeyGrab::UngrabKeyTopmost( gWindow, daliKeys[keyIndex].Key ), "KeyGrab::UngrabKeyTopmost is failed for Key=" +daliKeys[keyIndex].KeyName );
+    }
+       DaliLog::PrintPass();
+}
+
+ /**
+ * End of TC Logic Implementation Area.
+ **/
+
+//& purpose: Grabs the key specfied by key for window only when window is the topmost window.
+//& type: auto
+/**
+* @testcase                            ITcKeyGrabGrabKey
+* @since_tizen                         2.4
+* @type                                        Positive
+* @description                         Grabs the key specfied by key for window only when window is the topmost window.
+* @scenario                                    Check return of GrabKey using window, dali key and key grab mode.\n
+* @apicovered                      GrabKey( Window  window,Dali::KEY daliKey, KeyGrabMode grabMode), \n
+* @passcase                            If return of GrabKey is true for those arguments.\n
+* @failcase                            If return of GrabKey is false for those arguments.\n
+* @precondition                        NA
+* @postcondition                   NA
+*/
+int ITcKeyGrabGrabKey(void)
+{      
+       DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+
+       Application application = Application::New( &gArgc, &gArgv );
+       KeyGrab_TestApp testApp( application, KEY_GRAB_GRABKEY);
+       application.MainLoop();
+
+    return test_return_value;
+}
+
+//& purpose: Ungrabs the key specfied by key for window.
+//& type: auto
+/**
+* @testcase                            ITcKeyGrabUngrabKey
+* @since_tizen                         2.4
+* @type                                        Positive
+* @description                         Ungrabs the key specfied by key for window.
+* @scenario                                    Check return of UngrabKey using window, dali key.\n
+* @apicovered                      UngrabKey( Window  window,Dali::KEY daliKey), \n
+* @passcase                            If return of UngrabKey is true for those arguments.\n
+* @failcase                            If return of UngrabKey is false for those arguments.\n
+* @precondition                        NA
+* @postcondition                   NA
+*/
+int ITcKeyGrabUngrabKey(void)
+{      
+       DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+
+       Application application = Application::New( &gArgc, &gArgv );
+       KeyGrab_TestApp testApp( application, KEY_GRAB_UNGRABKEY);
+       application.MainLoop();
+
+    return test_return_value;
+}
+
+//& purpose: Grabs the key specfied by key for window only when window is the topmost window.
+//& type: auto
+/**
+* @testcase                            ITcKeyGrabGrabKeyTopmost
+* @since_tizen                         2.4
+* @type                                        Positive
+* @description                         Grabs the key specfied by key for window only when window is the topmost window. 
+* @scenario                                    Check return of GrabKeyTopmost using window, dali key.\n
+* @apicovered                      GrabKeyTopmost( Window  window,Dali::KEY daliKey), \n
+* @passcase                            If return of GrabKeyTopmost is true for those arguments.\n
+* @failcase                            If return of GrabKeyTopmost is false for those arguments.\n
+* @precondition                        NA
+* @postcondition                   NA
+*/
+int ITcKeyGrabGrabKeyTopmost(void)
+{      
+       DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+
+       Application application = Application::New( &gArgc, &gArgv );
+       KeyGrab_TestApp testApp( application, KEY_GRAB_GRABKEYTOPMOST);
+       application.MainLoop();
+
+    return test_return_value;
+}
+
+//& purpose: Ungrabs the key specfied by key for window.
+//& type: auto
+/**
+* @testcase                            ITcKeyGrabUngrabKeyTopmost
+* @since_tizen                         2.4
+* @type                                        Positive
+* @description                         Ungrabs the key specfied by key for window. 
+* @scenario                                    Check return of UngrabKeyTopmost using window, dali key.\n
+* @apicovered                      UngrabKeyTopmost( Window  window,Dali::KEY daliKey), \n
+* @passcase                            If return of UngrabKeyTopmost is true for those arguments.\n
+* @failcase                            If return of UngrabKeyTopmost is false for those arguments.\n
+* @precondition                        NA
+* @postcondition                   NA
+*/
+int ITcKeyGrabUngrabKeyTopmost(void)
+{      
+       DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+
+       Application application = Application::New( &gArgc, &gArgv );
+       KeyGrab_TestApp testApp( application, KEY_GRAB_UNGRABKEYTOPMOST);
+       application.MainLoop();
+
+    return test_return_value;
+}
+
+/** @} */ // end of itc-key-grab-testcase
+/** @} */ // end of itc-key-grab
+/** @} */ // end of itc-dali-adaptor
index a31291f..c52a299 100755 (executable)
 #include "testcase.h"
 #include "tct_common.h"
 
+extern void ITs_application_startup(void);
+extern void ITs_application_cleanup(void);
+extern void ITs_key_grab_startup(void);
+extern void ITs_key_grab_cleanup(void);
 extern void ITs_native_image_source_startup(void);
 extern void ITs_native_image_source_cleanup(void);
 extern void ITs_timer_startup(void);
@@ -26,6 +30,18 @@ extern void ITs_timer_cleanup(void);
 extern void ITs_window_startup(void);
 extern void ITs_window_cleanup(void);
 
+extern int ITcApplicationLower(void);
+extern int ITcApplicationSetGetStereoBase(void);
+extern int ITcApplicationSetGetViewMode(void);
+//~ extern int ITcApplicationResetSignal(void);
+extern int ITcApplicationReplaceWindow(void);
+extern int ITcApplicationAssignmentOperator(void);
+extern int ITcApplicationCopyConstructor(void);
+extern int ITcApplicationAddIdle(void);
+extern int ITcKeyGrabGrabKey(void);
+extern int ITcKeyGrabUngrabKey(void);
+extern int ITcKeyGrabGrabKeyTopmost(void);
+extern int ITcKeyGrabUngrabKeyTopmost(void);
 extern int ITcNativeImageSourceColorDepthDefault(void);
 extern int ITcNativeImageSourceColorDepth24(void);
 extern int ITcNativeImageSourceColorDepth32(void);
@@ -44,6 +60,18 @@ extern int ITcWindowSetClassSetIndicatorBgOpacity(void);
 extern int ITcWindowShowRotateIndicator(void);
 
 testcase tc_array[] = {
+       {"ITcApplicationLower", ITcApplicationLower, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationSetGetStereoBase", ITcApplicationSetGetStereoBase, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationSetGetViewMode", ITcApplicationSetGetViewMode, ITs_application_startup, ITs_application_cleanup},
+       //~ {"ITcApplicationResetSignal", ITcApplicationResetSignal, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationReplaceWindow", ITcApplicationReplaceWindow, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationAssignmentOperator", ITcApplicationAssignmentOperator, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationCopyConstructor", ITcApplicationCopyConstructor, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationAddIdle", ITcApplicationAddIdle, ITs_application_startup, ITs_application_cleanup},
+       {"ITcKeyGrabGrabKey", ITcKeyGrabGrabKey, ITs_key_grab_startup, ITs_key_grab_cleanup},
+    {"ITcKeyGrabUngrabKey", ITcKeyGrabUngrabKey, ITs_key_grab_startup, ITs_key_grab_cleanup},
+    {"ITcKeyGrabGrabKeyTopmost", ITcKeyGrabGrabKeyTopmost, ITs_key_grab_startup, ITs_key_grab_cleanup},
+    {"ITcKeyGrabUngrabKeyTopmost", ITcKeyGrabUngrabKeyTopmost, ITs_key_grab_startup, ITs_key_grab_cleanup},
     {"ITcNativeImageSourceColorDepthDefault", ITcNativeImageSourceColorDepthDefault, ITs_native_image_source_startup, ITs_native_image_source_cleanup},
     {"ITcNativeImageSourceColorDepth24", ITcNativeImageSourceColorDepth24, ITs_native_image_source_startup, ITs_native_image_source_cleanup},
     {"ITcNativeImageSourceColorDepth32", ITcNativeImageSourceColorDepth32, ITs_native_image_source_startup, ITs_native_image_source_cleanup},
index a31291f..c52a299 100755 (executable)
 #include "testcase.h"
 #include "tct_common.h"
 
+extern void ITs_application_startup(void);
+extern void ITs_application_cleanup(void);
+extern void ITs_key_grab_startup(void);
+extern void ITs_key_grab_cleanup(void);
 extern void ITs_native_image_source_startup(void);
 extern void ITs_native_image_source_cleanup(void);
 extern void ITs_timer_startup(void);
@@ -26,6 +30,18 @@ extern void ITs_timer_cleanup(void);
 extern void ITs_window_startup(void);
 extern void ITs_window_cleanup(void);
 
+extern int ITcApplicationLower(void);
+extern int ITcApplicationSetGetStereoBase(void);
+extern int ITcApplicationSetGetViewMode(void);
+//~ extern int ITcApplicationResetSignal(void);
+extern int ITcApplicationReplaceWindow(void);
+extern int ITcApplicationAssignmentOperator(void);
+extern int ITcApplicationCopyConstructor(void);
+extern int ITcApplicationAddIdle(void);
+extern int ITcKeyGrabGrabKey(void);
+extern int ITcKeyGrabUngrabKey(void);
+extern int ITcKeyGrabGrabKeyTopmost(void);
+extern int ITcKeyGrabUngrabKeyTopmost(void);
 extern int ITcNativeImageSourceColorDepthDefault(void);
 extern int ITcNativeImageSourceColorDepth24(void);
 extern int ITcNativeImageSourceColorDepth32(void);
@@ -44,6 +60,18 @@ extern int ITcWindowSetClassSetIndicatorBgOpacity(void);
 extern int ITcWindowShowRotateIndicator(void);
 
 testcase tc_array[] = {
+       {"ITcApplicationLower", ITcApplicationLower, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationSetGetStereoBase", ITcApplicationSetGetStereoBase, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationSetGetViewMode", ITcApplicationSetGetViewMode, ITs_application_startup, ITs_application_cleanup},
+       //~ {"ITcApplicationResetSignal", ITcApplicationResetSignal, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationReplaceWindow", ITcApplicationReplaceWindow, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationAssignmentOperator", ITcApplicationAssignmentOperator, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationCopyConstructor", ITcApplicationCopyConstructor, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationAddIdle", ITcApplicationAddIdle, ITs_application_startup, ITs_application_cleanup},
+       {"ITcKeyGrabGrabKey", ITcKeyGrabGrabKey, ITs_key_grab_startup, ITs_key_grab_cleanup},
+    {"ITcKeyGrabUngrabKey", ITcKeyGrabUngrabKey, ITs_key_grab_startup, ITs_key_grab_cleanup},
+    {"ITcKeyGrabGrabKeyTopmost", ITcKeyGrabGrabKeyTopmost, ITs_key_grab_startup, ITs_key_grab_cleanup},
+    {"ITcKeyGrabUngrabKeyTopmost", ITcKeyGrabUngrabKeyTopmost, ITs_key_grab_startup, ITs_key_grab_cleanup},
     {"ITcNativeImageSourceColorDepthDefault", ITcNativeImageSourceColorDepthDefault, ITs_native_image_source_startup, ITs_native_image_source_cleanup},
     {"ITcNativeImageSourceColorDepth24", ITcNativeImageSourceColorDepth24, ITs_native_image_source_startup, ITs_native_image_source_cleanup},
     {"ITcNativeImageSourceColorDepth32", ITcNativeImageSourceColorDepth32, ITs_native_image_source_startup, ITs_native_image_source_cleanup},
index a31291f..c52a299 100755 (executable)
 #include "testcase.h"
 #include "tct_common.h"
 
+extern void ITs_application_startup(void);
+extern void ITs_application_cleanup(void);
+extern void ITs_key_grab_startup(void);
+extern void ITs_key_grab_cleanup(void);
 extern void ITs_native_image_source_startup(void);
 extern void ITs_native_image_source_cleanup(void);
 extern void ITs_timer_startup(void);
@@ -26,6 +30,18 @@ extern void ITs_timer_cleanup(void);
 extern void ITs_window_startup(void);
 extern void ITs_window_cleanup(void);
 
+extern int ITcApplicationLower(void);
+extern int ITcApplicationSetGetStereoBase(void);
+extern int ITcApplicationSetGetViewMode(void);
+//~ extern int ITcApplicationResetSignal(void);
+extern int ITcApplicationReplaceWindow(void);
+extern int ITcApplicationAssignmentOperator(void);
+extern int ITcApplicationCopyConstructor(void);
+extern int ITcApplicationAddIdle(void);
+extern int ITcKeyGrabGrabKey(void);
+extern int ITcKeyGrabUngrabKey(void);
+extern int ITcKeyGrabGrabKeyTopmost(void);
+extern int ITcKeyGrabUngrabKeyTopmost(void);
 extern int ITcNativeImageSourceColorDepthDefault(void);
 extern int ITcNativeImageSourceColorDepth24(void);
 extern int ITcNativeImageSourceColorDepth32(void);
@@ -44,6 +60,18 @@ extern int ITcWindowSetClassSetIndicatorBgOpacity(void);
 extern int ITcWindowShowRotateIndicator(void);
 
 testcase tc_array[] = {
+       {"ITcApplicationLower", ITcApplicationLower, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationSetGetStereoBase", ITcApplicationSetGetStereoBase, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationSetGetViewMode", ITcApplicationSetGetViewMode, ITs_application_startup, ITs_application_cleanup},
+       //~ {"ITcApplicationResetSignal", ITcApplicationResetSignal, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationReplaceWindow", ITcApplicationReplaceWindow, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationAssignmentOperator", ITcApplicationAssignmentOperator, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationCopyConstructor", ITcApplicationCopyConstructor, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationAddIdle", ITcApplicationAddIdle, ITs_application_startup, ITs_application_cleanup},
+       {"ITcKeyGrabGrabKey", ITcKeyGrabGrabKey, ITs_key_grab_startup, ITs_key_grab_cleanup},
+    {"ITcKeyGrabUngrabKey", ITcKeyGrabUngrabKey, ITs_key_grab_startup, ITs_key_grab_cleanup},
+    {"ITcKeyGrabGrabKeyTopmost", ITcKeyGrabGrabKeyTopmost, ITs_key_grab_startup, ITs_key_grab_cleanup},
+    {"ITcKeyGrabUngrabKeyTopmost", ITcKeyGrabUngrabKeyTopmost, ITs_key_grab_startup, ITs_key_grab_cleanup},
     {"ITcNativeImageSourceColorDepthDefault", ITcNativeImageSourceColorDepthDefault, ITs_native_image_source_startup, ITs_native_image_source_cleanup},
     {"ITcNativeImageSourceColorDepth24", ITcNativeImageSourceColorDepth24, ITs_native_image_source_startup, ITs_native_image_source_cleanup},
     {"ITcNativeImageSourceColorDepth32", ITcNativeImageSourceColorDepth32, ITs_native_image_source_startup, ITs_native_image_source_cleanup},
index a31291f..c52a299 100755 (executable)
 #include "testcase.h"
 #include "tct_common.h"
 
+extern void ITs_application_startup(void);
+extern void ITs_application_cleanup(void);
+extern void ITs_key_grab_startup(void);
+extern void ITs_key_grab_cleanup(void);
 extern void ITs_native_image_source_startup(void);
 extern void ITs_native_image_source_cleanup(void);
 extern void ITs_timer_startup(void);
@@ -26,6 +30,18 @@ extern void ITs_timer_cleanup(void);
 extern void ITs_window_startup(void);
 extern void ITs_window_cleanup(void);
 
+extern int ITcApplicationLower(void);
+extern int ITcApplicationSetGetStereoBase(void);
+extern int ITcApplicationSetGetViewMode(void);
+//~ extern int ITcApplicationResetSignal(void);
+extern int ITcApplicationReplaceWindow(void);
+extern int ITcApplicationAssignmentOperator(void);
+extern int ITcApplicationCopyConstructor(void);
+extern int ITcApplicationAddIdle(void);
+extern int ITcKeyGrabGrabKey(void);
+extern int ITcKeyGrabUngrabKey(void);
+extern int ITcKeyGrabGrabKeyTopmost(void);
+extern int ITcKeyGrabUngrabKeyTopmost(void);
 extern int ITcNativeImageSourceColorDepthDefault(void);
 extern int ITcNativeImageSourceColorDepth24(void);
 extern int ITcNativeImageSourceColorDepth32(void);
@@ -44,6 +60,18 @@ extern int ITcWindowSetClassSetIndicatorBgOpacity(void);
 extern int ITcWindowShowRotateIndicator(void);
 
 testcase tc_array[] = {
+       {"ITcApplicationLower", ITcApplicationLower, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationSetGetStereoBase", ITcApplicationSetGetStereoBase, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationSetGetViewMode", ITcApplicationSetGetViewMode, ITs_application_startup, ITs_application_cleanup},
+       //~ {"ITcApplicationResetSignal", ITcApplicationResetSignal, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationReplaceWindow", ITcApplicationReplaceWindow, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationAssignmentOperator", ITcApplicationAssignmentOperator, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationCopyConstructor", ITcApplicationCopyConstructor, ITs_application_startup, ITs_application_cleanup},
+       {"ITcApplicationAddIdle", ITcApplicationAddIdle, ITs_application_startup, ITs_application_cleanup},
+       {"ITcKeyGrabGrabKey", ITcKeyGrabGrabKey, ITs_key_grab_startup, ITs_key_grab_cleanup},
+    {"ITcKeyGrabUngrabKey", ITcKeyGrabUngrabKey, ITs_key_grab_startup, ITs_key_grab_cleanup},
+    {"ITcKeyGrabGrabKeyTopmost", ITcKeyGrabGrabKeyTopmost, ITs_key_grab_startup, ITs_key_grab_cleanup},
+    {"ITcKeyGrabUngrabKeyTopmost", ITcKeyGrabUngrabKeyTopmost, ITs_key_grab_startup, ITs_key_grab_cleanup},
     {"ITcNativeImageSourceColorDepthDefault", ITcNativeImageSourceColorDepthDefault, ITs_native_image_source_startup, ITs_native_image_source_cleanup},
     {"ITcNativeImageSourceColorDepth24", ITcNativeImageSourceColorDepth24, ITs_native_image_source_startup, ITs_native_image_source_cleanup},
     {"ITcNativeImageSourceColorDepth32", ITcNativeImageSourceColorDepth32, ITs_native_image_source_startup, ITs_native_image_source_cleanup},