iu: Change OK key event as Ok 07/264107/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 13 Sep 2021 04:31:03 +0000 (13:31 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 13 Sep 2021 11:27:17 +0000 (20:27 +0900)
Change-Id: I92148e8cacf0442e7a185728400f989f5a0b4b18
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/iu/data/default_rule.json
src/iu/intent_understanding_engine.cpp
tests/iu/intent_understanding_engine_rule_unittests.cpp
tests/iu/mmi_iu_unittests.cpp

index 880d2861e6fddc2dfa3f2b7d791e2fb29019873a..ad434390d97925ba81882c24ce5167447c312d46 100644 (file)
             "InputIntents" : [
                 {
                     "Modality" : "KeyInput",
-                    "Action" : "PressOKButton"
+                    "Action" : "PressOkButton"
                 }
             ],
             "MMIStatus": "Execution",
             "InputIntents" : [
                 {
                     "Modality" : "KeyInput",
-                    "Action" : "PressOKButton"
+                    "Action" : "PressOkButton"
                 }
             ],
             "MMIStatus": "Execution",
index ddfc62cc83b07f32ff7c7da10be9c4946785e7d3..6daf3337957342af29a695611738ca01a773b224 100644 (file)
@@ -40,7 +40,7 @@ static unordered_map<string, string> key_action_map
         { "DOWN",       "Down" },
         { "LEFT",       "Left" },
         { "RIGHT",      "Right" },
-        { "RETURN",     "OK" },
+        { "RETURN",     "Ok" },
         { "XF86Back",   "Back" },
         { "I69",        "Back" },
       };
index 44cb9e928a602ab300c47d5b0851369a44c4ca07..8700e6da52c93dbdf397ed7dd2925462698f149e 100644 (file)
@@ -220,7 +220,7 @@ class IUEngineRuleTest : public testing::Test {
                     "InputIntents" : [
                         {
                             "Modality" : "KeyInput",
-                            "Action" : "PressOKButton"
+                            "Action" : "PressOkButton"
                         }
                     ],
                     "MMIStatus": "Execution",
@@ -304,7 +304,7 @@ class IUEngineRuleTest : public testing::Test {
                     "InputIntents" : [
                         {
                             "Modality" : "KeyInput",
-                            "Action" : "PressOKButton"
+                            "Action" : "PressOkButton"
                         }
                     ],
                     "MMIStatus": "Execution",
@@ -721,7 +721,7 @@ TEST_F(IUEngineRuleTest, utc_intent_understanding_engine_rule_key_press_ok)
         "InputIntents" : [
             {
                 "Modality" : "KeyInput",
-                "Action" : "PressOKButton"
+                "Action" : "PressOkButton"
             }
         ]
     }
index 978157593e1e5ad5de111ab7b8cd69998691f61f..c8759a6978254bb67c941ae00eb2132efb388d85 100644 (file)
@@ -439,7 +439,7 @@ TEST_F(IUClientFeedIntentTest, utc_mmi_iu_feed_intent_key_press_ok)
         "InputIntents" : [
             {
                 "Modality" : "KeyInput",
-                "Action" : "PressOKButton"
+                "Action" : "PressOkButton"
             }
         ]
     }