Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Unified Diff: chrome/browser/chromeos/status/power_menu_button_browsertest.cc

Issue 8402020: chromeos: initializer for power supply status struct (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed explicit initializations using {} Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/cros/power_library.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/status/power_menu_button_browsertest.cc
diff --git a/chrome/browser/chromeos/status/power_menu_button_browsertest.cc b/chrome/browser/chromeos/status/power_menu_button_browsertest.cc
index 4258f5b9c5817d4c69784572dc70a151a7fb8230..ec1cfc98d401a94f3bc4774a9e1eb0ffc183cda3 100644
--- a/chrome/browser/chromeos/status/power_menu_button_browsertest.cc
+++ b/chrome/browser/chromeos/status/power_menu_button_browsertest.cc
@@ -48,7 +48,7 @@ class PowerMenuButtonTest : public CrosInProcessBrowserTest {
};
IN_PROC_BROWSER_TEST_F(PowerMenuButtonTest, BatteryMissingTest) {
- PowerSupplyStatus status = {};
+ PowerSupplyStatus status;
// No battery present.
status.battery_is_present = false;
status.battery_percentage = 42.0;
@@ -61,7 +61,7 @@ IN_PROC_BROWSER_TEST_F(PowerMenuButtonTest, BatteryMissingTest) {
}
IN_PROC_BROWSER_TEST_F(PowerMenuButtonTest, BatteryChargedTest) {
- PowerSupplyStatus status = {};
+ PowerSupplyStatus status;
// The battery is fully charged, and line power is plugged in.
status.battery_is_present = true;
status.battery_percentage = 42.0;
@@ -74,7 +74,7 @@ IN_PROC_BROWSER_TEST_F(PowerMenuButtonTest, BatteryChargedTest) {
}
IN_PROC_BROWSER_TEST_F(PowerMenuButtonTest, BatteryChargingTest) {
- PowerSupplyStatus status = {};
+ PowerSupplyStatus status;
status.battery_is_present = true;
status.battery_is_full = false;
status.line_power_on = true;
@@ -91,7 +91,7 @@ IN_PROC_BROWSER_TEST_F(PowerMenuButtonTest, BatteryChargingTest) {
}
IN_PROC_BROWSER_TEST_F(PowerMenuButtonTest, BatteryDischargingTest) {
- PowerSupplyStatus status = {};
+ PowerSupplyStatus status;
status.battery_is_present = true;
status.battery_is_full = false;
status.line_power_on = false;
« no previous file with comments | « chrome/browser/chromeos/cros/power_library.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698