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=e7d8c7673a7391f254caf624ca738f466d030d03;hb=e9075a50279076fa8d070e8ee53b7922779a8b66;hp=73625056f03bd24664701da3d9ffdbf7faa65bbc;hpb=debd4ef5b35507bac4579dfbb8983b743872c70b;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 7362505..e7d8c76 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 @@ -2,7 +2,7 @@ #define DALI_TEST_APPLICATION_H /* - * Copyright (c) 2020 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 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. @@ -22,12 +22,11 @@ #include #include #include + #include #include -#include "test-gl-abstraction.h" -#include "test-gl-context-helper-abstraction.h" -#include "test-gl-sync-abstraction.h" +#include "test-graphics-controller.h" #include "test-render-controller.h" namespace Dali @@ -58,27 +57,30 @@ public: void CreateScene(); void InitializeCore(); ~TestApplication() override; - static void LogMessage(Dali::Integration::Log::DebugPriority level, std::string& message); - static void LogContext(bool start, const char* tag); - Dali::Integration::Core& GetCore(); - TestPlatformAbstraction& GetPlatform(); - TestRenderController& GetRenderController(); + static void LogMessage(Dali::Integration::Log::DebugPriority level, std::string& message); + static void LogContext(bool start, const char* tag); + Dali::Integration::Core& GetCore(); + TestPlatformAbstraction& GetPlatform(); + TestRenderController& GetRenderController(); + TestGraphicsController& GetGraphicsController(); + TestGlAbstraction& GetGlAbstraction(); TestGlSyncAbstraction& GetGlSyncAbstraction(); TestGlContextHelperAbstraction& GetGlContextHelperAbstraction(); - void ProcessEvent(const Integration::Event& event); - void SendNotification(); - bool Render(uint32_t intervalMilliseconds = DEFAULT_RENDER_INTERVAL, const char* location = NULL); - bool PreRenderWithPartialUpdate(uint32_t intervalMilliseconds, const char* location, std::vector>& damagedRects); - bool RenderWithPartialUpdate(std::vector>& damagedRects, Rect& clippingRect); - uint32_t GetUpdateStatus(); - bool UpdateOnly(uint32_t intervalMilliseconds = DEFAULT_RENDER_INTERVAL); - bool RenderOnly(); - void ResetContext(); - bool GetRenderNeedsUpdate(); - bool GetRenderNeedsPostRender(); - uint32_t Wait(uint32_t durationToWait); - static void EnableLogging(bool enabled) + + void ProcessEvent(const Integration::Event& event); + void SendNotification(); + bool Render(uint32_t intervalMilliseconds = DEFAULT_RENDER_INTERVAL, const char* location = NULL); + bool PreRenderWithPartialUpdate(uint32_t intervalMilliseconds, const char* location, std::vector>& damagedRects); + bool RenderWithPartialUpdate(std::vector>& damagedRects, Rect& clippingRect); + uint32_t GetUpdateStatus(); + bool UpdateOnly(uint32_t intervalMilliseconds = DEFAULT_RENDER_INTERVAL); + bool RenderOnly(); + void ResetContext(); + bool GetRenderNeedsUpdate(); + bool GetRenderNeedsPostRender(); + uint32_t Wait(uint32_t durationToWait); + static void EnableLogging(bool enabled) { mLoggingEnabled = enabled; } @@ -92,11 +94,9 @@ private: void DoUpdate(uint32_t intervalMilliseconds, const char* location = NULL); protected: - TestPlatformAbstraction mPlatformAbstraction; - TestRenderController mRenderController; - TestGlAbstraction mGlAbstraction; - TestGlSyncAbstraction mGlSyncAbstraction; - TestGlContextHelperAbstraction mGlContextHelperAbstraction; + TestPlatformAbstraction mPlatformAbstraction; + TestRenderController mRenderController; + TestGraphicsController mGraphicsController; Integration::UpdateStatus mStatus; Integration::RenderStatus mRenderStatus;