#include "services/device/battery/battery_monitor_impl.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "services/device/battery/battery_status_manager.h"
#include "services/device/battery/battery_status_service.h"
#include "services/device/device_service_test_base.h"
#include "services/device/public/mojom/battery_monitor.mojom.h"
namespace device {
namespace {
void ExpectBatteryStatus(bool* out_called,
const mojom::BatteryStatus& expected,
base::OnceClosure quit_closure,
mojom::BatteryStatusPtr status) { … }
class FakeBatteryStatusManager : public BatteryStatusManager { … };
class BatteryMonitorImplTest : public DeviceServiceTestBase { … };
TEST_F(BatteryMonitorImplTest, BatteryManagerDefaultValues) { … }
TEST_F(BatteryMonitorImplTest, BatteryManagerPredefinedValues) { … }
TEST_F(BatteryMonitorImplTest, BatteryManagerInvokeUpdate) { … }
}
}