chromium/components/tpcd/enterprise_reporting/enterprise_reporting_tab_helper_unittest.cc

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

#include "components/tpcd/enterprise_reporting/enterprise_reporting_tab_helper.h"

#include "base/test/scoped_feature_list.h"
#include "base/test/values_test_util.h"
#include "base/values.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/test/mock_navigation_handle.h"
#include "content/public/test/test_renderer_host.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "net/base/features.h"
#include "net/cookies/cookie_inclusion_status.h"
#include "services/network/test/test_network_context.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace tpcd::enterprise_reporting {
namespace {

class MockNetworkContext : public network::TestNetworkContext {};

class EnterpriseReportingTabHelperTest
    : public content::RenderViewHostTestHarness {};

// RenderFrameHost tests

TEST_F(EnterpriseReportingTabHelperTest,
       RenderFrameHostReportingFeatureDisabled) {}

TEST_F(
    EnterpriseReportingTabHelperTest,
    RenderFrameHostOnCookiesAccessedWithExcludeThirdPartyBlockedWithinFirstPartySetError) {}

TEST_F(EnterpriseReportingTabHelperTest,
       RenderFrameHostOnCookiesAccessedWithExcludeThirdPartyPhaseoutError) {}

TEST_F(EnterpriseReportingTabHelperTest,
       RenderFrameHostOnCookiesAccessedWithWarnThirdPartyPhaseoutWarning) {}

TEST_F(EnterpriseReportingTabHelperTest,
       RenderFrameHostOnCookiesAccessedWithoutQueueingReport) {}

// NavigationHandle tests

TEST_F(EnterpriseReportingTabHelperTest,
       NavigationHandleReportingFeatureDisabled) {}

TEST_F(
    EnterpriseReportingTabHelperTest,
    NavigationHandleOnCookiesAccessedWithExcludeThirdPartyBlockedWithinFirstPartySetError) {}

TEST_F(EnterpriseReportingTabHelperTest,
       NavigationHandleOnCookiesAccessedWithExcludeThirdPartyPhaseoutError) {}

TEST_F(EnterpriseReportingTabHelperTest,
       NavigationHandleOnCookiesAccessedWithWarnThirdPartyPhaseoutWarning) {}

TEST_F(EnterpriseReportingTabHelperTest,
       NavigationHandleOnCookiesAccessedWithoutQueueingReport) {}

}  // namespace
}  // namespace tpcd::enterprise_reporting