chromium/remoting/protocol/fake_authenticator.cc

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

#include "remoting/protocol/fake_authenticator.h"

#include <memory>
#include <utility>

#include "base/base64.h"
#include "base/functional/bind.h"
#include "base/rand_util.h"
#include "base/strings/string_number_conversions.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "remoting/base/constants.h"
#include "remoting/protocol/authenticator.h"
#include "remoting/protocol/p2p_stream_socket.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/libjingle_xmpp/xmllite/xmlelement.h"

namespace remoting::protocol {

FakeChannelAuthenticator::FakeChannelAuthenticator(bool accept, bool async)
    :{}

FakeChannelAuthenticator::~FakeChannelAuthenticator() = default;

void FakeChannelAuthenticator::SecureAndAuthenticate(
    std::unique_ptr<P2PStreamSocket> socket,
    DoneCallback done_callback) {}

void FakeChannelAuthenticator::OnAuthBytesWritten(int result) {}

void FakeChannelAuthenticator::OnAuthBytesRead(int result) {}

void FakeChannelAuthenticator::CallDoneCallback() {}

FakeAuthenticator::Config::Config() = default;
FakeAuthenticator::Config::Config(Action action) :{}
FakeAuthenticator::Config::Config(int round_trips, Action action, bool async)
    :{}

FakeAuthenticator::FakeAuthenticator(Type type,
                                     FakeAuthenticator::Config config,
                                     const std::string& local_id,
                                     const std::string& remote_id)
    :{}

FakeAuthenticator::FakeAuthenticator(Action action)
    :{}

FakeAuthenticator::~FakeAuthenticator() = default;

void FakeAuthenticator::set_messages_till_started(int messages) {}

void FakeAuthenticator::Resume() {}

CredentialsType FakeAuthenticator::credentials_type() const {}

const Authenticator& FakeAuthenticator::implementing_authenticator() const {}

Authenticator::State FakeAuthenticator::state() const {}

bool FakeAuthenticator::started() const {}

Authenticator::RejectionReason FakeAuthenticator::rejection_reason() const {}

void FakeAuthenticator::ProcessMessage(const jingle_xmpp::XmlElement* message,
                                       base::OnceClosure resume_callback) {}

std::unique_ptr<jingle_xmpp::XmlElement> FakeAuthenticator::GetNextMessage() {}

const std::string& FakeAuthenticator::GetAuthKey() const {}

std::unique_ptr<ChannelAuthenticator>
FakeAuthenticator::CreateChannelAuthenticator() const {}

void FakeAuthenticator::SubscribeRejectedAfterAcceptedIfNecessary() {}

FakeHostAuthenticatorFactory::FakeHostAuthenticatorFactory(
    int messages_till_started,
    FakeAuthenticator::Config config)
    :{}
FakeHostAuthenticatorFactory::~FakeHostAuthenticatorFactory() = default;

std::unique_ptr<Authenticator>
FakeHostAuthenticatorFactory::CreateAuthenticator(
    const std::string& local_jid,
    const std::string& remote_jid) {}

}  // namespace remoting::protocol