update_engine: Period background update check flow correctness
The |UpdateAttempter| has a tremendous amount of possible situations it
can be in and be handling due to the async nature. The following tests
try and cover important cases of the member functions in particular
|OnUpdateScheduled()| and |ScheduleUpdates()|.
BUG=chromium:924165
TEST=FEATURES="test" emerge-${BOARD} update_engine
Change-Id: If5350a74b444f4c0e58da93ddba6d7c832945322
diff --git a/update_attempter.cc b/update_attempter.cc
index 8df8b61..62a999c 100644
--- a/update_attempter.cc
+++ b/update_attempter.cc
@@ -869,7 +869,7 @@
// of the previously set ones.
current_update_attempt_flags_ = flags;
// Note: The caching for non-interactive update checks happens in
- // OnUpdateScheduled().
+ // |OnUpdateScheduled()|.
}
if (forced_update_pending_callback_.get()) {