#include <memory>
#include "base/containers/contains.h"
#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/error_reporting/mock_chrome_js_error_report_processor.h"
#include "chrome/browser/prefs/session_startup_pref.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sessions/session_service_factory.h"
#include "chrome/browser/sessions/session_service_test_helper.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/browser_navigator_params.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/crash/content/browser/error_reporting/mock_crash_endpoint.h"
#include "components/keep_alive_registry/keep_alive_types.h"
#include "components/keep_alive_registry/scoped_keep_alive.h"
#include "components/prefs/pref_service.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "net/test/embedded_test_server/http_response.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/page_transition_types.h"
#include "ui/events/keycodes/dom/dom_code.h"
#include "ui/events/keycodes/dom/dom_key.h"
#include "ui/events/keycodes/keyboard_codes.h"
Contains;
Field;
HasSubstr;
SizeIs;
namespace {
constexpr char kPageLoadMessage[] = …;
constexpr char kJavaScriptErrorPage[] = …;
constexpr char kWebpageErrorMessage[] = …;
std::unique_ptr<net::test_server::HttpResponse> ReturnErrorPage(
const net::test_server::HttpRequest&) { … }
class ScopedLogMessageWatcher { … };
ScopedLogMessageWatcher* ScopedLogMessageWatcher::current_handler_ = …;
}
class WebUIJSErrorReportingTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(WebUIJSErrorReportingTest, ReportsErrors) { … }
IN_PROC_BROWSER_TEST_F(WebUIJSErrorReportingTest,
ReportsErrorsDuringContinueWhereYouLeftOff) { … }
IN_PROC_BROWSER_TEST_F(WebUIJSErrorReportingTest, NoErrorsAfterNavigation) { … }
IN_PROC_BROWSER_TEST_F(WebUIJSErrorReportingTest, ExperimentListSmokeTest) { … }