[ITC][dali-adaptor][ACR-1385][Deprecate ReplaceWindow API in dali-adaptor] 90/205290/3
authormansankar <karanam.s@samsung.com>
Thu, 2 May 2019 04:48:18 +0000 (10:18 +0530)
committermanoj gupta <manoj.g2@samsung.com>
Fri, 3 May 2019 03:45:15 +0000 (03:45 +0000)
Change-Id: I858ee1ea5bd1421c8f616cbb499e1d94248a33e1
Signed-off-by: mansankar <karanam.s@samsung.com>
src/itc/dali-adaptor/application/ITs-application.cpp
src/itc/dali-adaptor/tct-dali-adaptor-native_mobile.h
src/itc/dali-adaptor/tct-dali-adaptor-native_tizeniot.h
src/itc/dali-adaptor/tct-dali-adaptor-native_wearable.h

index 03b33317c8fe6d869fd270d12f54a899a7abe73e..3a0cbace8196870a9e39a6da1c865f6528c96a45 100755 (executable)
@@ -43,7 +43,6 @@ void ITs_application_cleanup(void)
  */
 
 void ApplicationLower(Application& mApplication);
-void ApplicationReplaceWindow(Application& mApplication);
 void ApplicationAssignmentOperator(Application& mApplication);
 void ApplicationCopyConstructor(Application& mApplication);
 void ApplicationAddIdle();
@@ -60,7 +59,6 @@ namespace
        {
                APPLICATION_LOWER,
                APPLICATION_RESET_SIGNAL,
-               APPLICATION_REPLACE_WINDOW,
                APPLICATION_ASSIGNMENT_OPERATOR,
                APPLICATION_COPY_CONSTRUCTOR,
                APPLICATION_ADDIDLE,
@@ -148,9 +146,7 @@ namespace
            {
                switch( mTestCase )
                {
-              case APPLICATION_REPLACE_WINDOW:
-              ApplicationReplaceWindow(mApplication);
-              break;
+
                }
            }
 
@@ -205,16 +201,6 @@ void ApplicationLower(Application& mApplication)
        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;
@@ -349,33 +335,6 @@ int ITcApplicationLower(void)
     //~ 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
 /**
index 33aeb93af35640d0f2c65e292ecf772ef167ee8c..9ca1e7ca45f75dc24eb40cc6983aaf5746ed4eec 100755 (executable)
@@ -31,7 +31,6 @@ extern void ITs_window_startup(void);
 extern void ITs_window_cleanup(void);
 
 extern int ITcApplicationLower(void);
-extern int ITcApplicationReplaceWindow(void);
 extern int ITcApplicationAssignmentOperator(void);
 extern int ITcApplicationCopyConstructor(void);
 extern int ITcApplicationAddIdle(void);
@@ -76,7 +75,6 @@ extern int ITcTimerPauseResume(void);
 
 testcase tc_array[] = {
        {"ITcApplicationLower",ITcApplicationLower,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},
index 33aeb93af35640d0f2c65e292ecf772ef167ee8c..9ca1e7ca45f75dc24eb40cc6983aaf5746ed4eec 100755 (executable)
@@ -31,7 +31,6 @@ extern void ITs_window_startup(void);
 extern void ITs_window_cleanup(void);
 
 extern int ITcApplicationLower(void);
-extern int ITcApplicationReplaceWindow(void);
 extern int ITcApplicationAssignmentOperator(void);
 extern int ITcApplicationCopyConstructor(void);
 extern int ITcApplicationAddIdle(void);
@@ -76,7 +75,6 @@ extern int ITcTimerPauseResume(void);
 
 testcase tc_array[] = {
        {"ITcApplicationLower",ITcApplicationLower,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},
index d30a34c7f40037907b6ed041889fba2798800990..ce1cc77465653a44d0690793fff830a6a4959f39 100755 (executable)
@@ -33,7 +33,6 @@ extern void ITs_window_startup(void);
 extern void ITs_window_cleanup(void);
 
 extern int ITcApplicationLower(void);
-extern int ITcApplicationReplaceWindow(void);
 extern int ITcApplicationAssignmentOperator(void);
 extern int ITcApplicationCopyConstructor(void);
 extern int ITcApplicationAddIdle(void);
@@ -86,7 +85,6 @@ extern int ITcTimerPauseResume(void);
 
 testcase tc_array[] = {
        {"ITcApplicationLower",ITcApplicationLower,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},