From: Adam Bujalski Date: Fri, 23 May 2025 11:25:58 +0000 (+0200) Subject: Fixing tizen_blink_unittests buildbreak X-Git-Tag: accepted/tizen/unified/20250613.092040~76 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9969b75a74b90bccfa3a145cc4ab8f26b127a8c8;p=platform%2Fframework%2Fweb%2Fchromium-efl.git Fixing tizen_blink_unittests buildbreak Adding stubs/mocks for missing references to following two methods: - pepper::TrustedPepperPluginInfoCache::GetInstance - pepper::TrustedPepperPluginInfoCache::GetPlugins Change-Id: Ia31950f9ca38f8b383a693be6718d861bf401df2 Signed-off-by: Adam Bujalski --- diff --git a/tizen_src/chromium_impl/third_party/blink/test/BUILD.gn b/tizen_src/chromium_impl/third_party/blink/test/BUILD.gn index 5dc658e6e18d..e2e880cffc81 100644 --- a/tizen_src/chromium_impl/third_party/blink/test/BUILD.gn +++ b/tizen_src/chromium_impl/third_party/blink/test/BUILD.gn @@ -2,6 +2,7 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +import("//ppapi/buildflags/buildflags.gni") # For the enable_plugins variable. import("//testing/test.gni") import("//third_party/blink/renderer/bindings/bindings.gni") import("//tizen_src/build/config/tizen_features.gni") @@ -64,6 +65,9 @@ source_set("tizen_blink_unittests_sources") { # configs += [ "//tizen_src/build:accessory" ] sources += [ "stub_gamepad_platform_data_fetcher_tizen_tv.cc" ] } + if (enable_plugins && tizen_pepper_extensions) { + sources += [ "stub_trusted_pepper_plugin_info_cache.cc" ] + } } test("tizen_blink_unittests") { diff --git a/tizen_src/chromium_impl/third_party/blink/test/stub_trusted_pepper_plugin_info_cache.cc b/tizen_src/chromium_impl/third_party/blink/test/stub_trusted_pepper_plugin_info_cache.cc new file mode 100644 index 000000000000..5474cc19b7b6 --- /dev/null +++ b/tizen_src/chromium_impl/third_party/blink/test/stub_trusted_pepper_plugin_info_cache.cc @@ -0,0 +1,22 @@ +// Copyright 2025 Samsung Electronics Inc. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "common/trusted_pepper_plugin_info_cache.h" +namespace pepper { + +// TrustedPepperPluginInfoCache: + +#if defined(TIZEN_PEPPER_EXTENSIONS) + +//static +TrustedPepperPluginInfoCache* TrustedPepperPluginInfoCache::GetInstance() { + return nullptr; +} + +void TrustedPepperPluginInfoCache::GetPlugins( + std::vector* plugins) {} + +#endif + +} // namespace pepper