Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: ash/system/power/power_status_unittest.cc

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/system/power/power_status.cc ('k') | ash/system/power/power_status_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/system/power/power_status.cc ('k') | ash/system/power/power_status_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698