#include "remoting/protocol/ssl_hmac_channel_authenticator.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/task_environment.h"
#include "base/test/test_timeouts.h"
#include "base/timer/timer.h"
#include "crypto/rsa_private_key.h"
#include "net/base/net_errors.h"
#include "net/cert/x509_util.h"
#include "net/test/cert_test_util.h"
#include "net/test/test_data_directory.h"
#include "remoting/base/rsa_key_pair.h"
#include "remoting/protocol/connection_tester.h"
#include "remoting/protocol/fake_session.h"
#include "remoting/protocol/p2p_stream_socket.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
_;
NotNull;
SaveArg;
namespace remoting::protocol {
namespace {
const char kTestSharedSecret[] = …;
const char kTestSharedSecretBad[] = …;
class MockChannelDoneCallback { … };
ACTION_P2(QuitThreadOnCounter, quit_closure, counter) { … }
}
class SslHmacChannelAuthenticatorTest : public testing::Test { … };
TEST_F(SslHmacChannelAuthenticatorTest, SuccessfulAuth) { … }
TEST_F(SslHmacChannelAuthenticatorTest, InvalidChannelSecret) { … }
TEST_F(SslHmacChannelAuthenticatorTest, InvalidCertificate) { … }
}