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 4fc5d241c902f8812c0c006f377caf62aeba54c8..5672f38b085da58cf2d0394de5161ab9732a2858 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 825ad599d166829264686a6b6070388b5d0cdc80..6427a5a2f82529970f1ef3f24d4335a422bdee79 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 63e56f3479873d7c49f968c447b73aae42d3c0e4..c899143dda6befa8d16a905f51c094e20b0df8fe 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 0773ef0fc050cc3b4063ab69f76dd7445798dbe9..a50e3e92fd10a4e2021dddfc8bed993646085eb1 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 d499433484c001f58495c236c79674e4624fb557..9f5fabd17c8082058b585d682e4150cc1fd4952f 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 f286dac42c4e8ba04ef298b78fa8ebfbcd5b0326..f43773ed525f22c588ae7cad789b8fa1e38e5607 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 6359800b8803174886012450289d264544d943a1..add9cfb79c1f62b1f3221321195c4bab941c4500 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 5d3d3b11731291c1a2314602baafbe4fb6d375aa..b20936d0721c52e5b72b3f9bd0e1d0fb13a4d533 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 40e64a376b9a01ac4685400f773d3722d472e4c5..4f7396dc43d3a0c53745cd7ac976e07304f97920 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 66a027d0e86a1b7365ee56ef3b7a414af6f8b22c..8d6f7d9b70d33602236c704653f68e3d80f0c5c6 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 d2aad8dca68919082f71a6d349eec5073c97d93c..2120907d03afae947583f9b6fede47e75a5bb837 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>