chromium/remoting/host/webauthn/remote_webauthn_message_handler_unittest.cc

// Copyright 2022 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/host/webauthn/remote_webauthn_message_handler.h"

#include <stdint.h>

#include <memory>

#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "remoting/host/mojom/webauthn_proxy.mojom.h"
#include "remoting/host/webauthn/remote_webauthn_state_change_notifier.h"
#include "remoting/proto/remote_webauthn.pb.h"
#include "remoting/protocol/fake_message_pipe.h"
#include "remoting/protocol/fake_message_pipe_wrapper.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace remoting {
namespace {

Return;

protocol::RemoteWebAuthn ParseMessage(const std::string& data) {}

decltype(auto) QuitRunLoopOnSecondRun(bool& run_already_once_tracker,
                                      base::RunLoop& run_loop) {}

MATCHER(NullResponse, "") {}

MATCHER_P(ResponseDataMatches, response_data, "") {}

MATCHER_P2(ResponseErrorMatches, error_name, error_message, "") {}

MATCHER_P(ResponseErrorNameMatches, error_name, "") {}

class MockRemoteWebAuthnStateChangeNotifier
    : public RemoteWebAuthnStateChangeNotifier {};

}  // namespace

class RemoteWebAuthnMessageHandlerTest : public testing::Test {};

RemoteWebAuthnMessageHandlerTest::RemoteWebAuthnMessageHandlerTest() {}

RemoteWebAuthnMessageHandlerTest::~RemoteWebAuthnMessageHandlerTest() = default;

void RemoteWebAuthnMessageHandlerTest::SetUp() {}

void RemoteWebAuthnMessageHandlerTest::TearDown() {}

mojo::Remote<mojom::WebAuthnProxy>
RemoteWebAuthnMessageHandlerTest::AddReceiverAndPassRemote() {}

protocol::RemoteWebAuthn
RemoteWebAuthnMessageHandlerTest::GetLatestSentMessage() {}

TEST_F(RemoteWebAuthnMessageHandlerTest, NotifyWebAuthnStateChange) {}

TEST_F(RemoteWebAuthnMessageHandlerTest, IsUvpaa) {}

TEST_F(RemoteWebAuthnMessageHandlerTest, Create_Success) {}

TEST_F(RemoteWebAuthnMessageHandlerTest, Create_Failure) {}

TEST_F(RemoteWebAuthnMessageHandlerTest, Create_NullResponse) {}

TEST_F(RemoteWebAuthnMessageHandlerTest, Get_Success) {}

TEST_F(RemoteWebAuthnMessageHandlerTest, Get_Failure) {}

TEST_F(RemoteWebAuthnMessageHandlerTest, Get_NullResponse) {}

TEST_F(RemoteWebAuthnMessageHandlerTest, CancelCreate_Success) {}

TEST_F(RemoteWebAuthnMessageHandlerTest, CancelCreate_Failure) {}

TEST_F(RemoteWebAuthnMessageHandlerTest, CancelGet_Success) {}

TEST_F(RemoteWebAuthnMessageHandlerTest, CancelGet_Failure) {}

}  // namespace remoting