| 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/common/system/chromeos/power/power_status.h" | 5 #include "ash/system/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 "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "chromeos/dbus/dbus_thread_manager.h" | 11 #include "chromeos/dbus/dbus_thread_manager.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "third_party/cros_system_api/dbus/service_constants.h" | 13 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 14 | 14 |
| 15 using power_manager::PowerSupplyProperties; | 15 using power_manager::PowerSupplyProperties; |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 11, | 310 11, |
| 311 power_status_->GetBatteryImageInfo(PowerStatus::ICON_LIGHT).charge_level); | 311 power_status_->GetBatteryImageInfo(PowerStatus::ICON_LIGHT).charge_level); |
| 312 prop.set_battery_percent(100.0); | 312 prop.set_battery_percent(100.0); |
| 313 power_status_->SetProtoForTesting(prop); | 313 power_status_->SetProtoForTesting(prop); |
| 314 EXPECT_EQ( | 314 EXPECT_EQ( |
| 315 12, | 315 12, |
| 316 power_status_->GetBatteryImageInfo(PowerStatus::ICON_LIGHT).charge_level); | 316 power_status_->GetBatteryImageInfo(PowerStatus::ICON_LIGHT).charge_level); |
| 317 } | 317 } |
| 318 | 318 |
| 319 } // namespace ash | 319 } // namespace ash |
| OLD | NEW |