fake_bluetooth_device_list_controller.cc 892 B

123456789101112131415161718192021222324252627
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "ash/system/bluetooth/fake_bluetooth_device_list_controller.h"
  5. namespace ash {
  6. FakeBluetoothDeviceListController::FakeBluetoothDeviceListController() =
  7. default;
  8. FakeBluetoothDeviceListController::~FakeBluetoothDeviceListController() =
  9. default;
  10. void FakeBluetoothDeviceListController::UpdateBluetoothEnabledState(
  11. bool enabled) {
  12. last_bluetooth_enabled_state_ = enabled;
  13. }
  14. void FakeBluetoothDeviceListController::UpdateDeviceList(
  15. const PairedBluetoothDevicePropertiesPtrs& connected,
  16. const PairedBluetoothDevicePropertiesPtrs& previously_connected) {
  17. connected_devices_count_ = connected.size();
  18. previously_connected_devices_count_ = previously_connected.size();
  19. }
  20. } // namespace ash