DescriptionImplement generic CreateCopyResultCallback and RunAndQuit.
Many drive methods returns result via callbacks, but there are variety of
types. Also, in test code, we copy the result value in the callback, and check
the expectation after the invocation. As a result, many
CopyResultFromXxxCallback(AndQuit) methods are defined.
The methods introduced by this CL are testing utilities for the code.
We can eliminate boilerplate testing utilities by this (roughly, 550-600 LoC). The actual elimination
will be done in following CLs.
BUG=180569
TEST=Ran unit_tests
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=187941
Patch Set 1 : #
Total comments: 17
Patch Set 2 : #
Total comments: 2
Patch Set 3 : Update comments. #
Messages
Total messages: 11 (0 generated)
|