#include <memory>
#include <tuple>
#include <utility>
#include "base/command_line.h"
#include "base/memory/ref_counted.h"
#include "base/test/gmock_callback_support.h"
#include "build/build_config.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "content/public/test/browser_test.h"
#include "device/bluetooth/bluetooth_common.h"
#include "device/bluetooth/test/mock_bluetooth_adapter.h"
#include "device/bluetooth/test/mock_bluetooth_device.h"
#include "extensions/browser/api/bluetooth/bluetooth_api.h"
#include "extensions/browser/api/bluetooth/bluetooth_event_router.h"
#include "extensions/browser/event_router.h"
#include "extensions/common/api/bluetooth_private.h"
#include "extensions/common/switches.h"
#include "testing/gmock/include/gmock/gmock.h"
RunOnceCallback;
RunOnceClosure;
BluetoothDiscoveryFilter;
BluetoothUUID;
MockBluetoothAdapter;
MockBluetoothDevice;
_;
Eq;
InSequence;
NiceMock;
Return;
ReturnPointee;
SaveArg;
WithArgs;
WithoutArgs;
bt;
bt_private;
namespace extensions {
namespace {
const char kTestExtensionId[] = …;
const char kAdapterName[] = …;
const char kDeviceName[] = …;
const char kDeviceAddress[] = …;
MATCHER_P(IsFilterEqual, a, "") { … }
}
class BluetoothPrivateApiTest : public ExtensionApiTest { … };
IN_PROC_BROWSER_TEST_F(BluetoothPrivateApiTest, SetAdapterState) { … }
IN_PROC_BROWSER_TEST_F(BluetoothPrivateApiTest, NoBluetoothAdapter) { … }
IN_PROC_BROWSER_TEST_F(BluetoothPrivateApiTest, CancelPairing) { … }
IN_PROC_BROWSER_TEST_F(BluetoothPrivateApiTest, PincodePairing) { … }
IN_PROC_BROWSER_TEST_F(BluetoothPrivateApiTest, PasskeyPairing) { … }
IN_PROC_BROWSER_TEST_F(BluetoothPrivateApiTest, DisconnectAll) { … }
#if !BUILDFLAG(IS_MAC)
IN_PROC_BROWSER_TEST_F(BluetoothPrivateApiTest, ForgetDevice) { … }
#endif
IN_PROC_BROWSER_TEST_F(BluetoothPrivateApiTest, DiscoveryFilter) { … }
IN_PROC_BROWSER_TEST_F(BluetoothPrivateApiTest, Connect) { … }
IN_PROC_BROWSER_TEST_F(BluetoothPrivateApiTest, Pair) { … }
}