chromium/third_party/webrtc_overrides/p2p/base/fake_connection_factory.cc

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

#include "third_party/webrtc_overrides/p2p/base/fake_connection_factory.h"

#include <string_view>

#include "third_party/webrtc/p2p/base/basic_packet_socket_factory.h"
#include "third_party/webrtc/p2p/base/fake_port_allocator.h"
#include "third_party/webrtc/p2p/base/port.h"
#include "third_party/webrtc_overrides/rtc_base/fake_socket_factory.h"

namespace blink {

FakeConnectionFactory::FakeConnectionFactory(rtc::Thread* thread,
                                             base::WaitableEvent* readyEvent)
    :{}

void FakeConnectionFactory::Prepare(uint32_t allocator_flags) {}

cricket::Connection* FakeConnectionFactory::CreateConnection(
    webrtc::IceCandidateType type,
    std::string_view remote_ip,
    int remote_port,
    int priority) {}

void FakeConnectionFactory::OnPortReady(cricket::PortAllocatorSession* session,
                                        cricket::PortInterface* port) {}

cricket::Candidate FakeConnectionFactory::CreateUdpCandidate(
    webrtc::IceCandidateType type,
    std::string_view ip,
    int port,
    int priority,
    std::string_view ufrag) {}

}  // namespace blink