#include <string>
#include "base/functional/bind.h"
#include "components/permissions/bluetooth_chooser_controller.h"
#include "components/permissions/mock_chooser_controller_view.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace permissions {
class TestBluetoothChooserController : public BluetoothChooserController { … };
NiceMock;
class BluetoothChooserControllerTest : public testing::Test { … };
class BluetoothChooserControllerWithDevicesAddedTest
: public BluetoothChooserControllerTest { … };
TEST_F(BluetoothChooserControllerTest, AddDevice) { … }
TEST_F(BluetoothChooserControllerTest, RemoveDevice) { … }
TEST_F(BluetoothChooserControllerTest, MultipleDevicesWithSameNameShowIds) { … }
TEST_F(BluetoothChooserControllerTest, UpdateDeviceName) { … }
TEST_F(BluetoothChooserControllerTest, UpdateDeviceSignalStrengthLevel) { … }
TEST_F(BluetoothChooserControllerTest, UpdateConnectedStatus) { … }
TEST_F(BluetoothChooserControllerTest, UpdatePairedStatus) { … }
TEST_F(BluetoothChooserControllerWithDevicesAddedTest,
BluetoothAdapterTurnedOff) { … }
TEST_F(BluetoothChooserControllerWithDevicesAddedTest,
BluetoothAdapterTurnedOn) { … }
TEST_F(BluetoothChooserControllerWithDevicesAddedTest, DiscoveringState) { … }
TEST_F(BluetoothChooserControllerWithDevicesAddedTest, IdleState) { … }
TEST_F(BluetoothChooserControllerWithDevicesAddedTest, FailedToStartState) { … }
TEST_F(BluetoothChooserControllerWithDevicesAddedTest, RefreshOptions) { … }
TEST_F(BluetoothChooserControllerWithDevicesAddedTest,
SelectingOneDeviceShouldCallEventHandler) { … }
TEST_F(BluetoothChooserControllerWithDevicesAddedTest,
CancelShouldCallEventHandler) { … }
TEST_F(BluetoothChooserControllerWithDevicesAddedTest,
CloseShouldCallEventHandler) { … }
}