chromium/extensions/browser/api/bluetooth_socket/bluetooth_socket_api_unittest.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "extensions/browser/api/bluetooth_socket/bluetooth_socket_api.h"

#include <memory>

#include "base/strings/stringprintf.h"
#include "build/build_config.h"
#include "extensions/browser/api_test_utils.h"
#include "extensions/browser/api_unittest.h"
#include "extensions/common/extension_builder.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace extensions {

class BluetoothSocketApiUnittest : public ApiUnitTest {};

// Tests that bluetoothSocket.create fails as expected when extension does not
// have permission.
TEST_F(BluetoothSocketApiUnittest, Permission) {}

// Tests bluetoothSocket.create() and bluetoothSocket.close().
// Regression test for https://crbug.com/831651.
// TODO(crbug.com/40198321): Port //device/bluetooth to Fuchsia to enable
// bluetooth extensions.
#if BUILDFLAG(IS_FUCHSIA)
#define MAYBE_CreateThenClose
#else
#define MAYBE_CreateThenClose
#endif
TEST_F(BluetoothSocketApiUnittest, MAYBE_CreateThenClose) {}

}  // namespace extensions