#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/message_loop/message_loop.h"
-#include "base/path_service.h"
#include "base/test/test_timeouts.h"
#include "base/timer/timer.h"
#include "crypto/rsa_private_key.h"
class SslHmacChannelAuthenticatorTest : public testing::Test {
public:
SslHmacChannelAuthenticatorTest() {}
- virtual ~SslHmacChannelAuthenticatorTest() {}
+ ~SslHmacChannelAuthenticatorTest() override {}
protected:
- virtual void SetUp() OVERRIDE {
+ void SetUp() override {
base::FilePath certs_dir(net::GetTestCertsDirectory());
base::FilePath cert_path = certs_dir.AppendASCII("unittest.selfsigned.der");
client_fake_socket_->PairWith(host_fake_socket_.get());
client_auth_->SecureAndAuthenticate(
- client_fake_socket_.PassAs<net::StreamSocket>(),
+ client_fake_socket_.Pass(),
base::Bind(&SslHmacChannelAuthenticatorTest::OnClientConnected,
base::Unretained(this)));
host_auth_->SecureAndAuthenticate(
- host_fake_socket_.PassAs<net::StreamSocket>(),
+ host_fake_socket_.Pass(),
base::Bind(&SslHmacChannelAuthenticatorTest::OnHostConnected,
base::Unretained(this), std::string("ref argument value")));