chromium/chrome/test/user_education/interactive_feature_promo_test_internal.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 "chrome/test/user_education/interactive_feature_promo_test_internal.h"

#include <memory>
#include <optional>
#include <variant>

#include "base/containers/contains.h"
#include "base/containers/map_util.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/time/time.h"
#include "chrome/browser/feature_engagement/tracker_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/user_education/user_education_service.h"
#include "chrome/browser/user_education/user_education_service_factory.h"
#include "chrome/test/interaction/interactive_browser_test.h"
#include "chrome/test/interaction/interactive_browser_test_internal.h"
#include "chrome/test/user_education/interactive_feature_promo_test_common.h"
#include "components/feature_engagement/public/tracker.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/keyed_service/core/keyed_service.h"
#include "components/user_education/common/feature_promo_controller.h"
#include "components/user_education/common/feature_promo_data.h"
#include "components/user_education/common/user_education_features.h"
#include "components/user_education/test/feature_promo_session_test_util.h"
#include "content/public/browser/browser_context.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace internal {

namespace {

std::optional<base::Time> CalculateNewTime(
    base::Time now,
    InteractiveFeaturePromoTestCommon::NewTime time) {}

}  // namespace

InteractiveFeaturePromoTestPrivate::ProfileData::ProfileData() = default;
InteractiveFeaturePromoTestPrivate::ProfileData::ProfileData(
    ProfileData&&) noexcept = default;
InteractiveFeaturePromoTestPrivate::ProfileData::~ProfileData() = default;

InteractiveFeaturePromoTestPrivate::InteractiveFeaturePromoTestPrivate(
    std::unique_ptr<InteractionTestUtilBrowser> test_util,
    TrackerMode tracker_mode,
    ClockMode clock_mode,
    InitialSessionState initial_session_state)
    :{}

InteractiveFeaturePromoTestPrivate::~InteractiveFeaturePromoTestPrivate() =
    default;

void InteractiveFeaturePromoTestPrivate::DoTestTearDown() {}

InteractiveFeaturePromoTestPrivate::MockTracker*
InteractiveFeaturePromoTestPrivate::GetMockTrackerFor(Browser* browser) {}

void InteractiveFeaturePromoTestPrivate::AdvanceTime(NewTime new_time) {}

void InteractiveFeaturePromoTestPrivate::SetLastActive(NewTime time) {}

void InteractiveFeaturePromoTestPrivate::MaybeWaitForTrackerInitialization(
    Browser* browser) {}

void InteractiveFeaturePromoTestPrivate::CreateServicesCallback(
    content::BrowserContext* context) {}

// static
std::unique_ptr<KeyedService>
InteractiveFeaturePromoTestPrivate::CreateMockTracker(
    base::WeakPtr<InteractiveFeaturePromoTestPrivate> ptr,
    content::BrowserContext* context) {}

std::unique_ptr<KeyedService>
InteractiveFeaturePromoTestPrivate::CreateUserEducationService(
    base::WeakPtr<InteractiveFeaturePromoTestPrivate> ptr,
    content::BrowserContext* context) {}

void InteractiveFeaturePromoTestPrivate::OnProfileWillBeDestroyed(
    Profile* profile) {}

}  // namespace internal