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