(Automated Tests) Added more tests to increase TEM score
[platform/core/uifw/dali-adaptor.git] / automated-tests / src / dali-adaptor / utc-Dali-Timer.cpp
index 7d467e9..90e3a9e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -479,3 +479,35 @@ int UtcDaliTimerDownCastN(void)
 
   END_TEST;
 }
+
+int UtcDaliTimerPauseN(void)
+{
+  Timer timer;
+
+  try
+  {
+    timer.Pause();
+    DALI_TEST_CHECK(false); // Should not get here
+  }
+  catch(...)
+  {
+    DALI_TEST_CHECK(true);
+  }
+  END_TEST;
+}
+
+int UtcDaliTimerResumeN(void)
+{
+  Timer timer;
+
+  try
+  {
+    timer.Resume();
+    DALI_TEST_CHECK(false); // Should not get here
+  }
+  catch(...)
+  {
+    DALI_TEST_CHECK(true);
+  }
+  END_TEST;
+}