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

Unified Diff: chromeos/dbus/mock_dbus_thread_manager.cc

Issue 12186010: chromeos: Add power management policy prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
Index: chromeos/dbus/mock_dbus_thread_manager.cc
diff --git a/chromeos/dbus/mock_dbus_thread_manager.cc b/chromeos/dbus/mock_dbus_thread_manager.cc
index fa19dd2c2bd162d832bf34d8779cf934e60ef673..c31feba55c1ad5752748b9fa0ead0d33aff10400 100644
--- a/chromeos/dbus/mock_dbus_thread_manager.cc
+++ b/chromeos/dbus/mock_dbus_thread_manager.cc
@@ -29,6 +29,7 @@
#include "chromeos/dbus/mock_sms_client.h"
#include "chromeos/dbus/mock_speech_synthesizer_client.h"
#include "chromeos/dbus/mock_update_engine_client.h"
+#include "chromeos/dbus/power_policy_controller.h"
using ::testing::AnyNumber;
using ::testing::Return;
@@ -61,7 +62,9 @@ MockDBusThreadManager::MockDBusThreadManager()
mock_session_manager_client_(new MockSessionManagerClient),
mock_sms_client_(new MockSMSClient),
mock_speech_synthesizer_client_(new MockSpeechSynthesizerClient),
- mock_update_engine_client_(new MockUpdateEngineClient) {
+ mock_update_engine_client_(new MockUpdateEngineClient),
+ power_policy_controller_(
bartfab (slow) 2013/02/04 10:04:35 I haven't looked at what gets mock here in detail
Daniel Erat 2013/02/04 13:35:45 Yes.
+ new PowerPolicyController(mock_power_manager_client_.get())) {
EXPECT_CALL(*this, GetBluetoothAdapterClient())
.WillRepeatedly(Return(mock_bluetooth_adapter_client_.get()));
EXPECT_CALL(*this, GetBluetoothDeviceClient())
@@ -100,6 +103,8 @@ MockDBusThreadManager::MockDBusThreadManager()
.WillRepeatedly(Return(mock_modem_messaging_client()));
EXPECT_CALL(*this, GetPowerManagerClient())
.WillRepeatedly(Return(mock_power_manager_client_.get()));
+ EXPECT_CALL(*this, GetPowerPolicyController())
+ .WillRepeatedly(Return(power_policy_controller_.get()));
EXPECT_CALL(*this, GetSessionManagerClient())
.WillRepeatedly(Return(mock_session_manager_client_.get()));
EXPECT_CALL(*this, GetSMSClient())

Powered by Google App Engine
This is Rietveld 408576698