#include "content/browser/bluetooth/bluetooth_blocklist.h"
#include "base/memory/raw_ref.h"
#include "base/test/gtest_util.h"
#include "device/bluetooth/bluetooth_device.h"
#include "device/bluetooth/public/cpp/bluetooth_uuid.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/bluetooth/web_bluetooth.mojom.h"
BluetoothUUID;
DataPrefix;
ManufacturerId;
namespace content {
namespace {
[[maybe_unused]] const char kInvalidUUIDErrorRegex[] = …;
}
class BluetoothBlocklistTest : public ::testing::Test { … };
TEST_F(BluetoothBlocklistTest, NonExcludedUUID) { … }
TEST_F(BluetoothBlocklistTest, ExcludeUUID) { … }
TEST_F(BluetoothBlocklistTest, ExcludeReadsUUID) { … }
TEST_F(BluetoothBlocklistTest, ExcludeWritesUUID) { … }
TEST_F(BluetoothBlocklistTest, AbreviatedUUIDs) { … }
TEST_F(BluetoothBlocklistTest, Add_MergingExcludeValues) { … }
TEST_F(BluetoothBlocklistTest, Add_StringWithValidEntries) { … }
TEST_F(BluetoothBlocklistTest, Add_StringsWithNoValidEntries) { … }
TEST_F(BluetoothBlocklistTest, Add_StringsWithOneValidEntry) { … }
TEST_F(BluetoothBlocklistTest, IsExcluded_BluetoothScanFilter_ReturnsFalse) { … }
TEST_F(BluetoothBlocklistTest, IsExcluded_BluetoothScanFilter_ReturnsTrue) { … }
TEST_F(BluetoothBlocklistTest, RemoveExcludedUUIDs_NonMatching) { … }
TEST_F(BluetoothBlocklistTest, RemoveExcludedUuids_Matching) { … }
TEST_F(BluetoothBlocklistTest, VerifyDefaultBlocklistSize) { … }
TEST_F(BluetoothBlocklistTest, VerifyDefaultExcludeList) { … }
TEST_F(BluetoothBlocklistTest, VerifyDefaultExcludeReadList) { … }
TEST_F(BluetoothBlocklistTest, VerifyDefaultExcludeWriteList) { … }
TEST_F(BluetoothBlocklistTest, NonExcludedManufacturerDataFilter) { … }
TEST_F(BluetoothBlocklistTest, ExcludedManufacturerDataFilter) { … }
TEST_F(BluetoothBlocklistTest, ExcludedManufacturerData) { … }
TEST_F(BluetoothBlocklistTest, NonExcludedManufacturerData) { … }
}