chromium/device/bluetooth/device_unittest.cc

// Copyright 2016 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/bluetooth/device.h"

#include <memory>
#include <string>
#include <utility>

#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/memory/weak_ptr.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "device/bluetooth/test/mock_bluetooth_adapter.h"
#include "device/bluetooth/test/mock_bluetooth_device.h"
#include "device/bluetooth/test/mock_bluetooth_gatt_characteristic.h"
#include "device/bluetooth/test/mock_bluetooth_gatt_connection.h"
#include "device/bluetooth/test/mock_bluetooth_gatt_service.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "testing/gtest/include/gtest/gtest.h"

Return;

namespace bluetooth {

NiceMockBluetoothAdapter;
NiceMockBluetoothDevice;
NiceMockBluetoothGattService;
NiceMockBluetoothGattCharacteristic;
NiceMockBluetoothGattConnection;

Properties;
Property;
Permissions;
Permission;

namespace {
const char kTestLeDeviceAddress0[] =;
const char kTestLeDeviceName0[] =;

const char kTestServiceId0[] =;
const char kTestServiceUuid0[] =;

const char kTestServiceId1[] =;
const char kTestServiceUuid1[] =;

const char kTestCharacteristicId0[] =;
const char kTestCharacteristicUuid0[] =;

const char kTestCharacteristicId1[] =;
const char kTestCharacteristicUuid1[] =;

const char kTestCharacteristicId2[] =;
const char kTestCharacteristicUuid2[] =;

const Properties kReadWriteProperties =;
const Properties kAllProperties =;
const Permissions kReadWritePermissions =;
const Permissions kAllPermissions =;

class BluetoothInterfaceDeviceTest : public testing::Test {};
}  // namespace

TEST_F(BluetoothInterfaceDeviceTest, GetServices) {}

TEST_F(BluetoothInterfaceDeviceTest, GetCharacteristics) {}

TEST_F(BluetoothInterfaceDeviceTest, GetServicesNotDiscovered) {}

TEST_F(BluetoothInterfaceDeviceTest,
       GetServicesLostConnectionWithPendingRequests) {}

TEST_F(BluetoothInterfaceDeviceTest,
       GetServicesForcedDisconnectionWithPendingRequests) {}
}  // namespace bluetooth