chromium/components/optimization_guide/core/prediction_model_fetcher_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 <memory>
#include <optional>
#include <string>
#include <vector>

#include "base/functional/callback.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/scoped_refptr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/task_environment.h"
#include "components/optimization_guide/core/optimization_guide_features.h"
#include "components/optimization_guide/core/prediction_model_fetcher_impl.h"
#include "components/optimization_guide/proto/models.pb.h"
#include "components/variations/scoped_variations_ids_provider.h"
#include "net/base/url_util.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/test/test_url_loader_factory.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace optimization_guide {

constexpr char optimization_guide_service_url[] =;

class PredictionModelFetcherTest : public testing::Test {};

TEST_F(PredictionModelFetcherTest, FetchOptimizationGuideServiceModels) {}

// Tests 404 response from request.
TEST_F(PredictionModelFetcherTest, FetchReturned404) {}

TEST_F(PredictionModelFetcherTest, FetchReturnBadResponse) {}

TEST_F(PredictionModelFetcherTest, EmptyModelInfo) {}

}  // namespace optimization_guide