#include <string>
#include "base/command_line.h"
#include "base/memory/raw_ptr.h"
#include "base/test/metrics/histogram_tester.h"
#include "chrome/browser/ssl/chrome_security_state_tab_helper.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/test/mock_navigation_handle.h"
#include "content/public/test/navigation_simulator.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
const char kFormSubmissionSecurityLevelHistogram[] = …;
const char kInsecureMainFrameFormSubmissionSecurityLevelHistogram[] = …;
class SecurityStateTabHelperTest : public ChromeRenderViewHostTestHarness { … };
TEST_F(SecurityStateTabHelperTest, DoesNotRecreateHelper) { … }
TEST_F(SecurityStateTabHelperTest, DoesNotRecreateChromeHelper) { … }
class ChromeSecurityStateTabHelperHistogramTest
: public ChromeRenderViewHostTestHarness { … };
TEST_F(ChromeSecurityStateTabHelperHistogramTest, FormSubmissionHistogram) { … }
TEST_F(ChromeSecurityStateTabHelperHistogramTest,
InsecureMainFrameFormSubmissionHistogram) { … }
}