mock_bluetooth_enabled_provider.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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. #ifndef ASH_QUICK_PAIR_FEATURE_STATUS_TRACKER_MOCK_BLUETOOTH_ENABLED_PROVIDER_H_
  5. #define ASH_QUICK_PAIR_FEATURE_STATUS_TRACKER_MOCK_BLUETOOTH_ENABLED_PROVIDER_H_
  6. #include "ash/quick_pair/feature_status_tracker/bluetooth_enabled_provider.h"
  7. #include "base/callback.h"
  8. #include "testing/gmock/include/gmock/gmock.h"
  9. namespace ash {
  10. namespace quick_pair {
  11. class MockBluetoothEnabledProvider : public BluetoothEnabledProvider {
  12. public:
  13. MockBluetoothEnabledProvider();
  14. MockBluetoothEnabledProvider(const MockBluetoothEnabledProvider&) = delete;
  15. MockBluetoothEnabledProvider& operator=(const MockBluetoothEnabledProvider&) =
  16. delete;
  17. ~MockBluetoothEnabledProvider() override;
  18. MOCK_METHOD(bool, is_enabled, (), (override));
  19. MOCK_METHOD(void,
  20. SetCallback,
  21. (base::RepeatingCallback<void(bool)>),
  22. (override));
  23. };
  24. } // namespace quick_pair
  25. } // namespace ash
  26. #endif // ASH_QUICK_PAIR_FEATURE_STATUS_TRACKER_MOCK_BLUETOOTH_ENABLED_PROVIDER_H_