#include "components/performance_manager/test_support/persistence/test_site_data_reader.h"
#include <optional>
#include <utility>
#include "base/functional/callback.h"
#include "base/task/sequenced_task_runner.h"
#include "components/performance_manager/public/persistence/site_data/feature_usage.h"
namespace performance_manager::testing {
namespace {
SiteFeatureUsage UsageFromOptionalBool(std::optional<bool> feature) { … }
}
SimpleTestSiteDataReader::SimpleTestSiteDataReader(
const BackgroundFeatureUsage& usage)
: … { … }
SimpleTestSiteDataReader::~SimpleTestSiteDataReader() = default;
SiteFeatureUsage SimpleTestSiteDataReader::UpdatesFaviconInBackground() const { … }
SiteFeatureUsage SimpleTestSiteDataReader::UpdatesTitleInBackground() const { … }
SiteFeatureUsage SimpleTestSiteDataReader::UsesAudioInBackground() const { … }
bool SimpleTestSiteDataReader::DataLoaded() const { … }
void SimpleTestSiteDataReader::RegisterDataLoadedCallback(
base::OnceClosure&& callback) { … }
}