X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-scene3d%2Futc-Dali-StringCallback.cpp;h=3b809051953b3c9e86e97ef8593542cf0a9e2d7b;hp=f89ec02d7d6ec308bfdd3dec73a231e1db67b424;hb=7d48264f93e481a3dccf5c1d744fe321ec77001e;hpb=7ed28ea060e0aa21cb36ed605d6c7d0f85397f6a diff --git a/automated-tests/src/dali-scene3d/utc-Dali-StringCallback.cpp b/automated-tests/src/dali-scene3d/utc-Dali-StringCallback.cpp index f89ec02..3b80905 100644 --- a/automated-tests/src/dali-scene3d/utc-Dali-StringCallback.cpp +++ b/automated-tests/src/dali-scene3d/utc-Dali-StringCallback.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 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. @@ -18,16 +18,15 @@ // Enable debug log for test coverage #define DEBUG_ENABLED 1 -#include "dali-scene3d/public-api/loader/string-callback.h" #include #include +#include "dali-scene3d/public-api/loader/string-callback.h" using namespace Dali; using namespace Dali::Scene3D::Loader; namespace { - char sBuffer[64]; void TestLogFunction(Integration::Log::DebugPriority level, std::string& str) @@ -35,12 +34,12 @@ void TestLogFunction(Integration::Log::DebugPriority level, std::string& str) snprintf(sBuffer, sizeof(sBuffer), "%d: %s", level, str.c_str()); } -} +} // namespace int UtcDaliUtilsDefaultStringCallback(void) { InstallLogFunction(TestLogFunction); DefaultErrorCallback("Hello world!"); - DALI_TEST_EQUAL(std::string(sBuffer), "2: string-callback.cpp: DefaultErrorCallback(28) > Hello world!"); + DALI_TEST_EQUAL(std::string(sBuffer), "3: string-callback.cpp: DefaultErrorCallback(28) > Hello world!"); END_TEST; }