[autotest] Refactor special job construction in gs_offloader.

This moves handling for the distinction between source and destination
job directory names to be handled by common code in _JobDirectory.
This also updates the unit tests to explicitly cover the constructors
of both concrete subclasses of _JobDirectory.

BUG=None
TEST=run the unit tests.
DEPLOY=gs_offloader

Change-Id: I35d7e2f78eda3b1cc2227c160856683112026109
Reviewed-on: https://chromium-review.googlesource.com/200629
Tested-by: Richard Barnette <jrbarnette@chromium.org>
Reviewed-by: Alex Miller <milleral@chromium.org>
Commit-Queue: Richard Barnette <jrbarnette@chromium.org>
2 files changed