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

Side by Side Diff: ash/system/power/tray_power_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/tray_power.cc ('k') | ash/system/power/video_activity_notifier.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 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/system/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/test/ash_test_base.h" 11 #include "ash/test/ash_test_base.h"
12 #include "chromeos/dbus/power_manager/power_supply_properties.pb.h" 12 #include "chromeos/dbus/power_manager/power_supply_properties.pb.h"
13 #include "ui/message_center/fake_message_center.h" 13 #include "ui/message_center/fake_message_center.h"
14 14
15 using message_center::Notification; 15 using message_center::Notification;
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 power_manager::PowerSupplyProperties_ExternalPower_USB); 425 power_manager::PowerSupplyProperties_ExternalPower_USB);
426 safe_usb.set_battery_percent(TrayPower::kNoWarningPercentage - 0.1); 426 safe_usb.set_battery_percent(TrayPower::kNoWarningPercentage - 0.1);
427 { 427 {
428 SCOPED_TRACE("Notification removed for rounded percent above threshold"); 428 SCOPED_TRACE("Notification removed for rounded percent above threshold");
429 UpdateNotificationState(safe_usb, TrayPower::NOTIFICATION_NONE, false, 429 UpdateNotificationState(safe_usb, TrayPower::NOTIFICATION_NONE, false,
430 true); 430 true);
431 } 431 }
432 } 432 }
433 433
434 } // namespace ash 434 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/power/tray_power.cc ('k') | ash/system/power/video_activity_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698