~registry/chromium-os-update-engine/trunk

« back to all changes in this revision

Viewing changes to install_plan.h

  • Committer: ChromeBot
  • Author(s): Chris Sosa
  • Date: 2013-07-30 23:17:20 UTC
  • Revision ID: git-v1:fb1020e30511825c1c39f3764f07ef237a6f668e
Add version information to install plan and GetStatus.

As per the TODO this information is useful for debugging and testing
changes i.e. I'd like to know what version I'm updating to. GetStatus
already supports getting this version but we never populate the field.

BUG=chromium:264505
TEST=Unittests + ran update_engine_client -update which uses GetStatus
to communicate status.

Change-Id: I5332e2f206d92aedba509cd5469e9610c88bcd03
Reviewed-on: https://gerrit.chromium.org/gerrit/63675
Commit-Queue: Chris Sosa <sosa@chromium.org>
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: Chris Sosa <sosa@chromium.org>

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
  bool is_resume;
40
40
  bool is_full_update;
41
41
  std::string download_url;  // url to download from
 
42
  std::string version;       // version we are installing.
42
43
 
43
44
  uint64_t payload_size;                 // size of the payload
44
45
  std::string payload_hash;             // SHA256 hash of the payload