#include "remoting/protocol/authenticator_test_base.h"
#include <memory>
#include <utility>
#include "base/base64.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/test/test_timeouts.h"
#include "base/timer/timer.h"
#include "net/base/net_errors.h"
#include "net/test/test_data_directory.h"
#include "remoting/base/rsa_key_pair.h"
#include "remoting/protocol/authenticator.h"
#include "remoting/protocol/channel_authenticator.h"
#include "remoting/protocol/fake_stream_socket.h"
#include "remoting/protocol/p2p_stream_socket.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
_;
SaveArg;
namespace remoting::protocol {
namespace {
ACTION_P2(QuitThreadOnCounter, quit_closure, counter) { … }
}
AuthenticatorTestBase::MockChannelDoneCallback::MockChannelDoneCallback() =
default;
AuthenticatorTestBase::MockChannelDoneCallback::~MockChannelDoneCallback() =
default;
AuthenticatorTestBase::AuthenticatorTestBase() = default;
AuthenticatorTestBase::~AuthenticatorTestBase() = default;
void AuthenticatorTestBase::SetUp() { … }
void AuthenticatorTestBase::RunAuthExchange() { … }
void AuthenticatorTestBase::RunHostInitiatedAuthExchange() { … }
void AuthenticatorTestBase::ContinueAuthExchangeWith(Authenticator* sender,
Authenticator* receiver,
bool sender_started,
bool receiver_started) { … }
void AuthenticatorTestBase::RunChannelAuth(bool expected_fail) { … }
void AuthenticatorTestBase::OnHostConnected(
int error,
std::unique_ptr<P2PStreamSocket> socket) { … }
void AuthenticatorTestBase::OnClientConnected(
int error,
std::unique_ptr<P2PStreamSocket> socket) { … }
}