chromium/components/optimization_guide/core/optimization_guide_features_unittest.cc

// Copyright 2019 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/optimization_guide_features.h"

#include <limits>
#include <string>

#include "base/feature_list.h"
#include "base/metrics/field_trial.h"
#include "base/metrics/field_trial_params.h"
#include "base/strings/string_number_conversions.h"
#include "base/system/sys_info.h"
#include "base/test/scoped_feature_list.h"
#include "build/build_config.h"
#include "components/optimization_guide/core/feature_registry/feature_registration.h"
#include "components/optimization_guide/core/feature_registry/mqls_feature_registry.h"
#include "components/optimization_guide/core/model_util.h"
#include "components/optimization_guide/core/optimization_guide_constants.h"
#include "components/optimization_guide/proto/models.pb.h"
#include "components/prefs/testing_pref_service.h"
#include "google_apis/gaia/gaia_constants.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace optimization_guide {

namespace {

class OptimizationGuideFeaturesTest : public testing::Test {};

TEST_F(OptimizationGuideFeaturesTest,
       TestGetOptimizationGuideServiceGetHintsURLHTTPSOnly) {}

TEST_F(OptimizationGuideFeaturesTest,
       TestGetOptimizationGuideServiceGetHintsURLViaFinch) {}

TEST_F(OptimizationGuideFeaturesTest, ModelQualityLoggingDefault) {}

TEST_F(OptimizationGuideFeaturesTest,
       ModelQualityLoggingAlwaysDisabledForTestAndUnspecifiedFeatures) {}

TEST_F(OptimizationGuideFeaturesTest, ComposeModelQualityLoggingDisabled) {}

TEST_F(OptimizationGuideFeaturesTest, ModelQualityLoggingDisabled) {}

TEST_F(OptimizationGuideFeaturesTest,
       OptimizationGuidePersonalizedFetchingDefaultBehaviour) {}

TEST_F(OptimizationGuideFeaturesTest,
       OptimizationGuidePersonalizedFetchingPopulatedParam) {}

TEST_F(OptimizationGuideFeaturesTest,
       OptimizationGuidePersonalizedFetchingEmptyParam) {}

TEST_F(OptimizationGuideFeaturesTest, TestOverrideNumThreadsForOptTarget) {}

TEST_F(OptimizationGuideFeaturesTest, PredictionModelVersionInKillSwitch) {}

TEST_F(OptimizationGuideFeaturesTest,
       IsPerformanceClassCompatibleWithOnDeviceModel) {}

TEST_F(OptimizationGuideFeaturesTest, AllowedAdaptationRanks) {}

}  // namespace

}  // namespace optimization_guide