[Tizen] Add Timer at TapGestureRecognizer 11/267611/1 accepted/tizen/6.0/unified/20211216.155540 submit/tizen_6.0/20211216.043505
authorJoogab Yun <joogab.yun@samsung.com>
Mon, 5 Jul 2021 03:22:10 +0000 (12:22 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Wed, 8 Dec 2021 01:16:13 +0000 (10:16 +0900)
Change-Id: Ib83ee19e27eec407bc0305bbacf471e2a4700671

automated-tests/src/dali-adaptor/dali-test-suite-utils/test-gesture-generator.cpp
automated-tests/src/dali-adaptor/dali-test-suite-utils/test-gesture-generator.h

index 4b465a777191176fc9a319d5a3f7fc5fc79cd889..4532c6e6ad0b030b21422d12310f11e80561d2d3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -149,16 +149,23 @@ void TestEndPan(TestApplication& application, Vector2 pos, uint32_t time)
   application.ProcessEvent(GenerateSingleTouch(PointState::UP, pos, time));
 }
 
+void TestTriggerTap(TestApplication& application)
+{
+  application.GetPlatform().TriggerTimer();
+}
+
 void TestGenerateTap(TestApplication& application, float x, float y, uint32_t time_down)
 {
   application.ProcessEvent(GenerateSingleTouch(PointState::DOWN, Vector2(x, y), time_down));
   application.ProcessEvent(GenerateSingleTouch(PointState::UP, Vector2(x, y), time_down + 20));
+  TestTriggerTap(application);
 }
 
 void TestGenerateTwoPointTap(TestApplication& application, float x1, float y1, float x2, float y2, uint32_t time_down)
 {
   application.ProcessEvent(GenerateDoubleTouch(PointState::DOWN, Vector2(x1, y1), PointState::DOWN, Vector2(x2, y2), time_down));
   application.ProcessEvent(GenerateDoubleTouch(PointState::UP, Vector2(x1, y1), PointState::UP, Vector2(x2, y2), time_down + 20));
+  TestTriggerTap(application);
 }
 
 void TestGenerateRotation(TestApplication& application)
index e6e367d01c902d48e895243b7f00e6b21a09460a..cb3b1a6d89ecec4d713f11251d587331a4761997 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_TEST_GESTURE_GENERATOR_H
 
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -93,6 +93,11 @@ void TestMovePan(TestApplication& application, Vector2 pos, uint32_t time = 400)
  */
 void TestEndPan(TestApplication& application, Vector2 pos, uint32_t time = 500);
 
+/**
+ * Triggers the timer to begin a tap gesture
+ */
+void TestTriggerTap(TestApplication& application);
+
 /**
  * Produces a single point tap gesture with a 20ms interval
  */