chromium/components/optimization_guide/core/model_util_unittest.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

}  // namespace

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) {}

}  // namespace optimization_guide