DescriptionUse mock temp file in profiler tests
Mock temp file implementation is used in all inspector tests instead of the real implementation based on temporary filesystem which (unlike temp fs in regular DevTools window) has limited quota which is often exceeded in the tests.
This should fix flakiness in the following tests:
inspector/profiler/heap-snapshot-loader.html
inspector/profiler/cpu-profiler-save-load.html
Also a bug in BufferedTempFileWriter.close was fixed.
TempFile.getFile was replaced with writeToOutputSteam which operates on types defined in DevTools and simplifies mocks.
BUG=330617, 333860
R=alph@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165136
Patch Set 1 #
Total comments: 2
Patch Set 2 : Removed clearHeapProfilerTempStorage step #Patch Set 3 : Addressed comment #
Messages
Total messages: 4 (0 generated)
|