chromium/device/fido/virtual_u2f_device_unittest.cc

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

#include "device/fido/virtual_u2f_device.h"

#include <cstdint>
#include <memory>

#include "base/containers/span.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/scoped_refptr.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "device/fido/fido_parsing_utils.h"
#include "device/fido/fido_test_data.h"
#include "device/fido/virtual_fido_device.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace device {

namespace {

void SendCommand(VirtualU2fDevice* device, base::span<const uint8_t> command) {}

}  // namespace

class VirtualU2fDeviceTest : public ::testing::Test {};

// Tests that destroying the virtual device from the |simulate_press_callback|
// does not crash.
TEST_F(VirtualU2fDeviceTest, DestroyInsideSimulatePressCallback) {}

}  // namespace device