#include "chrome/browser/plugins/plugin_info_host_impl.h"
#include <map>
#include <memory>
#include <string>
#include <utility>
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/i18n/rtl.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/icu_test_util.h"
#include "build/branding_buildflags.h"
#include "build/build_config.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/plugins/plugin_metadata.h"
#include "chrome/browser/plugins/plugin_utils.h"
#include "chrome/common/chrome_content_client.h"
#include "chrome/common/plugin.mojom-shared.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/testing_profile.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/content_settings/core/common/pref_names.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "content/public/browser/plugin_service.h"
#include "content/public/browser/plugin_service_filter.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/common/content_constants.h"
#include "content/public/common/webplugininfo.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
PluginService;
Eq;
namespace {
void PluginsLoaded(base::OnceClosure callback,
const std::vector<content::WebPluginInfo>& plugins) { … }
class FakePluginServiceFilter : public content::PluginServiceFilter { … };
bool FakePluginServiceFilter::IsPluginAvailable(
content::BrowserContext* browser_context,
const content::WebPluginInfo& plugin) { … }
bool FakePluginServiceFilter::CanLoadPlugin(int render_process_id,
const base::FilePath& path) { … }
}
class PluginInfoHostImplTest : public ::testing::Test { … };
TEST_F(PluginInfoHostImplTest, FindEnabledPlugin) { … }
TEST_F(PluginInfoHostImplTest, FindEnabledPluginWithBidiPdfViewerName) { … }