#include "content/browser/interest_group/test_interest_group_observer.h"
#include <memory>
#include <string>
#include <tuple>
#include <vector>
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/time/time.h"
#include "content/browser/interest_group/interest_group_manager_impl.h"
#include "content/common/content_export.h"
#include "testing/gmock/include/gmock/gmock-matchers.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/origin.h"
namespace content {
TestInterestGroupObserver::Entry::Entry(
std::string devtools_auction_id,
InterestGroupManagerImpl::InterestGroupObserver::AccessType access_type,
url::Origin owner_origin,
std::string ig_name,
std::optional<double> bid,
std::optional<std::string> bid_currency,
std::optional<url::Origin> component_seller_origin)
: … { … }
TestInterestGroupObserver::Entry::Entry(const Entry&) = default;
TestInterestGroupObserver::Entry::~Entry() = default;
TestInterestGroupObserver::Entry& TestInterestGroupObserver::Entry::operator=(
const Entry&) = default;
bool TestInterestGroupObserver::Entry::operator==(const Entry&) const = default;
TestInterestGroupObserver::TestInterestGroupObserver() = default;
TestInterestGroupObserver::~TestInterestGroupObserver() = default;
void TestInterestGroupObserver::OnInterestGroupAccessed(
base::optional_ref<const std::string> devtools_auction_id,
base::Time access_time,
InterestGroupManagerImpl::InterestGroupObserver::AccessType type,
const url::Origin& owner_origin,
const std::string& name,
base::optional_ref<const url::Origin> component_seller_origin,
std::optional<double> bid,
base::optional_ref<const std::string> bid_currency) { … }
void TestInterestGroupObserver::WaitForAccesses(
const std::vector<Entry>& expected) { … }
void TestInterestGroupObserver::WaitForAccessesInOrder(
const std::vector<Entry>& expected) { … }
void PrintTo(const TestInterestGroupObserver::Entry& e, std::ostream* os) { … }
}