#include "components/blocked_content/popup_opener_tab_helper.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_enums.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/ukm/test_ukm_recorder.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/test_navigation_observer.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
const char kUkmAllowed[] = …;
}
class PopupOpenerTabHelperBrowserTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(PopupOpenerTabHelperBrowserTest,
UserDefaultPopupBlockerSetting_MetricLoggedOnPopup) { … }
IN_PROC_BROWSER_TEST_F(PopupOpenerTabHelperBrowserTest,
UserAllowsAllPopups_MetricLoggedOnPopup) { … }