AU: DBus support.
A few changes to support dbus in the Update Engine daemon:
- SConstruct: build marshaller for the dbus signal.
- Update Attempter: respond to dbus calls and broadcast status on dbus
signal.
- Update Engine Client: flag to listen for status updates.
- Also, cleanup outdated code in Omaha Response Handler.
BUG=None
TEST=attached unittests/on device tests
Review URL: http://codereview.chromium.org/2037002
diff --git a/download_action_unittest.cc b/download_action_unittest.cc
index 6353584..3b04eae 100644
--- a/download_action_unittest.cc
+++ b/download_action_unittest.cc
@@ -75,6 +75,7 @@
// takes ownership of passed in HttpFetcher
InstallPlan install_plan(true,
"",
+ 0,
OmahaHashCalculator::OmahaHashOfData(data),
output_temp_file.GetPath(),
"");
@@ -152,7 +153,7 @@
// takes ownership of passed in HttpFetcher
ObjectFeederAction<InstallPlan> feeder_action;
- InstallPlan install_plan(true, "", "", temp_file.GetPath(), "");
+ InstallPlan install_plan(true, "", 0, "", temp_file.GetPath(), "");
feeder_action.set_obj(install_plan);
DownloadAction download_action(new MockHttpFetcher(&data[0], data.size()));
download_action.SetTestFileWriter(&writer);
@@ -233,6 +234,7 @@
// takes ownership of passed in HttpFetcher
InstallPlan install_plan(true,
"",
+ 0,
OmahaHashCalculator::OmahaHashOfString("x"),
"/dev/null",
"/dev/null");
@@ -268,7 +270,7 @@
DirectFileWriter writer;
// takes ownership of passed in HttpFetcher
- InstallPlan install_plan(true, "", "", path, "");
+ InstallPlan install_plan(true, "", 0, "", path, "");
ObjectFeederAction<InstallPlan> feeder_action;
feeder_action.set_obj(install_plan);
DownloadAction download_action(new MockHttpFetcher("x", 1));