X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali%2Futc-Dali-PanGestureDetector.cpp;h=a1d44832e82626bc0d9599a58074a0fcd1ce342b;hb=fe58df83b2d72c4beceb101eb9cffcc5442f3d6e;hp=b1314eaa0d9b1bf5f6392c6265a3e9c783ccad92;hpb=4ed424a125941ad760f870ac8b332e22038341bb;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/automated-tests/src/dali/utc-Dali-PanGestureDetector.cpp b/automated-tests/src/dali/utc-Dali-PanGestureDetector.cpp index b1314ea..a1d4483 100644 --- a/automated-tests/src/dali/utc-Dali-PanGestureDetector.cpp +++ b/automated-tests/src/dali/utc-Dali-PanGestureDetector.cpp @@ -238,6 +238,34 @@ int UtcDaliPanGestureDetectorAssignmentOperatorP(void) END_TEST; } +int UtcDaliPanGestureDetectorMoveConstructorP(void) +{ + TestApplication application; + + PanGestureDetector detector = PanGestureDetector::New(); + DALI_TEST_CHECK(detector); + + PanGestureDetector moved = std::move(detector); + DALI_TEST_CHECK(moved); + DALI_TEST_CHECK(!detector); + END_TEST; +} + +int UtcDaliPanGestureDetectorMoveAssignmentOperatorP(void) +{ + TestApplication application; + + PanGestureDetector detector; + detector = PanGestureDetector::New(); + DALI_TEST_CHECK(detector); + + PanGestureDetector moved; + moved = std::move(detector); + DALI_TEST_CHECK(moved); + DALI_TEST_CHECK(!detector); + END_TEST; +} + // Negative test case for a method int UtcDaliPanGestureDetectorNew(void) { @@ -408,9 +436,9 @@ int UtcDaliPanGestureSetMaximumMotionEventAge(void) detector.Attach(actor); detector.DetectedSignal().Connect(&application, functor); - detector.SetMaximumMotionEventAge(minTime / 2); + detector.SetMaximumMotionEventAge(minTime * 2); - DALI_TEST_EQUALS(minTime / 2, detector.GetMaximumMotionEventAge(), TEST_LOCATION); + DALI_TEST_EQUALS(minTime * 2, detector.GetMaximumMotionEventAge(), TEST_LOCATION); END_TEST; }