Fix stack-use-after-scope issues in WeaveWiFiSetupTest test cases.

This CL fixes a stack-use-after-scope issue, detected by ASAN, in the
WeaveWiFiSetupTest.OfflineLongTimeWithNoSsid and
WeaveWiFiSetupTest.OfflineLongTimeWithSsid test cases, where the
'time_stamp' variable on the stack is captured by reference for used in
lambdas. The 'time_stamp' variable should thus be defined in a scope
that survives until after lambdas are executed.

BUG=chromium:717228
TEST=`USE='clang asan' emerge-$BOARD libweave`

Change-Id: Ib1013a5f020d6f233d45537fdf6f32ce2f3d8e56
Reviewed-on: https://weave-review.googlesource.com/9970
Reviewed-by: Eric Caruso <ejcaruso@google.com>
1 file changed