chromium/services/device/serial/bluetooth_serial_device_enumerator_unittests.cc

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

#include "services/device/serial/bluetooth_serial_device_enumerator.h"

#include <memory>
#include <optional>

#include "base/command_line.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "device/bluetooth/bluetooth_adapter_factory.h"
#include "device/bluetooth/test/mock_bluetooth_adapter.h"
#include "services/device/public/cpp/bluetooth/bluetooth_utils.h"
#include "services/device/public/cpp/device_features.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace device {

namespace {

InvokeFuture;
TestFuture;
NiceMock;
Return;

constexpr char kTestDeviceAddress[] =;
constexpr char kTestDeviceName[] =;

std::unique_ptr<device::MockBluetoothDevice> CreateDevice(
    device::MockBluetoothAdapter* adapter,
    const char* device_name,
    const std::string& device_address) {}

class MockSerialPortEnumeratorObserver
    : public SerialDeviceEnumerator::Observer {};

class BluetoothSerialDeviceEnumeratorTest : public testing::Test {};

}  // namespace

TEST_F(BluetoothSerialDeviceEnumeratorTest, ConstructDestruct) {}

TEST_F(BluetoothSerialDeviceEnumeratorTest, ConstructWaitForAdapter) {}

TEST_F(BluetoothSerialDeviceEnumeratorTest, GetDevices) {}

TEST_F(BluetoothSerialDeviceEnumeratorTest, CreateWithDevice) {}

TEST_F(BluetoothSerialDeviceEnumeratorTest, PortConnectedState) {}

TEST_F(BluetoothSerialDeviceEnumeratorTest,
       RemoveObserverIsCalledWhenAdapterHelperDestruct) {}

TEST_F(BluetoothSerialDeviceEnumeratorTest,
       PendingCallbacksInvokedOnDestruction) {}

}  // namespace device