#include "services/device/power_monitor/power_monitor_message_broadcaster.h"
#include <memory>
#include "base/run_loop.h"
#include "base/task/sequenced_task_runner.h"
#include "base/test/power_monitor_test.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "services/device/device_service_test_base.h"
#include "services/device/public/cpp/power_monitor/power_monitor_broadcast_source.h"
#include "services/device/public/mojom/power_monitor.mojom.h"
namespace device {
class MockClient : public PowerMonitorBroadcastSource::Client { … };
class PowerMonitorMessageBroadcasterTest : public DeviceServiceTestBase { … };
TEST_F(PowerMonitorMessageBroadcasterTest, PowerMessageBroadcast) { … }
TEST_F(PowerMonitorMessageBroadcasterTest, PowerClientUpdateWhenOnBattery) { … }
}