Create a PolicyManager instance on the SystemState.

This patch creates the PolicyManager object on the update engine's
SystemState class, which aggregates all the singleton classes.

This patch doesn't add any functionality, other than initialize and
destroy the PolicyManager, State and Providers from the SystemState.

BUG=chromium:354079
TEST=Build.

Change-Id: Ib06d9c3d24926eaca43de2d11770ef6da7d16985
Reviewed-on: https://chromium-review.googlesource.com/191502
Reviewed-by: Gilad Arnold <garnold@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
diff --git a/mock_system_state.cc b/mock_system_state.cc
index ddd294e..fa6622b 100644
--- a/mock_system_state.cc
+++ b/mock_system_state.cc
@@ -3,8 +3,11 @@
 // found in the LICENSE file.
 
 #include "update_engine/mock_system_state.h"
+#include "update_engine/policy_manager/fake_state.h"
 #include "update_engine/update_attempter_mock.h"
 
+using chromeos_policy_manager::FakeState;
+
 namespace chromeos_update_engine {
 
 // Mock the SystemStateInterface so that we could lie that
@@ -16,12 +19,14 @@
     prefs_(&mock_prefs_),
     powerwash_safe_prefs_(&mock_powerwash_safe_prefs_),
     p2p_manager_(&mock_p2p_manager_),
-    payload_state_(&mock_payload_state_) {
+    payload_state_(&mock_payload_state_),
+    policy_manager_(&fake_policy_manager_) {
   request_params_ = &default_request_params_;
   mock_payload_state_.Initialize(this);
   mock_gpio_handler_ = new testing::NiceMock<MockGpioHandler>();
   mock_update_attempter_ = new testing::NiceMock<UpdateAttempterMock>(
       this, &dbus_);
+  fake_policy_manager_.Init(FakeState::Construct());
 }
 
 MockSystemState::~MockSystemState() {
@@ -32,4 +37,4 @@
   return mock_update_attempter_;
 }
 
-} // namespeace chromeos_update_engine
+}  // namespace chromeos_update_engine