chromium/components/optimization_guide/core/model_handler_unittest.cc

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

#include "base/path_service.h"
#include "base/task/cancelable_task_tracker.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/task_environment.h"
#include "components/optimization_guide/core/test_model_executor.h"
#include "components/optimization_guide/core/test_model_handler.h"
#include "components/optimization_guide/core/test_model_info_builder.h"
#include "components/optimization_guide/core/test_optimization_guide_model_provider.h"
#include "components/optimization_guide/proto/common_types.pb.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace optimization_guide {
namespace {

class ModelObserverTracker : public TestOptimizationGuideModelProvider {};

class ModelHandlerTest : public testing::Test {};

TEST_F(ModelHandlerTest, ObserverIsAttachedCorrectly) {}

TEST_F(ModelHandlerTest, ModelFileUpdatedWrongTarget) {}

TEST_F(ModelHandlerTest, ParsedSupportedFeaturesForLoadedModelNoMetadata) {}

TEST_F(ModelHandlerTest, MultipleModelUpdatesOnlyRecordsMetricOnce) {}

TEST_F(ModelHandlerTest, ParsedSupportedFeaturesForLoadedModelWithMetadata) {}

TEST_F(ModelHandlerTest, Execute) {}

TEST_F(ModelHandlerTest, ExecuteWithCancelableTaskTracker) {}

TEST_F(ModelHandlerTest, ExecuteWithCancelableTaskTrackerCanceled) {}

TEST_F(ModelHandlerTest, BatchExecuteModelWithInputSync) {}

TEST_F(ModelHandlerTest, AddOnModelUpdatedCallback_RunsImmediately) {}

TEST_F(ModelHandlerTest, AddOnModelUpdatedCallback_RunsOnUpdate) {}

TEST_F(ModelHandlerTest, AddOnModelUpdatedCallback_NeverRun) {}

}  // namespace
}  // namespace optimization_guide