X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali%2Futc-Dali-PinchGestureDetector.cpp;h=2c45979389ae5a996e5178e0c332efff958d4847;hb=fe58df83b2d72c4beceb101eb9cffcc5442f3d6e;hp=8547f009b4438ef2c9efee57e73f0781ebb71b8a;hpb=522b851901f6edee893d7eb5f96d687fcfc5aa77;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/automated-tests/src/dali/utc-Dali-PinchGestureDetector.cpp b/automated-tests/src/dali/utc-Dali-PinchGestureDetector.cpp index 8547f00..2c45979 100644 --- a/automated-tests/src/dali/utc-Dali-PinchGestureDetector.cpp +++ b/automated-tests/src/dali/utc-Dali-PinchGestureDetector.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 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. @@ -131,7 +131,6 @@ int UtcDaliPinchGestureDetectorCopyConstructorP(void) TestApplication application; PinchGestureDetector detector = PinchGestureDetector::New(); - ; PinchGestureDetector copy(detector); DALI_TEST_CHECK(detector); @@ -143,7 +142,6 @@ int UtcDaliPinchGestureDetectorAssignmentOperatorP(void) TestApplication application; PinchGestureDetector detector = PinchGestureDetector::New(); - ; PinchGestureDetector assign; assign = detector; @@ -153,6 +151,34 @@ int UtcDaliPinchGestureDetectorAssignmentOperatorP(void) END_TEST; } +int UtcDaliPinchGestureDetectorMoveConstructorP(void) +{ + TestApplication application; + + PinchGestureDetector detector = PinchGestureDetector::New(); + DALI_TEST_CHECK(detector); + + PinchGestureDetector moved = std::move(detector); + DALI_TEST_CHECK(moved); + DALI_TEST_CHECK(!detector); + END_TEST; +} + +int UtcDaliPinchGestureDetectorMoveAssignmentOperatorP(void) +{ + TestApplication application; + + PinchGestureDetector detector; + detector = PinchGestureDetector::New(); + DALI_TEST_CHECK(detector); + + PinchGestureDetector moved; + moved = std::move(detector); + DALI_TEST_CHECK(moved); + DALI_TEST_CHECK(!detector); + END_TEST; +} + int UtcDaliPinchGestureDetectorNew(void) { TestApplication application;