X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftest-platform-abstraction.cpp;h=86b5430eca4dc58d7f888cba66d445260705a01e;hb=8e7cfd0c114bf778287cc6e67d0f42f3c866e205;hp=61f88f02c5839d4508d5523c070e2ed6ba361e08;hpb=f4c3e2927fdee2fa02fd414aaa8cee874fcf839e;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-platform-abstraction.cpp b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-platform-abstraction.cpp index 61f88f0..86b5430 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-platform-abstraction.cpp +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-platform-abstraction.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2017 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. @@ -94,7 +94,7 @@ Integration::ResourcePointer TestPlatformAbstraction::LoadResourceSynchronously( Integration::BitmapPtr TestPlatformAbstraction::DecodeBuffer( const Integration::ResourceType& resourceType, uint8_t * buffer, size_t size ) { mTrace.PushCall("DecodeBuffer", ""); - return Integration::BitmapPtr(); + return mDecodedBitmap; } void TestPlatformAbstraction::CancelLoad(Integration::ResourceId id, Integration::ResourceTypeId typeId) @@ -182,6 +182,7 @@ void TestPlatformAbstraction::Initialize() mResourceRequests.Clear(); mIsLoadingResult=false; mSynchronouslyLoadedResource.Reset(); + mDecodedBitmap.Reset(); } bool TestPlatformAbstraction::WasCalled(TestFuncEnum func) @@ -215,6 +216,7 @@ void TestPlatformAbstraction::ClearReadyResources() mLoadedResourcesQueue.clear(); mFailedLoadQueue.clear(); mSynchronouslyLoadedResource.Reset(); + mDecodedBitmap.Reset(); } void TestPlatformAbstraction::SetResourceLoaded(Integration::ResourceId loadedId, @@ -317,4 +319,9 @@ void TestPlatformAbstraction::SetSynchronouslyLoadedResource( Integration::Resou mSynchronouslyLoadedResource = resource; } +void TestPlatformAbstraction::SetDecodedBitmap( Integration::BitmapPtr bitmap ) +{ + mDecodedBitmap = bitmap; +} + } // namespace Dali