Provide getter and setter for process ID in Process base class.
This CL modifies SandboxedProcess to obtain the process ID of a
sandboxed process using minijail_run_pid(), which then allows the
Process base class to provide a getter and setter for the process ID.
BUG=chromium-os:29968
TEST=Tested the following:
1. Build cros-disks for {x86,amd64,arm}-generic.
2. Run cros-disks unit tests.
3. Run platform_CrosDisksArchive tests.
Change-Id: I10c7779ce9654685f232078106216da5fa115955
Reviewed-on: https://gerrit.chromium.org/gerrit/21029
Reviewed-by: Darin Petkov <petkov@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
Commit-Ready: Ben Chan <benchan@chromium.org>
6 files changed