OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ash/common/system/chromeos/power/tray_power.h" | 5 #include "ash/system/power/tray_power.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "ash/test/ash_test_base.h" | 11 #include "ash/test/ash_test_base.h" |
12 #include "chromeos/dbus/power_manager/power_supply_properties.pb.h" | 12 #include "chromeos/dbus/power_manager/power_supply_properties.pb.h" |
13 #include "ui/message_center/fake_message_center.h" | 13 #include "ui/message_center/fake_message_center.h" |
14 | 14 |
15 using message_center::Notification; | 15 using message_center::Notification; |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 power_manager::PowerSupplyProperties_ExternalPower_USB); | 425 power_manager::PowerSupplyProperties_ExternalPower_USB); |
426 safe_usb.set_battery_percent(TrayPower::kNoWarningPercentage - 0.1); | 426 safe_usb.set_battery_percent(TrayPower::kNoWarningPercentage - 0.1); |
427 { | 427 { |
428 SCOPED_TRACE("Notification removed for rounded percent above threshold"); | 428 SCOPED_TRACE("Notification removed for rounded percent above threshold"); |
429 UpdateNotificationState(safe_usb, TrayPower::NOTIFICATION_NONE, false, | 429 UpdateNotificationState(safe_usb, TrayPower::NOTIFICATION_NONE, false, |
430 true); | 430 true); |
431 } | 431 } |
432 } | 432 } |
433 | 433 |
434 } // namespace ash | 434 } // namespace ash |
OLD | NEW |