PM: Add a DBus backend to the shill provider.
This change integrates the necessary logic for the shill provider to
actually talk to shill over DBus.
* RealShillProviders now takes a DbusInterface object. PolicyManager and
RealState were extended to propagate this object, accordingly.
* New provider_utils and general glib_utils modules.
* Minor touch-ups: removal of redundant includes and unwarranted 'using'
clauses.
BUG=chromium:338585
TEST=Unit tests.
Change-Id: I4082b845557eff2a02a928c60c348dde0e784a2c
Reviewed-on: https://chromium-review.googlesource.com/189045
Reviewed-by: Gilad Arnold <garnold@chromium.org>
Commit-Queue: Gilad Arnold <garnold@chromium.org>
Tested-by: Gilad Arnold <garnold@chromium.org>
diff --git a/policy_manager/real_state.h b/policy_manager/real_state.h
index b46126e..808a692 100644
--- a/policy_manager/real_state.h
+++ b/policy_manager/real_state.h
@@ -5,6 +5,8 @@
#ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_POLICY_MANAGER_REAL_STATE_H
#define CHROMEOS_PLATFORM_UPDATE_ENGINE_POLICY_MANAGER_REAL_STATE_H
+#include "update_engine/clock_interface.h"
+#include "update_engine/dbus_wrapper_interface.h"
#include "update_engine/policy_manager/state.h"
namespace chromeos_policy_manager {
@@ -12,7 +14,8 @@
// State implementation class.
class RealState : public State {
public:
- RealState();
+ RealState(chromeos_update_engine::DBusWrapperInterface* dbus,
+ chromeos_update_engine::ClockInterface* clock);
~RealState() {}
private: