#include "content/browser/bluetooth/bluetooth_util.h"
#include "testing/gtest/include/gtest/gtest.h"
WebBluetoothManufacturerDataMap;
namespace content {
namespace {
const char kBatteryServiceUUIDString[] = …;
const char kCyclingPowerUUIDString[] = …;
std::vector<blink::mojom::WebBluetoothDataFilterPtr> CreateDataFilters(
std::vector<uint8_t> filter_data,
std::vector<uint8_t> filter_mask) { … }
}
class BluetoothUtilTest : public testing::Test { … };
TEST_F(BluetoothUtilTest, SameFilters) { … }
TEST_F(BluetoothUtilTest, BothNoName) { … }
TEST_F(BluetoothUtilTest, OnlyOneHasName) { … }
TEST_F(BluetoothUtilTest, DifferentName) { … }
TEST_F(BluetoothUtilTest, BothNoNamePrefix) { … }
TEST_F(BluetoothUtilTest, OnlyOneHasNamePrefix) { … }
TEST_F(BluetoothUtilTest, DifferentNamePrefix) { … }
TEST_F(BluetoothUtilTest, BothNoServicesUUID) { … }
TEST_F(BluetoothUtilTest, OnlyOneHasServicesUUID) { … }
TEST_F(BluetoothUtilTest, DifferentServicesUUID) { … }
TEST_F(BluetoothUtilTest, SameServicesUUIDButDifferentOrder) { … }
TEST_F(BluetoothUtilTest, BothNoManufacturerData) { … }
TEST_F(BluetoothUtilTest, OnlyOneHasManufacturerData) { … }
TEST_F(BluetoothUtilTest, DifferentManufacturerDataSize) { … }
TEST_F(BluetoothUtilTest, DifferentManufacturerDataCompanyIdentifier) { … }
TEST_F(BluetoothUtilTest, DifferentManufacturerDataFilterSize) { … }
TEST_F(BluetoothUtilTest, DifferentManufacturerData) { … }
TEST_F(BluetoothUtilTest, DifferentManufacturerDataMask) { … }
TEST_F(BluetoothUtilTest, MatchesBluetoothDataFilterMatch) { … }
TEST_F(BluetoothUtilTest, MatchesBluetoothDataFilterNotMatch) { … }
}