chromium/third_party/blink/renderer/modules/peerconnection/mock_data_channel_impl.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 "third_party/blink/renderer/modules/peerconnection/mock_data_channel_impl.h"

#include "base/notreached.h"

namespace blink {

MockDataChannel::MockDataChannel(const std::string& label,
                                 const webrtc::DataChannelInit* config)
    :{}

MockDataChannel::~MockDataChannel() {}

void MockDataChannel::RegisterObserver(webrtc::DataChannelObserver* observer) {}

void MockDataChannel::UnregisterObserver() {}

std::string MockDataChannel::label() const {}

bool MockDataChannel::reliable() const {}

bool MockDataChannel::ordered() const {}

std::string MockDataChannel::protocol() const {}

bool MockDataChannel::negotiated() const {}

int MockDataChannel::id() const {}

MockDataChannel::DataState MockDataChannel::state() const {}

uint32_t MockDataChannel::messages_sent() const {}

uint64_t MockDataChannel::bytes_sent() const {}

uint32_t MockDataChannel::messages_received() const {}

uint64_t MockDataChannel::bytes_received() const {}

// For testing.
void MockDataChannel::changeState(DataState state) {}

uint64_t MockDataChannel::buffered_amount() const {}

void MockDataChannel::Close() {}

bool MockDataChannel::Send(const webrtc::DataBuffer& buffer) {}

void MockDataChannel::SendAsync(
    webrtc::DataBuffer buffer,
    absl::AnyInvocable<void(webrtc::RTCError) &&> on_complete) {}

}  // namespace blink