#include "components/optimization_guide/core/model_util.h"
#include "base/base64.h"
#include "base/command_line.h"
#include "base/ranges/algorithm.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "components/optimization_guide/core/optimization_guide_switches.h"
#include "components/optimization_guide/core/optimization_guide_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace optimization_guide {
namespace {
#if BUILDFLAG(IS_WIN)
const char kOtherAbsoluteFilePath[] = "C:\\other\\absolute\\file\\path";
#else
const char kOtherAbsoluteFilePath[] = …;
#endif
proto::ModelCacheKey CreateModelCacheKey(const std::string& locale) { … }
}
TEST(ModelUtilTest, GetModelOverrideForOptimizationTargetSwitchNotSet) { … }
TEST(ModelUtilTest, GetModelOverrideForOptimizationTargetEmptyInput) { … }
TEST(ModelUtilTest, GetModelOverrideForOptimizationTargetBadInput) { … }
TEST(ModelUtilTest,
GetModelOverrideForOptimizationTargetInvalidOptimizationTarget) { … }
TEST(ModelUtilTest, GetModelOverrideForOptimizationTargetRelativeFilePath) { … }
TEST(ModelUtilTest,
GetModelOverrideForOptimizationTargetRelativeFilePathWithMetadata) { … }
TEST(ModelUtilTest, GetModelOverrideForOptimizationTargetOneFilePath) { … }
TEST(ModelUtilTest, GetModelOverrideForOptimizationTargetMultipleFilePath) { … }
TEST(ModelUtilTest, ModelCacheKeyHash) { … }
TEST(ModelUtilTest, PredictionModelVersionInKillSwitch) { … }
}