chromium/chrome/browser/ssl/security_state_tab_helper_unittest.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

// Tests that insecure mainframe form submission histograms are recorded
// correctly.
TEST_F(ChromeSecurityStateTabHelperHistogramTest,
       InsecureMainFrameFormSubmissionHistogram) {}

}  // namespace