chromium/chrome/browser/safe_browsing/chrome_ping_manager_factory_unittest.cc

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

#include "chrome/browser/safe_browsing/chrome_ping_manager_factory.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/time/time.h"
#include "chrome/browser/safe_browsing/chrome_user_population_helper.h"
#include "chrome/browser/safe_browsing/test_safe_browsing_service.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "chrome/browser/signin/identity_test_environment_profile_adaptor.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/base/testing_profile_manager.h"
#include "components/safe_browsing/core/browser/ping_manager.h"
#include "components/safe_browsing/core/common/proto/csd.pb.h"
#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
#include "components/signin/public/identity_manager/identity_test_environment.h"
#include "components/signin/public/identity_manager/identity_test_utils.h"
#include "content/public/test/browser_task_environment.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/test/test_url_loader_factory.h"
#include "services/network/test/test_utils.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

GetUploadData;

namespace safe_browsing {

class ChromePingManagerFactoryTest : public testing::Test {};

void ChromePingManagerFactoryTest::SetUp() {}

void ChromePingManagerFactoryTest::TearDown() {}

TestingProfile* ChromePingManagerFactoryTest::SetUpProfile(
    bool is_enhanced_protection,
    bool is_signed_in) {}

void ChromePingManagerFactoryTest::RunShouldFetchAccessTokenForReportTest(
    bool is_enhanced_protection,
    bool is_signed_in,
    bool expect_should_fetch) {}

void ChromePingManagerFactoryTest::RunReportThreatDetailsTest() {}

bool ChromePingManagerFactoryTest::ShouldSendPersistedReport(Profile* profile) {}

TEST_F(ChromePingManagerFactoryTest, ReportThreatDetails) {}
TEST_F(ChromePingManagerFactoryTest, ShouldFetchAccessTokenForReport_Yes) {}
TEST_F(ChromePingManagerFactoryTest,
       ShouldFetchAccessTokenForReport_NotSignedIn) {}
TEST_F(ChromePingManagerFactoryTest,
       ShouldFetchAccessTokenForReport_NotEnhancedProtection) {}

TEST_F(ChromePingManagerFactoryTest, ShouldSendPersistedReport_Yes) {}

TEST_F(ChromePingManagerFactoryTest,
       ShouldSendPersistedReport_NotEnhancedProtection) {}

TEST_F(ChromePingManagerFactoryTest, ShouldSendPersistedReport_Incognito) {}

TEST_F(ChromePingManagerFactoryTest, NoPingManagerForIncognito) {}

}  // namespace safe_browsing