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 880d286..ad43439 100644 (file)
             "InputIntents" : [
                 {
                     "Modality" : "KeyInput",
-                    "Action" : "PressOKButton"
+                    "Action" : "PressOkButton"
                 }
             ],
             "MMIStatus": "Execution",
             "InputIntents" : [
                 {
                     "Modality" : "KeyInput",
-                    "Action" : "PressOKButton"
+                    "Action" : "PressOkButton"
                 }
             ],
             "MMIStatus": "Execution",
index ddfc62c..6daf333 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 44cb9e9..8700e6d 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 9781575..c8759a6 100644 (file)
@@ -439,7 +439,7 @@ TEST_F(IUClientFeedIntentTest, utc_mmi_iu_feed_intent_key_press_ok)
         "InputIntents" : [
             {
                 "Modality" : "KeyInput",
-                "Action" : "PressOKButton"
+                "Action" : "PressOkButton"
             }
         ]
     }