BufferImage Usage Removal
[platform/core/uifw/dali-adaptor.git] / automated-tests / src / dali-adaptor-internal / utc-Dali-CommandLineOptions.cpp
index 4531017..f9a9404 100644 (file)
@@ -20,7 +20,7 @@
 #include <stdlib.h>
 #include <getopt.h>
 #include <dali/dali.h>
-#include <command-line-options.h>
+#include <dali/internal/system/common/command-line-options.h>
 #include <dali-test-suite-utils.h>
 
 using namespace Dali;
@@ -31,7 +31,7 @@ using namespace Dali::Internal::Adaptor;
 void command_line_options_startup(void)
 {
   test_return_value = TET_UNDEF;
-  optind = 1; // Reset opt for test
+  optind = 0; // Reset opt for test
 }
 
 // Called only once after last test is run
@@ -42,7 +42,7 @@ void command_line_options_cleanup(void)
 
 int UtcDaliCommandLineOptionsNoArgs(void)
 {
-  optind=1;
+  optind=0;
 
   int argc( 1 );
   const char* argList[1] = { "program" };
@@ -53,7 +53,6 @@ int UtcDaliCommandLineOptionsNoArgs(void)
   DALI_TEST_EQUALS( argc, 1, TEST_LOCATION );
 
   // Check values
-  DALI_TEST_EQUALS( options.noVSyncOnRender, 0, TEST_LOCATION );
   DALI_TEST_EQUALS( options.stageWidth, 0, TEST_LOCATION );
   DALI_TEST_EQUALS( options.stageHeight, 0, TEST_LOCATION );
   DALI_TEST_EQUALS( options.stageDPI, "", TEST_LOCATION );
@@ -63,7 +62,7 @@ int UtcDaliCommandLineOptionsNoArgs(void)
 
 int UtcDaliCommandLineOptionsDaliShortArgs(void)
 {
-  optind=1;
+  optind=0;
 
   const char* argList[] =
   {
@@ -81,7 +80,6 @@ int UtcDaliCommandLineOptionsDaliShortArgs(void)
   DALI_TEST_EQUALS( argc, 1, TEST_LOCATION );
 
   // Check values
-  DALI_TEST_EQUALS( options.noVSyncOnRender, 0, TEST_LOCATION );
   DALI_TEST_EQUALS( options.stageWidth, 800, TEST_LOCATION );
   DALI_TEST_EQUALS( options.stageHeight, 1000, TEST_LOCATION );
   DALI_TEST_EQUALS( options.stageDPI, "4x5", TEST_LOCATION );
@@ -91,7 +89,7 @@ int UtcDaliCommandLineOptionsDaliShortArgs(void)
 
 int UtcDaliCommandLineOptionsDaliLongArgsEqualsSign(void)
 {
-  optind=1;
+  optind=0;
 
   const char* argList[] =
   {
@@ -99,7 +97,6 @@ int UtcDaliCommandLineOptionsDaliLongArgsEqualsSign(void)
       "--width=800",
       "--height=1000",
       "--dpi=3x4",
-      "--no-vsync",
       "--help"
   };
   int argc( sizeof( argList ) / sizeof( argList[0] ) );
@@ -111,7 +108,6 @@ int UtcDaliCommandLineOptionsDaliLongArgsEqualsSign(void)
   DALI_TEST_EQUALS( argc, 1, TEST_LOCATION );
 
   // Check values
-  DALI_TEST_EQUALS( options.noVSyncOnRender, 1, TEST_LOCATION );
   DALI_TEST_EQUALS( options.stageWidth, 800, TEST_LOCATION );
   DALI_TEST_EQUALS( options.stageHeight, 1000, TEST_LOCATION );
   DALI_TEST_EQUALS( options.stageDPI, "3x4", TEST_LOCATION );
@@ -121,7 +117,7 @@ int UtcDaliCommandLineOptionsDaliLongArgsEqualsSign(void)
 
 int UtcDaliCommandLineOptionsDaliLongArgsSpaces(void)
 {
-  optind=1;
+  optind=0;
 
   const char* argList[] =
   {
@@ -129,7 +125,6 @@ int UtcDaliCommandLineOptionsDaliLongArgsSpaces(void)
       "--width", "800",
       "--height", "1000",
       "--dpi", "3x4",
-      "--no-vsync",
       "--help"
   };
   int argc( sizeof( argList ) / sizeof( argList[0] ) );
@@ -141,7 +136,6 @@ int UtcDaliCommandLineOptionsDaliLongArgsSpaces(void)
   DALI_TEST_EQUALS( argc, 1, TEST_LOCATION );
 
   // Check values
-  DALI_TEST_EQUALS( options.noVSyncOnRender, 1, TEST_LOCATION );
   DALI_TEST_EQUALS( options.stageWidth, 800, TEST_LOCATION );
   DALI_TEST_EQUALS( options.stageHeight, 1000, TEST_LOCATION );
   DALI_TEST_EQUALS( options.stageDPI, "3x4", TEST_LOCATION );
@@ -151,7 +145,7 @@ int UtcDaliCommandLineOptionsDaliLongArgsSpaces(void)
 
 int UtcDaliCommandLineOptionsNonDaliArgs(void)
 {
-  optind=1;
+  optind=0;
 
   const char* argList[] =
   {
@@ -178,7 +172,7 @@ int UtcDaliCommandLineOptionsNonDaliArgs(void)
 
 int UtcDaliCommandLineOptionsMixture(void)
 {
-  optind = 1; // Reset opt for test
+  optind = 0; // Reset opt for test
 
   const char* argList[] =
   {
@@ -209,7 +203,7 @@ int UtcDaliCommandLineOptionsMixture(void)
 
 int UtcDaliCommandLineOptionsMixtureDaliOpsAtStart(void)
 {
-  optind=1;
+  optind=0;
 
   const char* argList[] =
   {
@@ -240,7 +234,7 @@ int UtcDaliCommandLineOptionsMixtureDaliOpsAtStart(void)
 
 int UtcDaliCommandLineOptionsMixtureDaliOpsAtEnd(void)
 {
-  optind=1;
+  optind=0;
 
   const char* argList[] =
   {