From 1021c00d7783b4758bf41154cb8a564a1282f8c4 Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Wed, 10 Jul 2024 17:53:17 +0900 Subject: [PATCH] Sync harness for platform abstraction UTC Change-Id: If10cc44e27ee3cdbba265221a598ab7e40d970e3 Signed-off-by: Eunki, Hong --- .../dali-test-suite-utils/test-platform-abstraction.cpp | 9 ++++++++- .../dali-test-suite-utils/test-platform-abstraction.h | 7 ++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-platform-abstraction.cpp b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-platform-abstraction.cpp index 290f663..fa5ac89 100644 --- a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-platform-abstraction.cpp +++ b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-platform-abstraction.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2024 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. @@ -84,6 +84,13 @@ bool TestPlatformAbstraction::LoadShaderBinaryFile(const std::string& filename, return mLoadFileResult.loadResult; } +bool TestPlatformAbstraction::SaveShaderBinaryFile(const std::string& filename, const unsigned char* buffer, unsigned int numBytes) const +{ + mTrace.PushCall("SaveShaderBinaryFile", ""); + + return mSaveFileResult; +} + /** Call this every test */ void TestPlatformAbstraction::Initialize() { diff --git a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-platform-abstraction.h b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-platform-abstraction.h index 3146e2d..707e2fe 100644 --- a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-platform-abstraction.h +++ b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-platform-abstraction.h @@ -2,7 +2,7 @@ #define DALI_TEST_PLATFORM_ABSTRACTION_H /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2024 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. @@ -85,10 +85,7 @@ public: /** * @copydoc PlatformAbstraction::SaveShaderBinaryFile() */ - virtual bool SaveShaderBinaryFile(const std::string& filename, const unsigned char* buffer, unsigned int numBytes) const override - { - return true; - } + bool SaveShaderBinaryFile(const std::string& filename, const unsigned char* buffer, unsigned int numBytes) const override; /** * @copydoc PlatformAbstraction::StartTimer() -- 2.7.4