#include "chrome/browser/predictors/lcp_critical_path_predictor/lcp_critical_path_predictor_test_util.h"
#include <cmath>
namespace {
bool AlmostEqual(const double x, const double y) { … }
}
namespace predictors {
LcppData CreateLcppData(const std::string& host, uint64_t last_visit_time) { … }
void InitializeLcpElementLocatorBucket(LcppData& lcpp_data,
const std::string& lcp_element_locator,
double frequency) { … }
void InitializeLcpInfluencerScriptUrlsBucket(LcppData& lcpp_data,
const std::vector<GURL>& urls,
double frequency) { … }
void InitializeFontUrlsBucket(LcppData& lcpp_data,
const std::vector<GURL>& urls,
double frequency) { … }
void InitializeSubresourceUrlsBucket(LcppData& lcpp_data,
const std::vector<GURL>& urls,
double frequency) { … }
void InitializeLcpElementLocatorOtherBucket(LcppData& lcpp_data,
double frequency) { … }
void InitializeLcpInfluencerScriptUrlsOtherBucket(LcppData& lcpp_data,
double frequency) { … }
void InitializeFontUrlsOtherBucket(LcppData& lcpp_data, double frequency) { … }
void InitializeSubresourceUrlsOtherBucket(LcppData& lcpp_data,
double frequency) { … }
std::ostream& operator<<(std::ostream& os,
const LcpElementLocatorBucket& bucket) { … }
std::ostream& operator<<(std::ostream& os, const LcpElementLocatorStat& data) { … }
std::ostream& operator<<(std::ostream& os,
const LcppStringFrequencyStatData& data) { … }
std::ostream& operator<<(std::ostream& os, const LcppData& data) { … }
std::ostream& operator<<(std::ostream& os, const LcppKeyStat& key_stat) { … }
std::ostream& operator<<(std::ostream& os, const LcppStat& stat) { … }
bool operator==(const LcpElementLocatorBucket& lhs,
const LcpElementLocatorBucket& rhs) { … }
bool operator==(const LcpElementLocatorStat& lhs,
const LcpElementLocatorStat& rhs) { … }
bool operator==(const LcppStringFrequencyStatData& lhs,
const LcppStringFrequencyStatData& rhs) { … }
bool operator==(const LcppStat& lhs, const LcppStat& rhs) { … }
bool operator==(const LcppData& lhs, const LcppData& rhs) { … }
}