#include "base/values.h"
#include "chrome/browser/extensions/api/chrome_extensions_api_client.h"
#include "chrome/browser/policy/policy_test_utils.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/policy_constants.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "extensions/browser/api/messaging/messaging_delegate.h"
namespace policy {
namespace {
extensions::MessagingDelegate::PolicyPermission IsNativeMessagingHostAllowed(
content::BrowserContext* browser_context,
const std::string& native_host_name) { … }
}
IN_PROC_BROWSER_TEST_F(PolicyTest, NativeMessagingBlocklistSelective) { … }
IN_PROC_BROWSER_TEST_F(PolicyTest, NativeMessagingBlocklistWildcard) { … }
IN_PROC_BROWSER_TEST_F(PolicyTest, NativeMessagingAllowlist) { … }
}