#include "services/device/battery/battery_status_service.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "services/device/battery/battery_status_manager.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace device {
namespace {
class FakeBatteryManager : public BatteryStatusManager { … };
}
class BatteryStatusServiceTest : public testing::Test { … };
TEST_F(BatteryStatusServiceTest, AddFirstCallback) { … }
TEST_F(BatteryStatusServiceTest, AddCallbackAfterUpdate) { … }
TEST_F(BatteryStatusServiceTest, TwoCallbacksUpdate) { … }
TEST_F(BatteryStatusServiceTest, RemoveOneCallback) { … }
}