DescriptionPush API: Replace buggy FutureData test helper with ResultQueue
Since FutureData didn't properly clear its state after a get(), it was possible
a piece of data provided via set() to be sent back twice to the test code!
Replaced it with a queue data structure that doesn't have these problems (and
also won't lose data in the event that test code causes two or more results to
be asynchronously generated before getting the results, though so far I think
we've been lucky on that front).
BUG=437277
Committed: https://crrev.com/8863b7da7faae03cc65dd1076c36278e8a6831e9
Cr-Commit-Position: refs/heads/master@{#311304}
Patch Set 1 #
Total comments: 4
Messages
Total messages: 12 (3 generated)
|