X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftoolkit-test-application.h;h=de2d0c4f86ac2d7f827da3724c1fef4f8d696d29;hb=124aa28a0cd62b61142779066432cd29195c42ce;hp=2b1db83ee031c5795593763c0565051d0d41154c;hpb=07a73413cfefa18105d94f952efb62884b8ed9a1;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-test-application.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-test-application.h index 2b1db83..de2d0c4 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-test-application.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-test-application.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_TEST_APPLICATION_H__ -#define __DALI_TOOLKIT_TEST_APPLICATION_H__ +#ifndef DALI_TOOLKIT_TEST_APPLICATION_H +#define DALI_TOOLKIT_TEST_APPLICATION_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. @@ -24,6 +24,7 @@ #include #include #include +#include namespace Dali { @@ -50,6 +51,19 @@ public: { fontClient.SetDpi( mDpi.x, mDpi.y ); } + + bool isAdaptorAvailable = Dali::Internal::Adaptor::Adaptor::Get().IsAvailable(); + if ( isAdaptorAvailable ) + { + Dali::LifecycleController lifecycleController = Dali::LifecycleController::Get(); + lifecycleController.InitSignal().Emit(); + + Dali::Window window = Dali::Internal::Adaptor::Adaptor::mWindows.front(); + if ( window ) + { + Dali::Internal::Adaptor::Adaptor::WindowCreatedSignal().Emit( window ); + } + } } ~ToolkitTestApplication() @@ -103,4 +117,4 @@ private: } // namespace Dali -#endif // __DALI_TOOLKIT_TEST_APPLICATION_H__ +#endif // DALI_TOOLKIT_TEST_APPLICATION_H