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

Side by Side Diff: ash/common/system/chromeos/power/tray_power_unittest.cc

Issue 2074213002: mash: Move ash_switches.* to ash/common; cleanup DEPS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix broken relative include. Created 4 years, 6 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
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/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
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
OLDNEW
« no previous file with comments | « ash/common/system/chromeos/power/tray_power.cc ('k') | ash/content/display/screen_orientation_controller_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698