#include "base/test/bind.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/browser_element_identifiers.h"
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/base/ui_test_utils.h"
#include "chrome/test/interaction/interactive_browser_test.h"
#include "chrome/test/interaction/webcontents_interaction_test_util.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/content_settings/core/common/content_settings.h"
#include "components/content_settings/core/common/content_settings_types.h"
#include "components/content_settings/core/common/pref_names.h"
#include "components/permissions/features.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "ui/base/interaction/element_tracker.h"
#include "ui/base/interaction/interaction_sequence.h"
#include "ui/views/interaction/interaction_test_util_views.h"
namespace {
DEFINE_LOCAL_ELEMENT_IDENTIFIER_VALUE(…);
DEFINE_LOCAL_CUSTOM_ELEMENT_EVENT_TYPE(…);
const WebContentsInteractionTestUtil::DeepQuery kAskButton{ … };
const WebContentsInteractionTestUtil::DeepQuery kQuietButton{ … };
const WebContentsInteractionTestUtil::DeepQuery kCpssButton{ … };
const WebContentsInteractionTestUtil::DeepQuery kLoudButton{ … };
const WebContentsInteractionTestUtil::DeepQuery kBlockButton{ … };
}
class PredictionSettingsPageBrowserTest : public InteractiveBrowserTest { … };
IN_PROC_BROWSER_TEST_F(PredictionSettingsPageBrowserTest,
TestNotificationSettingsPrefs) { … }
IN_PROC_BROWSER_TEST_F(PredictionSettingsPageBrowserTest,
TestDefaultRadioGroupState) { … }
IN_PROC_BROWSER_TEST_F(PredictionSettingsPageBrowserTest,
TestQuiteRadioGroupState) { … }
IN_PROC_BROWSER_TEST_F(PredictionSettingsPageBrowserTest,
TestLoudRadioGroupState) { … }
IN_PROC_BROWSER_TEST_F(PredictionSettingsPageBrowserTest,
TestBlockRadioGroupState) { … }