Descriptionimplement SetWatchEvent and WaitForEvent for trace-based-tests.
Up until now, tracing-based tests have been required to either run a trace for some amount of time or use existing notification mechanisms to return control to the test.
This change adds a 'watch event' feature to trace_event_impl which can be used by tests to wait for an event to occur. This mechanism could replace the use of test-only notifications which is frowned upon as well as mock classes for catching events. Trace events also have the huge advantage of working on all chrome processes as opposed to the browser-only notification service.
BUG=139939
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154552
Patch Set 1 #Patch Set 2 : added tests #Patch Set 3 : cleaned up and fixed a bug #
Total comments: 14
Patch Set 4 : ccameron feedback #Patch Set 5 : added test for child process events #Patch Set 6 : nduca feedback: support a global wakeup count from all processes #Patch Set 7 : fix trace_event_unittests #
Total comments: 12
Patch Set 8 : sky, piman feedback #
Total comments: 16
Patch Set 9 : jar feedback #
Total comments: 4
Patch Set 10 : jar feedback #Patch Set 11 : jar feedback #Patch Set 12 : jar feedback - deadlock fixed #Patch Set 13 : remove unused destructor code from TraceControllerImpl #Patch Set 14 : update / merge -- no change #
Messages
Total messages: 25 (0 generated)
|