X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftest-application.h;h=c5ecc4f6e8dd1089d5f03153a97b18a496898053;hb=0ade1ea02b460b002d9cd82cd3023a5107eb6294;hp=d3bf2596e961bf87109c368db76d47e91ddeaef2;hpb=923a624e8671c0649eee08438828eb7ee3733a14;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-application.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-application.h index d3bf259..c5ecc4f 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-application.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-application.h @@ -25,6 +25,7 @@ #include "test-gl-abstraction.h" #include "test-render-controller.h" #include +#include namespace Dali { @@ -47,24 +48,24 @@ public: static const unsigned int DEFAULT_RENDER_INTERVAL = 1; + static const unsigned int RENDER_FRAME_INTERVAL = 16; + TestApplication( size_t surfaceWidth = DEFAULT_SURFACE_WIDTH, size_t surfaceHeight = DEFAULT_SURFACE_HEIGHT, float horizontalDpi = DEFAULT_HORIZONTAL_DPI, float verticalDpi = DEFAULT_VERTICAL_DPI, - ResourcePolicy::DataRetention resourcePolicy = ResourcePolicy::DALI_DISCARDS_ALL_DATA ); - - + ResourcePolicy::DataRetention policy = ResourcePolicy::DALI_DISCARDS_ALL_DATA); TestApplication( bool initialize, size_t surfaceWidth = DEFAULT_SURFACE_WIDTH, size_t surfaceHeight = DEFAULT_SURFACE_HEIGHT, float horizontalDpi = DEFAULT_HORIZONTAL_DPI, float verticalDpi = DEFAULT_VERTICAL_DPI, - ResourcePolicy::DataRetention resourcePolicy = ResourcePolicy::DALI_DISCARDS_ALL_DATA ); + ResourcePolicy::DataRetention policy = ResourcePolicy::DALI_DISCARDS_ALL_DATA); void Initialize(); virtual ~TestApplication(); - static void LogMessage(Dali::Integration::Log::DebugPriority level, std::string& message); + static void LogMessage( Dali::Integration::Log::DebugPriority level, std::string& message ); Dali::Integration::Core& GetCore(); TestPlatformAbstraction& GetPlatform(); TestRenderController& GetRenderController(); @@ -74,14 +75,17 @@ public: void ProcessEvent(const Integration::Event& event); void SendNotification(); void SetSurfaceWidth( unsigned int width, unsigned height ); - bool Render( unsigned int intervalMilliseconds = DEFAULT_RENDER_INTERVAL ); + void SetTopMargin( unsigned int margin ); + bool Render( unsigned int intervalMilliseconds = DEFAULT_RENDER_INTERVAL, const char* location=NULL ); unsigned int GetUpdateStatus(); bool UpdateOnly( unsigned int intervalMilliseconds = DEFAULT_RENDER_INTERVAL ); bool RenderOnly( ); void ResetContext(); + bool GetRenderNeedsUpdate(); + unsigned int Wait( unsigned int durationToWait ); private: - void DoUpdate( unsigned int intervalMilliseconds ); + void DoUpdate( unsigned int intervalMilliseconds, const char* location=NULL ); protected: TestPlatformAbstraction mPlatformAbstraction;