| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/system/chromeos/power/power_status.h" | 5 #include "ash/common/system/chromeos/power/power_status.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "chromeos/dbus/dbus_thread_manager.h" | 10 #include "chromeos/dbus/dbus_thread_manager.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include "third_party/cros_system_api/dbus/service_constants.h" | 12 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 13 | 13 |
| 14 using power_manager::PowerSupplyProperties; | 14 using power_manager::PowerSupplyProperties; |
| 15 | 15 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 187 |
| 188 // Ditto for 98%, but on USB instead of AC. | 188 // Ditto for 98%, but on USB instead of AC. |
| 189 prop.set_external_power(PowerSupplyProperties::USB); | 189 prop.set_external_power(PowerSupplyProperties::USB); |
| 190 prop.set_battery_percent(98.0); | 190 prop.set_battery_percent(98.0); |
| 191 power_status_->SetProtoForTesting(prop); | 191 power_status_->SetProtoForTesting(prop); |
| 192 EXPECT_NE(info_charging_98, | 192 EXPECT_NE(info_charging_98, |
| 193 power_status_->GetBatteryImageInfo(PowerStatus::ICON_LIGHT)); | 193 power_status_->GetBatteryImageInfo(PowerStatus::ICON_LIGHT)); |
| 194 } | 194 } |
| 195 | 195 |
| 196 } // namespace ash | 196 } // namespace ash |
| OLD | NEW |