// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_ASH_SERVICES_ASSISTANT_TEST_SUPPORT_SCOPED_DEVICE_ACTIONS_H_
#define CHROMEOS_ASH_SERVICES_ASSISTANT_TEST_SUPPORT_SCOPED_DEVICE_ACTIONS_H_
#include <string>
#include <vector>
#include "chromeos/ash/services/assistant/public/cpp/device_actions.h"
namespace ash::assistant {
class ScopedDeviceActions : DeviceActions {
public:
ScopedDeviceActions() = default;
~ScopedDeviceActions() override = default;
// assistant::DeviceActions overrides:
void SetWifiEnabled(bool enabled) override {}
void SetBluetoothEnabled(bool enabled) override {}
void GetScreenBrightnessLevel(
GetScreenBrightnessLevelCallback callback) override;
void SetScreenBrightnessLevel(double level, bool gradual) override {}
void SetNightLightEnabled(bool enabled) override {}
void SetSwitchAccessEnabled(bool enabled) override {}
bool OpenAndroidApp(const AndroidAppInfo& app_info) override;
AppStatus GetAndroidAppStatus(const AndroidAppInfo& app_info) override;
void LaunchAndroidIntent(const std::string& intent) override {}
void AddAndFireAppListEventSubscriber(
AppListEventSubscriber* subscriber) override {}
void RemoveAppListEventSubscriber(
AppListEventSubscriber* subscriber) override {}
// Set the brightness value that will be returned by
// GetScreenBrightnessLevel();
void set_current_brightness(double value) { current_brightness_ = value; }
private:
double current_brightness_ = 0.0;
};
} // namespace ash::assistant
#endif // CHROMEOS_ASH_SERVICES_ASSISTANT_TEST_SUPPORT_SCOPED_DEVICE_ACTIONS_H_