Fixing tizen_blink_unittests buildbreak 18/324718/2
authorAdam Bujalski <a.bujalski@samsung.com>
Fri, 23 May 2025 11:25:58 +0000 (13:25 +0200)
committerBot Blink <blinkbot@samsung.com>
Sat, 24 May 2025 06:05:36 +0000 (06:05 +0000)
Adding stubs/mocks for missing references to following two methods:
- pepper::TrustedPepperPluginInfoCache::GetInstance
- pepper::TrustedPepperPluginInfoCache::GetPlugins

Change-Id: Ia31950f9ca38f8b383a693be6718d861bf401df2
Signed-off-by: Adam Bujalski <a.bujalski@samsung.com>
tizen_src/chromium_impl/third_party/blink/test/BUILD.gn
tizen_src/chromium_impl/third_party/blink/test/stub_trusted_pepper_plugin_info_cache.cc [new file with mode: 0644]

index 5dc658e6e18d917930dfd4ea9f5562efd96ccb58..e2e880cffc81765d9d1065040319902c4d9b4b70 100644 (file)
@@ -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 (file)
index 0000000..5474cc1
--- /dev/null
@@ -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<content::ContentPluginInfo>* plugins) {}
+
+#endif
+
+}  // namespace pepper