#include "device/bluetooth/bluetooth_local_gatt_characteristic.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/weak_ptr.h"
#include "build/build_config.h"
#include "device/bluetooth/test/bluetooth_gatt_server_test.h"
#include "device/bluetooth/test/bluetooth_test.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace device {
class BluetoothLocalGattCharacteristicTest : public BluetoothGattServerTest { … };
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
#define MAYBE_ReadLocalCharacteristicValue …
#else
#define MAYBE_ReadLocalCharacteristicValue …
#endif
TEST_F(BluetoothLocalGattCharacteristicTest,
MAYBE_ReadLocalCharacteristicValue) { … }
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
#define MAYBE_WriteLocalCharacteristicValue …
#else
#define MAYBE_WriteLocalCharacteristicValue …
#endif
TEST_F(BluetoothLocalGattCharacteristicTest,
MAYBE_WriteLocalCharacteristicValue) { … }
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
#define MAYBE_PrepareWriteLocalCharacteristicValue …
#else
#define MAYBE_PrepareWriteLocalCharacteristicValue …
#endif
TEST_F(BluetoothLocalGattCharacteristicTest,
MAYBE_PrepareWriteLocalCharacteristicValue) { … }
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
#define MAYBE_ReadLocalCharacteristicValueFail …
#else
#define MAYBE_ReadLocalCharacteristicValueFail …
#endif
TEST_F(BluetoothLocalGattCharacteristicTest,
MAYBE_ReadLocalCharacteristicValueFail) { … }
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
#define MAYBE_ReadLocalCharacteristicValueWrongPermission …
#else
#define MAYBE_ReadLocalCharacteristicValueWrongPermission …
#endif
TEST_F(BluetoothLocalGattCharacteristicTest,
MAYBE_ReadLocalCharacteristicValueWrongPermission) { … }
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
#define MAYBE_WriteLocalCharacteristicValueFail …
#else
#define MAYBE_WriteLocalCharacteristicValueFail …
#endif
TEST_F(BluetoothLocalGattCharacteristicTest,
MAYBE_WriteLocalCharacteristicValueFail) { … }
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
#define MAYBE_WriteLocalCharacteristicValueWrongPermission …
#else
#define MAYBE_WriteLocalCharacteristicValueWrongPermission …
#endif
TEST_F(BluetoothLocalGattCharacteristicTest,
MAYBE_WriteLocalCharacteristicValueWrongPermission) { … }
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
#define MAYBE_StartAndStopNotifications …
#else
#define MAYBE_StartAndStopNotifications …
#endif
TEST_F(BluetoothLocalGattCharacteristicTest, MAYBE_StartAndStopNotifications) { … }
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
#define MAYBE_SendNotifications …
#else
#define MAYBE_SendNotifications …
#endif
TEST_F(BluetoothLocalGattCharacteristicTest, MAYBE_SendNotifications) { … }
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
#define MAYBE_SendNotificationsWrongProperties …
#else
#define MAYBE_SendNotificationsWrongProperties …
#endif
TEST_F(BluetoothLocalGattCharacteristicTest,
MAYBE_SendNotificationsWrongProperties) { … }
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
#define MAYBE_SendNotificationsServiceNotRegistered …
#else
#define MAYBE_SendNotificationsServiceNotRegistered …
#endif
TEST_F(BluetoothLocalGattCharacteristicTest,
MAYBE_SendNotificationsServiceNotRegistered) { … }
}