forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure autorelease pool is drained between tests
The testing::Test fixture (used by TEST macro) does not drain the autorelease pool after a test. PlatformTest should be used. Add a PRESUBMIT check that neither TEST nor testing::Test is used in iOS Objective-C++ test files. Files are assumed to be iOS if either their base name match '\bios\b' or one of the component in the path is 'ios'. Expand MockInputApi to filter files in mocks of AffectedFiles and AffectedSourceFiles function, adding missing mocked functions too. Fix unit tests that were failing after the filtering is correctly implemented. Bug: none Change-Id: I0af99b6658b8e15888dfcfb94345eb879ab9fd37 Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs Reviewed-on: https://chromium-review.googlesource.com/937204 Reviewed-by: Jochen Eisinger <jochen@chromium.org> Reviewed-by: Rohit Rao <rohitrao@chromium.org> Commit-Queue: Sylvain Defresne <sdefresne@chromium.org> Cr-Commit-Position: refs/heads/master@{#539829}
- Loading branch information
Showing
3 changed files
with
85 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters