X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftest-platform-abstraction.h;h=7c1b0108bc27171141e8da732f0fd1e5d6cd60c3;hp=dfa4d6c035ad77c9a01721906ed9682510b8b391;hb=0e8dfa9c961af84b18edf2e3307840b0d94fb430;hpb=a0424ec129d3799ee0dab4a46600d167b2b7c71c diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-platform-abstraction.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-platform-abstraction.h index dfa4d6c..7c1b010 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-platform-abstraction.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-platform-abstraction.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TEST_PLATFORM_ABSTRACTION_H__ -#define __DALI_TEST_PLATFORM_ABSTRACTION_H__ +#ifndef DALI_TEST_PLATFORM_ABSTRACTION_H +#define DALI_TEST_PLATFORM_ABSTRACTION_H /* - * Copyright (c) 2018 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. @@ -89,6 +89,15 @@ public: */ virtual bool SaveShaderBinaryFile( const std::string& filename, const unsigned char * buffer, unsigned int numBytes ) const { return true; } + /** + * @copydoc PlatformAbstraction::StartTimer() + */ + virtual uint32_t StartTimer( uint32_t milliseconds, CallbackBase* callback ); + + /* + * @copydoc PlatformAbstraction::CancelTimer() + */ + virtual void CancelTimer ( uint32_t timerId ); public: // TEST FUNCTIONS @@ -156,6 +165,11 @@ public: // TEST FUNCTIONS */ void SetDecodedBitmap( Integration::BitmapPtr bitmap ); + /** + * @brief Triggers the previously stored callback function + */ + void TriggerTimer(); + private: TestPlatformAbstraction( const TestPlatformAbstraction& ); ///< Undefined @@ -184,8 +198,11 @@ private: Integration::ResourcePointer mSynchronouslyLoadedResource; Integration::BitmapPtr mDecodedBitmap; + + uint32_t mTimerId; + CallbackBase* mCallbackFunction; }; } // Dali -#endif /* __DALI_TEST_PLATFORM_ABSTRACTION_H__ */ +#endif /* DALI_TEST_PLATFORM_ABSTRACTION_H */