chromium/components/update_client/test_configurator.cc

// Copyright 2014 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/update_client/test_configurator.h"

#include <optional>
#include <string>
#include <tuple>
#include <utility>

#include "base/containers/flat_map.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/memory/scoped_refptr.h"
#include "base/path_service.h"
#include "base/time/time.h"
#include "base/version.h"
#include "components/prefs/pref_service.h"
#include "components/services/patch/in_process_file_patcher.h"
#include "components/services/unzip/in_process_unzipper.h"
#include "components/update_client/activity_data_service.h"
#include "components/update_client/crx_downloader_factory.h"
#include "components/update_client/net/network_chromium.h"
#include "components/update_client/patch/patch_impl.h"
#include "components/update_client/patcher.h"
#include "components/update_client/persisted_data.h"
#include "components/update_client/protocol_handler.h"
#include "components/update_client/test_activity_data_service.h"
#include "components/update_client/unzip/unzip_impl.h"
#include "components/update_client/unzipper.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "url/gurl.h"

namespace update_client {

namespace {

std::vector<GURL> MakeDefaultUrls() {}

}  // namespace

TestConfigurator::TestConfigurator(PrefService* pref_service)
    :{}

TestConfigurator::~TestConfigurator() = default;

base::TimeDelta TestConfigurator::InitialDelay() const {}

base::TimeDelta TestConfigurator::NextCheckDelay() const {}

base::TimeDelta TestConfigurator::OnDemandDelay() const {}

base::TimeDelta TestConfigurator::UpdateDelay() const {}

std::vector<GURL> TestConfigurator::UpdateUrl() const {}

std::vector<GURL> TestConfigurator::PingUrl() const {}

std::string TestConfigurator::GetProdId() const {}

base::Version TestConfigurator::GetBrowserVersion() const {}

std::string TestConfigurator::GetChannel() const {}

std::string TestConfigurator::GetLang() const {}

std::string TestConfigurator::GetOSLongName() const {}

base::flat_map<std::string, std::string> TestConfigurator::ExtraRequestParams()
    const {}

std::string TestConfigurator::GetDownloadPreference() const {}

scoped_refptr<NetworkFetcherFactory>
TestConfigurator::GetNetworkFetcherFactory() {}

scoped_refptr<CrxDownloaderFactory>
TestConfigurator::GetCrxDownloaderFactory() {}

scoped_refptr<UnzipperFactory> TestConfigurator::GetUnzipperFactory() {}

scoped_refptr<PatcherFactory> TestConfigurator::GetPatcherFactory() {}

bool TestConfigurator::EnabledDeltas() const {}

bool TestConfigurator::EnabledBackgroundDownloader() const {}

bool TestConfigurator::EnabledCupSigning() const {}

PrefService* TestConfigurator::GetPrefService() const {}

PersistedData* TestConfigurator::GetPersistedData() const {}

bool TestConfigurator::IsPerUserInstall() const {}

std::unique_ptr<ProtocolHandlerFactory>
TestConfigurator::GetProtocolHandlerFactory() const {}

std::optional<bool> TestConfigurator::IsMachineExternallyManaged() const {}

UpdaterStateProvider TestConfigurator::GetUpdaterStateProvider() const {}

std::optional<base::FilePath> TestConfigurator::GetCrxCachePath() const {}

bool TestConfigurator::IsConnectionMetered() const {}

void TestConfigurator::SetOnDemandTime(base::TimeDelta time) {}

void TestConfigurator::SetInitialDelay(base::TimeDelta delay) {}

void TestConfigurator::SetEnabledCupSigning(bool enabled_cup_signing) {}

void TestConfigurator::SetDownloadPreference(
    const std::string& download_preference) {}

void TestConfigurator::SetUpdateCheckUrl(const GURL& url) {}

void TestConfigurator::SetUpdateCheckUrls(const std::vector<GURL>& urls) {}

void TestConfigurator::SetPingUrl(const GURL& url) {}

void TestConfigurator::SetCrxDownloaderFactory(
    scoped_refptr<CrxDownloaderFactory> crx_downloader_factory) {}

void TestConfigurator::SetIsMachineExternallyManaged(
    std::optional<bool> is_machine_externally_managed) {}

void TestConfigurator::SetIsNetworkConnectionMetered(
    bool is_network_connection_metered) {}

void TestConfigurator::SetUpdaterStateProvider(
    UpdaterStateProvider update_state_provider) {}

}  // namespace update_client