chromium/chrome/browser/enterprise/reporting/legacy_tech/legacy_tech_service_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/enterprise/reporting/legacy_tech/legacy_tech_service.h"

#include <functional>
#include <optional>

#include "base/functional/callback_forward.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "chrome/browser/enterprise/reporting/legacy_tech/legacy_tech_report_generator.h"
#include "chrome/browser/enterprise/reporting/prefs.h"
#include "chrome/test/base/testing_profile.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "content/public/browser/legacy_tech_cookie_issue_details.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"

_;
Eq;

namespace enterprise_reporting {

namespace {

constexpr char kType[] =;
constexpr char kUrl[] =;
constexpr char kFrameUrl[] =;
constexpr char kFileName[] =;
constexpr uint64_t kLine =;
constexpr uint64_t kColumn =;

constexpr char kCookieIssueScriptUrl[] =;
constexpr char kCookieName[] =;
constexpr char kCookieDomain[] =;
constexpr char kCookiePath[] =;
constexpr content::LegacyTechCookieIssueDetails::AccessOperation
    kCookieAccessOperation =;

}  // namespace

class LegacyTechServiceTest : public ::testing::Test {};

TEST_F(LegacyTechServiceTest, Disabled) {}

TEST_F(LegacyTechServiceTest, NoMatched) {}

TEST_F(LegacyTechServiceTest, MatchedAndUpload) {}

TEST_F(LegacyTechServiceTest, MatchedAndUploadWithCookieIssueDetails) {}

TEST_F(LegacyTechServiceTest, DelayedInitialization) {}

TEST_F(LegacyTechServiceTest, MatchedAndUploadWithFrameUrl) {}

TEST_F(LegacyTechServiceTest, DelayedInitializationWithFrameUrl) {}

}  // namespace enterprise_reporting