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

Unified Diff: powerd_unittest.cc

Issue 6715014: Display off is done by a callback into backlight controller (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/power_manager.git
Patch Set: Deleted unused lines, 2010->2011 Created 9 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 side-by-side diff with in-line comments
Download patch
« mock_backlight.h ('K') | « mock_backlight.h ('k') | signal_callback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: powerd_unittest.cc
diff --git a/powerd_unittest.cc b/powerd_unittest.cc
index 448ea1d4c4e94cac3b5d422dac5fc8f771f499b2..279fda4196663503b04eaadf69f3a0f82888dd92 100644
--- a/powerd_unittest.cc
+++ b/powerd_unittest.cc
@@ -59,6 +59,7 @@ class DaemonTest : public Test {
.WillOnce(DoAll(SetArgumentPointee<0>(kDefaultBrightness),
SetArgumentPointee<1>(kMaxBrightness),
Return(true)));
+ EXPECT_CALL(backlight_, SetScreenOffFunc(NotNull(), NotNull()));
prefs_.SetInt64(kPluggedBrightnessOffset, kPluggedBrightness);
prefs_.SetInt64(kUnpluggedBrightnessOffset, kUnpluggedBrightness);
prefs_.SetInt64(kAlsBrightnessLevel, kAlsBrightness);
« mock_backlight.h ('K') | « mock_backlight.h ('k') | signal_callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698