X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-adaptor%2Fdali-test-suite-utils%2Ftest-touch-utils.h;h=3a623cb4a82710886c1b0eb785b8f81a548eb0b9;hb=cbc82430da3f10ddbc9d6eee7514b05389e8d183;hp=ebae313b191cb52eb9adec1d76ddee83b52ca1bb;hpb=239ad8168d2aa2592536f0054e55749c8e388653;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-touch-utils.h b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-touch-utils.h index ebae313..3a623cb 100644 --- a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-touch-utils.h +++ b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-touch-utils.h @@ -1,8 +1,8 @@ -#ifndef _TEST_TOUCH_UTILS_H_ -#define _TEST_TOUCH_UTILS_H_ +#ifndef TEST_TOUCH_UTILS_H +#define TEST_TOUCH_UTILS_H /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 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. @@ -62,10 +62,13 @@ struct TouchEventDataFunctor } // Generate a touch-event - Integration::TouchEvent GenerateSingleTouch( TouchPoint::State state, Vector2 screenPosition ) const + Integration::TouchEvent GenerateSingleTouch( PointState::Type state, const Vector2& screenPosition ) const { Integration::TouchEvent touchEvent; - touchEvent.points.push_back( TouchPoint ( 0, state, screenPosition.x, screenPosition.y ) ); + Integration::Point point; + point.SetState( state ); + point.SetScreenPosition( screenPosition ); + touchEvent.points.push_back( point ); return touchEvent; } @@ -75,4 +78,4 @@ struct TouchEventDataFunctor } // namespace Dali -#endif // _TEST_TOUCH_UTILS_H_ +#endif // TEST_TOUCH_UTILS_H