update_engine: Move ConnectionManager to an abstract Interface.
MockConnectionManager required to use one of ConnectionManager
constructors passing pointers that won't be use by the mock. This
patch moves the interface to its own ConnectionManagerInterface class.
BUG=None
TEST=unittests still pass.
Change-Id: I9ed09daf8e4256304be7dab30cfbe751901dc24b
Reviewed-on: https://chromium-review.googlesource.com/290120
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
Trybot-Ready: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
diff --git a/dbus_service.cc b/dbus_service.cc
index 0dbff6b..d77ea31 100644
--- a/dbus_service.cc
+++ b/dbus_service.cc
@@ -13,7 +13,7 @@
#include <policy/device_policy.h>
#include "update_engine/clock_interface.h"
-#include "update_engine/connection_manager.h"
+#include "update_engine/connection_manager_interface.h"
#include "update_engine/dbus_constants.h"
#include "update_engine/hardware_interface.h"
#include "update_engine/omaha_request_params.h"
@@ -408,7 +408,7 @@
UpdateEngineService* self,
gboolean* allowed,
GError **error) {
- chromeos_update_engine::ConnectionManager* cm =
+ chromeos_update_engine::ConnectionManagerInterface* cm =
self->system_state_->connection_manager();
// The device_policy is loaded in a lazy way before an update check and is