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%2Ftoolkit-singleton-service.h;h=7f57f55f74d03c480b1e8d0ce1dc3296909b4b73;hp=68e4ecca7fc21ac1d03a5b0e56422f984a411ea6;hb=908670e8d7b3447b5201a7f9118cca881cf0a41e;hpb=68398f4bf6958cd60f12b930e240d0d75e9e7d29 diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-singleton-service.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-singleton-service.h index 68e4ecc..7f57f55 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-singleton-service.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-singleton-service.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_TOOLKIT_SINGLETON_SERVICE_H__ -#define __DALI_TOOLKIT_TOOLKIT_SINGLETON_SERVICE_H__ +#ifndef DALI_TOOLKIT_TEST_SINGLETON_SERVICE_H +#define DALI_TOOLKIT_TEST_SINGLETON_SERVICE_H /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -15,43 +15,16 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - * */ -// EXTERNAL INCLUDES - -#define __DALI_SINGELTON_SERVICE_H__ -#include -#include - -// INTERNAL INCLUDES - -namespace Dali -{ - -namespace Internal DALI_INTERNAL -{ -namespace Adaptor -{ -class SingletonService; -} -} +#include +#include "test-application.h" -class SingletonService : public BaseHandle +namespace Test { -public: - SingletonService(); - static Dali::SingletonService New(); - static SingletonService Get(); - ~SingletonService(); - void Register( const std::type_info& info, BaseHandle singleton ); - void UnregisterAll(); - BaseHandle GetSingleton( const std::type_info& info ) const; -public: // Not intended for application developers - SingletonService( Internal::Adaptor::SingletonService* singletonService ); -}; +void SetApplication( Dali::SingletonService singletonService, TestApplication& testApplication ); -} // namespace Dali +} // Test -#endif // __DALI_TOOLKIT_TOOLKIT_SINGLETON_SERVICE_H__ +#endif //DALI_TOOLKIT_TEST_SINGLETON_SERVICE_H