X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftest-native-image.cpp;h=4dc1eab528a801169839279677fbe745edf97a6b;hb=abc8459e18c5a7f8730c9493885fd067126520cb;hp=da4e7e8254232e79f5bea3418d26450bde5c3e94;hpb=f781537e1453775663bb7f89adb495957dfa61ef;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-native-image.cpp b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-native-image.cpp index da4e7e8..4dc1eab 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-native-image.cpp +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-native-image.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 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. @@ -15,42 +15,31 @@ * */ - #include "test-application.h" -#include "test-native-image.h" +#include "test-native-image.h" namespace Dali { - -TestNativeImagePointer TestNativeImage::New(int width, int height) +TestNativeImagePointer TestNativeImage::New(uint32_t width, uint32_t height) { return new TestNativeImage(width, height); } -TestNativeImage::TestNativeImage(int width, int height) -: mWidth(width), mHeight(height), mExtensionCreateCalls(0), mExtensionDestroyCalls(0), mTargetTextureCalls(0),createResult(true) +TestNativeImage::TestNativeImage(uint32_t width, uint32_t height) +: mWidth(width), + mHeight(height), + mExtensionCreateCalls(0), + mExtensionDestroyCalls(0), + mTargetTextureCalls(0), + createResult(true), + mCallStack(true, "NativeImage::") { - mExtension = new TestNativeImageExtension(); + mCallStack.EnableLogging(true); } TestNativeImage::~TestNativeImage() { } - -TestNativeImageNoExtPointer TestNativeImageNoExt::New(int width, int height) -{ - return new TestNativeImageNoExt(width, height); -} - -TestNativeImageNoExt::TestNativeImageNoExt(int width, int height) -: mWidth(width), mHeight(height), mExtensionCreateCalls(0), mExtensionDestroyCalls(0), mTargetTextureCalls(0),createResult(true) -{ -} - -TestNativeImageNoExt::~TestNativeImageNoExt() -{ -} - -} // namespace dali +} // namespace Dali