#include "base/files/file_util.h"
#include "base/test/simple_test_clock.h"
#include "base/threading/thread_restrictions.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ssl/known_interception_disclosure_infobar_delegate.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_enums.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/infobars/content/content_infobar_manager.h"
#include "components/infobars/core/confirm_infobar_delegate.h"
#include "components/infobars/core/infobar.h"
#include "content/public/browser/network_service_instance.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "net/cert/crl_set.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "net/test/test_data_directory.h"
#include "services/cert_verifier/public/mojom/cert_verifier_service_factory.mojom.h"
#include "ui/base/window_open_disposition.h"
namespace {
size_t GetInfobarCount(content::WebContents* contents) { … }
infobars::InfoBar* GetInfobar(content::WebContents* contents) { … }
void CloseInfobar(content::WebContents* contents) { … }
}
class KnownInterceptionDisclosureInfobarTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(KnownInterceptionDisclosureInfobarTest,
OnlyShowDisclosureOncePerSession) { … }
IN_PROC_BROWSER_TEST_F(KnownInterceptionDisclosureInfobarTest,
PRE_CooldownResetsOnBrowserRestartDesktop) { … }
#if BUILDFLAG(IS_CHROMEOS_LACROS)
#define MAYBE_CooldownResetsOnBrowserRestartDesktop …
#else
#define MAYBE_CooldownResetsOnBrowserRestartDesktop …
#endif
IN_PROC_BROWSER_TEST_F(KnownInterceptionDisclosureInfobarTest,
MAYBE_CooldownResetsOnBrowserRestartDesktop) { … }