Add mode id for plugin test accepted/tizen/unified/20200617.055853 submit/tizen/20200615.073011 submit/tizen/20200616.105347
authorJinWang An <jinwang.an@samsung.com>
Mon, 15 Jun 2020 04:05:36 +0000 (13:05 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Mon, 15 Jun 2020 07:25:36 +0000 (16:25 +0900)
Change-Id: I55222d20d66f39a0a01eeb23de874c491c1a02ca

tests/mdsp_test_bt.cpp
tests/mdsp_test_integration.cpp
tests/mode/tizen_Power-Save_mode.xml
tests/mode/tizen_Quick-Panel_mode.xml
tests/mode/tizen_Water-Lock_mode.xml
tests/mode/tizen_appLaunch_mode.xml
tests/mode/tizen_btAudioConnect_mode.xml
tests/mode/tizen_btOff_mode.xml
tests/mode/tizen_btOn_mode.xml
tests/mode/tizen_displayBlock_mode.xml
tests/mode/tizen_wifi-on_mode.xml

index 4fc5d24..5672f38 100644 (file)
@@ -75,14 +75,14 @@ modes_h BtPluginTest::handle = NULL;
 
 TEST_F(BtPluginTest, undoModebtOff)
 {
-       g_idle_add(undo_mode_idler, (gpointer)"btOff");
+       g_idle_add(undo_mode_idler, (gpointer)"http://tizen.org/mode/example.btOff");
        g_main_loop_run(loop);
        EXPECT_EQ(MODES_ERROR_NONE, result);
 }
 
 TEST_F(BtPluginTest, undoModebtOn)
 {
-       g_idle_add(undo_mode_idler, (gpointer)"btOn");
+       g_idle_add(undo_mode_idler, (gpointer)"http://tizen.org/mode/example.btOn");
        g_main_loop_run(loop);
        EXPECT_EQ(MODES_ERROR_NONE, result);
 }
@@ -90,7 +90,7 @@ TEST_F(BtPluginTest, undoModebtOn)
 // btAudioConnect does not support undo mode
 TEST_F(BtPluginTest, btAudioConnect)
 {
-       g_idle_add(apply_mode_idler, (gpointer)"btAudioConnect");
+       g_idle_add(apply_mode_idler, (gpointer)"http://tizen.org/mode/example.btAudioConnect");
        g_main_loop_run(loop);
        EXPECT_EQ(MODES_ERROR_NONE, result);
 }
index 825ad59..6427a5a 100644 (file)
@@ -56,49 +56,49 @@ modes_h IntegrationTest::handle = NULL;
 
 TEST_F(IntegrationTest, runMode_btAudioConnect)
 {
-       g_idle_add(check_mode_idler, (gpointer)"btAudioConnect");
+       g_idle_add(check_mode_idler, (gpointer)"http://tizen.org/mode/example.btAudioConnect");
        g_main_loop_run(loop);
        EXPECT_EQ(MODES_ERROR_NONE, result);
 }
 
 TEST_F(IntegrationTest, runMode_btOff)
 {
-       g_idle_add(check_mode_idler, (gpointer)"btOff");
+       g_idle_add(check_mode_idler, (gpointer)"http://tizen.org/mode/example.btOff");
        g_main_loop_run(loop);
        EXPECT_EQ(MODES_ERROR_NONE, result);
 }
 
 TEST_F(IntegrationTest, runMode_btOn)
 {
-       g_idle_add(check_mode_idler, (gpointer)"btOn");
+       g_idle_add(check_mode_idler, (gpointer)"http://tizen.org/mode/example.btOn");
        g_main_loop_run(loop);
        EXPECT_EQ(MODES_ERROR_NONE, result);
 }
 
 TEST_F(IntegrationTest, runMode_powerSave)
 {
-       g_idle_add(check_mode_idler, (gpointer)"Power-Save");
+       g_idle_add(check_mode_idler, (gpointer)"http://tizen.org/mode/example.Power-Save");
        g_main_loop_run(loop);
        EXPECT_EQ(MODES_ERROR_NONE, result);
 }
 
 TEST_F(IntegrationTest, runMode_displayBlock)
 {
-       g_idle_add(check_mode_idler, (gpointer)"displayBlock");
+       g_idle_add(check_mode_idler, (gpointer)"http://tizen.org/mode/example.displayBlock");
        g_main_loop_run(loop);
        EXPECT_EQ(MODES_ERROR_NONE, result);
 }
 
 TEST_F(IntegrationTest, runMode_wifiOn)
 {
-       g_idle_add(check_mode_idler, (gpointer)"wifi-on");
+       g_idle_add(check_mode_idler, (gpointer)"http://tizen.org/mode/example.wifi-on");
        g_main_loop_run(loop);
        EXPECT_EQ(MODES_ERROR_NONE, result);
 }
 
 TEST_F(IntegrationTest, runMode_waterlock)
 {
-       g_idle_add(check_mode_idler, (gpointer)"Water-Lock");
+       g_idle_add(check_mode_idler, (gpointer)"http://tizen.org/mode/example.Water-Lock");
        g_main_loop_run(loop);
        EXPECT_EQ(MODES_ERROR_NONE, result);
 }
index 63e56f3..c899143 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <tizenModes xmlns="http://www.tizen.org" version="6.0">
-  <mode name="Power-Save" type="normal">
+  <mode ID="http://tizen.org/mode/example.Power-Save" name="Power-Save" type="normal">
     <action rule="pkg.supportMode" restrict="lock">ULTRA_POWER_SAVING</action>
     <action rule="wifi.power" restrict="lock">off</action>
     <action rule="bluetooth.power" restrict="lock">off</action>
index 0773ef0..a50e3e9 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <tizenModes xmlns="http://www.tizen.org" version="6.0">
-  <mode name="Quick-Panel" type="normal">
+  <mode ID="http://tizen.org/mode/example.Quick-Panel" name="Quick-Panel" type="normal">
     <action rule="wifi.power">on</action>
     <action rule="vconf.db.setting.sound.sound_on">1</action>
     <action rule="vconf.db.setting.sound.vibration_on">1</action>
index d499433..9f5fabd 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <tizenModes xmlns="http://www.tizen.org" version="6.0">
-  <mode name="Water-Lock" type="normal">
+  <mode ID="http://tizen.org/mode/example.Water-Lock" name="Water-Lock" type="normal">
     <action rule="vconf.db.setting.sound.sound_on" restrict="lock">false</action>
     <action rule="vconf.db.setting.sound.vibration_on" restrict="lock">true</action>
     <undo rule="media.player">/opt/usr/data/settings/Alarms/Alarms_on_call.ogg</undo>
index f286dac..f43773e 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <tizenModes xmlns="http://www.tizen.org" version="6.0">
-  <mode name="EssentialCheck" type="normal">
+  <mode ID="http://tizen.org/mode/example.EssentialCheck" name="EssentialCheck" type="normal">
     <action rule="app.launch" restrict="essential">org.tizen.modesupervisor</action>
     <action rule="wifi.power">off</action>
     <action rule="bluetooth.power">off</action>
index 6359800..add9cfb 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <tizenModes xmlns="http://www.tizen.org" version="6.0">
-  <mode name="btAudioConnect" type="normal">
+  <mode ID="http://tizen.org/mode/example.btAudioConnect" name="btAudioConnect" type="normal">
     <action rule="bluetooth.power" restrict="lock">on</action>
     <action rule="bluetooth.audioConnect" restrict="lock">08:AE:D6:5E:AE:16</action>
   </mode>
index 5d3d3b1..b20936d 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <tizenModes xmlns="http://www.tizen.org" version="6.0">
-  <mode name="btOff" type="normal">
+  <mode ID="http://tizen.org/mode/example.btOff" name="btOff" type="normal">
     <action rule="bluetooth.power" restrict="lock">off</action>
   </mode>
 </tizenModes>
index 40e64a3..4f7396d 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <tizenModes xmlns="http://www.tizen.org" version="6.0">
-  <mode name="btOn" type="normal">
+  <mode ID="http://tizen.org/mode/example.btOn" name="btOn" type="normal">
     <action rule="bluetooth.power" restrict="lock">on</action>
   </mode>
 </tizenModes>
index 66a027d..8d6f7d9 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <tizenModes xmlns="http://www.tizen.org" version="6.0">
-  <mode name="displayBlock" type="normal">
+  <mode ID="http://tizen.org/mode/example.displayBlock" name="displayBlock" type="normal">
     <action rule="display.timeout" restrict="lock">ALWAYS_ON</action>
     <action rule="display.denyPalmTouch" restrict="lock">on</action>
   </mode>
index d2aad8d..2120907 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <tizenModes xmlns="http://www.tizen.org" version="6.0">
-  <mode name="wifi-on" type="normal">
+  <mode ID="http://tizen.org/mode/example.wifi-on" name="wifi-on" type="normal">
     <action rule="wifi.power">on</action>
   </mode>
 </tizenModes>