chromium/chrome/browser/media/router/discovery/access_code/access_code_test_util.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 "chrome/browser/media/router/discovery/access_code/access_code_test_util.h"

#include "base/command_line.h"
#include "base/json/values_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "chrome/browser/media/router/discovery/access_code/access_code_media_sink_util.h"
#include "chrome/browser/media/router/discovery/mdns/media_sink_util.h"
#include "components/media_router/browser/media_router_factory.h"
#include "components/media_router/common/mojom/media_router.mojom.h"
#include "components/media_router/common/providers/cast/channel/cast_socket.h"
#include "net/base/host_port_pair.h"
#include "net/base/ip_address.h"
#include "net/base/port_util.h"
#include "net/base/url_util.h"

namespace media_router {
DiscoveryDevice BuildDiscoveryDeviceProto(const char* display_name,
                                          const char* sink_id,
                                          const char* port,
                                          const char* ip_v4,
                                          const char* ip_v6,
                                          bool set_device_capabilities,
                                          bool set_network_info) {}

// static
std::unique_ptr<KeyedService> MockAccessCodeCastSinkService::Create(
    content::BrowserContext* context) {}

MockAccessCodeCastSinkService::MockAccessCodeCastSinkService(
    Profile* profile,
    MediaRouter* media_router,
    CastMediaSinkServiceImpl* cast_media_sink_service_impl,
    DiscoveryNetworkMonitor* network_monitor)
    :{}

MockAccessCodeCastSinkService::~MockAccessCodeCastSinkService() = default;

MockAccessCodeCastPrefUpdater::MockAccessCodeCastPrefUpdater() = default;
MockAccessCodeCastPrefUpdater::~MockAccessCodeCastPrefUpdater() = default;

void MockAccessCodeCastPrefUpdater::UpdateDevicesDict(
    const MediaSinkInternal& sink,
    base::OnceClosure on_updated_callback) {}

void MockAccessCodeCastPrefUpdater::UpdateDeviceAddedTimeDict(
    const MediaSink::Id sink_id,
    base::OnceClosure on_updated_callback) {}

void MockAccessCodeCastPrefUpdater::GetDevicesDict(
    base::OnceCallback<void(base::Value::Dict)> get_devices_callback) {}

void MockAccessCodeCastPrefUpdater::GetDeviceAddedTimeDict(
    base::OnceCallback<void(base::Value::Dict)>
        get_device_added_time_callback) {}

void MockAccessCodeCastPrefUpdater::RemoveSinkIdFromDevicesDict(
    const MediaSink::Id sink_id,
    base::OnceClosure on_sink_removed_callback) {}

void MockAccessCodeCastPrefUpdater::RemoveSinkIdFromDeviceAddedTimeDict(
    const MediaSink::Id sink_id,
    base::OnceClosure on_sink_removed_callback) {}

void MockAccessCodeCastPrefUpdater::ClearDevicesDict(
    base::OnceClosure on_cleared_callback) {}

void MockAccessCodeCastPrefUpdater::ClearDeviceAddedTimeDict(
    base::OnceClosure on_cleared_callback) {}

void MockAccessCodeCastPrefUpdater::set_devices_dict(base::Value::Dict dict) {}

void MockAccessCodeCastPrefUpdater::set_device_added_time_dict(
    base::Value::Dict dict) {}

MediaRoute CreateRouteForTesting(const MediaSink::Id& sink_id) {}

}  // namespace media_router