#include <dali/public-api/dali-core.h>
#include <dali-test-suite-utils.h>
#include <test-native-image.h>
+#include <test-intrusive-ptr.h>
using namespace Dali;
test_return_value = TET_PASS;
}
+IntrusivePtr<TestNativeImage> Creator()
+{
+ return TestNativeImage::New(10,10);
+}
+
+int UtcDaliIntrusivePtrTestNativeImage(void)
+{
+ UtcCoverageIntrusivePtr<TestNativeImage> pointer;
+
+ pointer.Check(Creator);
+
+ END_TEST;
+}
+
int UtcDaliNativeImageNew(void)
{
TestApplication application;
END_TEST;
}
+int UtcDaliNativeImageCopyConstructor(void)
+{
+ TestApplication application;
+
+ tet_infoline("UtcDaliNativeImageCopyConstructor - NativeImage::NativeImage( const NativeImage& )");
+
+ NativeImage image1;
+ DALI_TEST_CHECK( !image1 );
+
+ TestNativeImagePointer nativeImage = TestNativeImage::New(16, 16);
+ image1 = NativeImage::New(*(nativeImage.Get()));
+ NativeImage image2( image1 );
+
+ DALI_TEST_CHECK( image2 );
+ DALI_TEST_EQUALS( image1, image2, TEST_LOCATION );
+
+ END_TEST;
+}
+
int UtcDaliNativeImageDownCast(void)
{
TestApplication application;