chromium/content/browser/bluetooth/bluetooth_blocklist_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 "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 {

// Unused if CHECK strings are discarded to reduce code bloat;
[[maybe_unused]] const char kInvalidUUIDErrorRegex[] =;

}  // namespace

class BluetoothBlocklistTest : public ::testing::Test {};

TEST_F(BluetoothBlocklistTest, NonExcludedUUID) {}

TEST_F(BluetoothBlocklistTest, ExcludeUUID) {}

TEST_F(BluetoothBlocklistTest, ExcludeReadsUUID) {}

TEST_F(BluetoothBlocklistTest, ExcludeWritesUUID) {}

// Abreviated UUIDs used to create, or test against, the blocklist work
// correctly compared to full UUIDs.
TEST_F(BluetoothBlocklistTest, AbreviatedUUIDs) {}

// Tests permutations of previous values and then Add() with a new value,
// requiring result to be strictest result of the combination.
TEST_F(BluetoothBlocklistTest, Add_MergingExcludeValues) {}

// Tests Add() with string that contains many UUID:exclusion value pairs,
// checking that the correct blocklist entries are created for them.
TEST_F(BluetoothBlocklistTest, Add_StringWithValidEntries) {}

// Tests Add() with strings that contain no valid UUID:exclusion value.
TEST_F(BluetoothBlocklistTest, Add_StringsWithNoValidEntries) {}

// Tests Add() with strings that contain exactly one valid UUID:exclusion value
// pair, and optionally other issues in the string that are ignored.
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) {}

}  // namespace content