commit | ceba6aa64b2b49b03f4a94faf9846d30a4fbfa9b | [log] [tgz] |
---|---|---|
author | Gary Morain <gmorain@chromium.org> | Thu May 03 10:28:26 2012 -0700 |
committer | Gerrit <chrome-bot@google.com> | Fri May 04 14:59:44 2012 -0700 |
tree | 7d17fe056e5a6ed472be00c4a25ba86039a822aa | |
parent | a0caabfa2443efdff8ef87e6db0186b68133cea5 [diff] |
shill: Allow null callback in OnScanReply The current implemtation of Cellular::Scan calls CellularCapability::Scan with a null callback. CellularCapabilityUniversal::OnScanReply now checks for null before trying to run the callback. BUG=None TEST=manual. Invoke a scan on a E362 modem and observe that the scan compeltes without shill crashing. Also added unittest. Change-Id: I368d6b30e8b482c01015af6214546bd108daa796 Reviewed-on: https://gerrit.chromium.org/gerrit/21777 Commit-Ready: Gary Morain <gmorain@chromium.org> Reviewed-by: Gary Morain <gmorain@chromium.org> Tested-by: Gary Morain <gmorain@chromium.org>