[UTC][tzsh-quickpanel][Non-ACR][Fixed tc fails on wearable profile]
authorDoyoun Kang <doyoun.kang@samsung.com>
Wed, 7 Dec 2016 08:27:22 +0000 (17:27 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Wed, 7 Dec 2016 08:27:22 +0000 (17:27 +0900)
Change-Id: Ib01cd9bc244ea90d1f97782bd0f3271bb0be2134

src/utc/tzsh-quickpanel/utc-tzsh-quickpanel.c

index c40868c1063607a262ba90a0b11bccbc6ed0260f..ba2ff96270492a79573655cdc1d8c97491d2fcf9 100644 (file)
@@ -103,7 +103,6 @@ int utc_tzsh_create_n1(void)
 int utc_tzsh_create_p1(void)
 {
     tzsh_h tzsh = NULL;
-    int err_result = 0;
 
     tzsh = tzsh_create(TZSH_TOOLKIT_TYPE_UNKNOWN);
     assert_neq(tzsh, NULL);
@@ -324,7 +323,7 @@ int utc_tzsh_quickpanel_show_p1(void)
     assert_neq(qp, NULL);
 
     ret = tzsh_quickpanel_show(qp);
-#ifdef MOBILE
+#if (defined(MOBILE) || defined(WEARABLE))
     assert_eq(ret, TZSH_ERROR_NONE);
 #else
     assert_eq(ret, TZSH_ERROR_NO_SERVICE);
@@ -377,7 +376,7 @@ int utc_tzsh_quickpanel_hide_p1(void)
     assert_neq(qp, NULL);
 
     ret = tzsh_quickpanel_hide(qp);
-#ifdef MOBILE
+#if (defined(MOBILE) || defined(WEARABLE))
     assert_eq(ret, TZSH_ERROR_NONE);
 #else
     assert_eq(ret, TZSH_ERROR_NO_SERVICE);
@@ -486,7 +485,7 @@ int utc_tzsh_quickpanel_scrollable_get_p1(void)
     assert_eq(ret, TZSH_ERROR_NONE);
 
     ret = tzsh_quickpanel_scrollable_get(qp, &scrollable);
-#ifdef MOBILE
+#if (defined(MOBILE) || defined(WEARABLE))
     assert_eq(ret, TZSH_ERROR_NONE);
     assert_eq(scrollable, TZSH_QUICKPANEL_STATE_SCROLLABLE_SET);
 #else
@@ -527,7 +526,7 @@ int utc_tzsh_quickpanel_scrollable_get_p2(void)
     assert_eq(ret, TZSH_ERROR_NONE);
 
     ret = tzsh_quickpanel_scrollable_get(qp, &state);
-#ifdef MOBILE
+#if (defined(MOBILE) || defined(WEARABLE))
     assert_eq(ret, TZSH_ERROR_NONE);
     assert_eq(state, TZSH_QUICKPANEL_STATE_SCROLLABLE_UNSET);
 #else
@@ -598,7 +597,7 @@ int utc_tzsh_quickpanel_visible_get_p1(void)
     assert_neq(qp, NULL);
 
     ret = tzsh_quickpanel_visible_get(qp, &state);
-#ifdef MOBILE
+#if (defined(MOBILE) || defined(WEARABLE))
     assert_eq(ret, TZSH_ERROR_NONE);
     assert_eq(state, TZSH_QUICKPANEL_STATE_VISIBLE_HIDDEN);
 #else
@@ -636,7 +635,7 @@ int utc_tzsh_quickpanel_visible_get_p2(void)
     assert_neq(qp, NULL);
 
     ret = tzsh_quickpanel_show(qp);
-#ifdef MOBILE
+#if (defined(MOBILE) || defined(WEARABLE))
     assert_eq(ret, TZSH_ERROR_NONE);
 #else
     assert_eq(ret, TZSH_ERROR_NO_SERVICE);
@@ -644,7 +643,7 @@ int utc_tzsh_quickpanel_visible_get_p2(void)
     usleep(2000000);
 
     ret = tzsh_quickpanel_visible_get(qp, &state);
-#ifdef MOBILE
+#if (defined(MOBILE) || defined(WEARABLE))
     assert_eq(ret, TZSH_ERROR_NONE);
     assert_eq(state, TZSH_QUICKPANEL_STATE_VISIBLE_SHOWN);
 #else
@@ -701,7 +700,7 @@ int utc_tzsh_quickpanel_orientation_get_p1(void)
     assert_neq(qp, NULL);
 
     ret = tzsh_quickpanel_orientation_get(qp, &state);
-#ifdef MOBILE
+#if (defined(MOBILE) || defined(WEARABLE))
     assert_eq(ret, TZSH_ERROR_NONE);
     assert_eq(state, TZSH_QUICKPANEL_STATE_ORIENTATION_0);
 #else