From 2ebbf2951605356a8b522748a7be51af63cf5048 Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Wed, 24 May 2023 10:58:08 +0900 Subject: [PATCH] Sync test harness Sync test harness for ttrace Change-Id: I501505ff721168212cda2eba5d4ebf51e9ce3e76 Signed-off-by: Eunki, Hong --- .../src/dali-toolkit/dali-toolkit-test-utils/test-application.cpp | 8 ++++---- .../src/dali-toolkit/dali-toolkit-test-utils/test-application.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-application.cpp b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-application.cpp index e4c6078..a8354e8 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-application.cpp +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-application.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Samsung Electronics Co., Ltd. + * Copyright (c) 2023 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. @@ -99,15 +99,15 @@ TestApplication::~TestApplication() delete mCore; } -void TestApplication::LogContext(bool start, const char* tag) +void TestApplication::LogContext(bool start, const char* tag, const char* message) { if(start) { - fprintf(stderr, "INFO: Trace Start: %s\n", tag); + fprintf(stderr, "INFO: Trace Start: %s %s\n", tag, message ? message : ""); } else { - fprintf(stderr, "INFO: Trace End: %s\n", tag); + fprintf(stderr, "INFO: Trace End: %s %s\n", tag, message ? message : ""); } } diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-application.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-application.h index 1b101c5..ce0e151 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-application.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-application.h @@ -2,7 +2,7 @@ #define DALI_TEST_APPLICATION_H /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2023 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. @@ -60,7 +60,7 @@ public: void InitializeCore(); ~TestApplication() override; static void LogMessage(Dali::Integration::Log::DebugPriority level, std::string& message); - static void LogContext(bool start, const char* tag); + static void LogContext(bool start, const char* tag, const char* message); Dali::Integration::Core& GetCore(); TestPlatformAbstraction& GetPlatform(); TestRenderController& GetRenderController(); -- 2.7.4