projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change DebugPriority name
[platform/core/uifw/dali-toolkit.git]
/
automated-tests
/
src
/
dali-scene3d
/
utc-Dali-StringCallback.cpp
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
(file)
--- 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) 202
0
Samsung Electronics Co., Ltd.
+ * Copyright (c) 202
2
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.
*
* 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
// Enable debug log for test coverage
#define DEBUG_ENABLED 1
-#include "dali-scene3d/public-api/loader/string-callback.h"
#include <dali-test-suite-utils.h>
#include <string_view>
#include <dali-test-suite-utils.h>
#include <string_view>
+#include "dali-scene3d/public-api/loader/string-callback.h"
using namespace Dali;
using namespace Dali::Scene3D::Loader;
namespace
{
using namespace Dali;
using namespace Dali::Scene3D::Loader;
namespace
{
-
char sBuffer[64];
void TestLogFunction(Integration::Log::DebugPriority level, std::string& str)
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());
}
snprintf(sBuffer, sizeof(sBuffer), "%d: %s", level, str.c_str());
}
-}
+}
// namespace
int UtcDaliUtilsDefaultStringCallback(void)
{
InstallLogFunction(TestLogFunction);
DefaultErrorCallback("Hello world!");
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;
}
END_TEST;
}