#include "base/power_monitor/battery_level_provider.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
namespace {
class FakeBatteryLevelProvider : public BatteryLevelProvider { … };
}
BatteryDetails;
TEST(BatteryLevelProviderTest, NoBattery) { … }
TEST(BatteryLevelProviderTest, SingleBatteryWithExternalPower) { … }
TEST(BatteryLevelProviderTest, SingleBatteryDischarging) { … }
TEST(BatteryLevelProviderTest, MultipleBatteriesWithExternalPower) { … }
TEST(BatteryLevelProviderTest, MultipleBatteriesDischarging) { … }
TEST(BatteryLevelProviderTest, SingleBatteryMAh) { … }
}