[Tizen] Change deletion order of FrameworkFactory
[platform/core/uifw/dali-adaptor.git] / automated-tests / src / dali-adaptor / dali-test-suite-utils / adaptor-test-application.h
index 421fb11..386b946 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef __DALI_ADAPTOR_TEST_APPLICATION_H__
-#define __DALI_ADAPTOR_TEST_APPLICATION_H__
+#ifndef DALI_ADAPTOR_TEST_APPLICATION_H
+#define DALI_ADAPTOR_TEST_APPLICATION_H
 
 /*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
  */
 
 // INTERNAL INCLUDES
-#include "test-application.h"
+#include <dali/internal/adaptor/common/framework-factory.h>
 #include "adaptor-test-adaptor-impl.h"
+#include "test-application.h"
 
 namespace Dali
 {
-
 /**
  * Adds some functionality on top of TestApplication that is required by the Adaptor.
  */
 class AdaptorTestApplication : public TestApplication
 {
 public:
-
-  AdaptorTestApplication( size_t surfaceWidth  = DEFAULT_SURFACE_WIDTH,
-                          size_t surfaceHeight = DEFAULT_SURFACE_HEIGHT,
-                          float  horizontalDpi = DEFAULT_HORIZONTAL_DPI,
-                          float  verticalDpi   = DEFAULT_VERTICAL_DPI )
-  : TestApplication( surfaceWidth, surfaceHeight, horizontalDpi, verticalDpi )
+  AdaptorTestApplication(size_t surfaceWidth  = DEFAULT_SURFACE_WIDTH,
+                         size_t surfaceHeight = DEFAULT_SURFACE_HEIGHT,
+                         float  horizontalDpi = DEFAULT_HORIZONTAL_DPI,
+                         float  verticalDpi   = DEFAULT_VERTICAL_DPI)
+  : TestApplication(surfaceWidth, surfaceHeight, horizontalDpi, verticalDpi)
   {
     Internal::Adaptor::Adaptor::SetAvailable();
+    mFrameworkFactory = std::unique_ptr<Internal::Adaptor::FrameworkFactory>(Dali::Internal::Adaptor::CreateFrameworkFactory());
   }
 
   ~AdaptorTestApplication()
   {
   }
+
+  std::unique_ptr<Internal::Adaptor::FrameworkFactory> mFrameworkFactory;
 };
 
 } // namespace Dali
 
-#endif // __DALI_ADAPTOR_TEST_APPLICATION_H__
+#endif // DALI_ADAPTOR_TEST_APPLICATION_H