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

Unified Diff: powerd_unittest.cc

Issue 6854002: Merge monitor_reconfigure into powerd. (Closed) Base URL: ssh://gitrw.chromium.org:9222/power_manager.git@master
Patch Set: . Created 9 years, 8 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
« no previous file with comments | « powerd_main.cc ('k') | resolution_selector.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..6b89759a385f7d505acbecdd1e0deb2249788b8f 100644
--- a/powerd_unittest.cc
+++ b/powerd_unittest.cc
@@ -11,6 +11,7 @@
#include "base/logging.h"
#include "metrics/metrics_library_mock.h"
#include "power_manager/mock_backlight.h"
+#include "power_manager/mock_monitor_reconfigure.h"
#include "power_manager/mock_video_detector.h"
#include "power_manager/power_constants.h"
#include "power_manager/powerd.h"
@@ -48,7 +49,7 @@ class DaemonTest : public Test {
: prefs_(FilePath("."), FilePath(".")),
backlight_ctl_(&backlight_, &prefs_),
daemon_(&backlight_ctl_, &prefs_, &metrics_lib_, &video_detector_,
- FilePath(".")) {}
+ &monitor_reconfigure_, FilePath(".")) {}
virtual void SetUp() {
// Tests initialization done by the daemon's constructor.
@@ -118,6 +119,7 @@ class DaemonTest : public Test {
StrictMock<MockBacklight> backlight_;
StrictMock<MockVideoDetector> video_detector_;
+ StrictMock<MockMonitorReconfigure> monitor_reconfigure_;
PowerPrefs prefs_;
chromeos::PowerStatus status_;
BacklightController backlight_ctl_;
« no previous file with comments | « powerd_main.cc ('k') | resolution_selector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698