| 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/common/system/chromeos/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/common/ash_switches.h" | |
| 12 #include "ash/test/ash_test_base.h" | 11 #include "ash/test/ash_test_base.h" |
| 13 #include "chromeos/dbus/power_manager/power_supply_properties.pb.h" | 12 #include "chromeos/dbus/power_manager/power_supply_properties.pb.h" |
| 14 #include "ui/message_center/fake_message_center.h" | 13 #include "ui/message_center/fake_message_center.h" |
| 15 | 14 |
| 16 using message_center::Notification; | 15 using message_center::Notification; |
| 17 using power_manager::PowerSupplyProperties; | 16 using power_manager::PowerSupplyProperties; |
| 18 | 17 |
| 19 namespace { | 18 namespace { |
| 20 | 19 |
| 21 class MockMessageCenter : public message_center::FakeMessageCenter { | 20 class MockMessageCenter : public message_center::FakeMessageCenter { |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 power_manager::PowerSupplyProperties_ExternalPower_USB); | 425 power_manager::PowerSupplyProperties_ExternalPower_USB); |
| 427 safe_usb.set_battery_percent(TrayPower::kNoWarningPercentage - 0.1); | 426 safe_usb.set_battery_percent(TrayPower::kNoWarningPercentage - 0.1); |
| 428 { | 427 { |
| 429 SCOPED_TRACE("Notification removed for rounded percent above threshold"); | 428 SCOPED_TRACE("Notification removed for rounded percent above threshold"); |
| 430 UpdateNotificationState(safe_usb, TrayPower::NOTIFICATION_NONE, false, | 429 UpdateNotificationState(safe_usb, TrayPower::NOTIFICATION_NONE, false, |
| 431 true); | 430 true); |
| 432 } | 431 } |
| 433 } | 432 } |
| 434 | 433 |
| 435 } // namespace ash | 434 } // namespace ash |
| OLD | NEW |