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

Unified Diff: chromeos/dbus/mock_dbus_thread_manager.cc

Issue 14092002: Move MockUpdateEngineClient::GetLastStatus() expectation to MockDBusThreadManager's ctor (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove .Times(AnyNumber()) Created 7 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 | « chrome/browser/policy/cloud/component_cloud_policy_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 99e1a35f4e994098aa57563f726edc7a77deab1b..78208f002358fee9a29a5810b06b44d93c2c434e 100644
--- a/chromeos/dbus/mock_dbus_thread_manager.cc
+++ b/chromeos/dbus/mock_dbus_thread_manager.cc
@@ -273,6 +273,12 @@ MockDBusThreadManager::MockDBusThreadManager()
EXPECT_CALL(*mock_shill_manager_client_.get(),
RemovePropertyChangedObserver(_))
.Times(AnyNumber());
+
+ // For CrOS browsertests, ChromeBrowserMainPartsChromeos::PostProfileInit()
+ // creates an AutomaticRebootManager which calls the following function.
+ // For unittests, this function won't get called.
+ EXPECT_CALL(*mock_update_engine_client_, GetLastStatus())
+ .WillRepeatedly(Return(MockUpdateEngineClient::Status()));
}
MockDBusThreadManager::~MockDBusThreadManager() {
« no previous file with comments | « chrome/browser/policy/cloud/component_cloud_policy_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698