commit | 2eb0700da6d0584d7e4227a56022223e57910971 | [log] [tgz] |
---|---|---|
author | Jacek Oleksy <joleksy@opera.com> | Thu Dec 13 20:54:41 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Dec 13 20:54:41 2018 |
tree | c63323caf12ffa0d2791509235d51daedbe32cab | |
parent | d75553d39cf9256de593e66536db65c52b6dad10 [diff] |
[Mac] Use non-autoreleased mock object in ScopedBundleSwizzlerMac The "release" call in the destructor might or might not destroy the mock object, depending on current autorelease pool. If we add to the picture the local autorelease pool (used in tests), we no longer can name the class "Scoped". The fix creates OCPartialMockObject without the helper function, avoiding the autoreleasability. Change-Id: Id17a1ef571246370f6e84cde60773f90d7d35cb0 Reviewed-on: https://chromium-review.googlesource.com/c/1375871 Reviewed-by: Avi Drissman <avi@chromium.org> Commit-Queue: Avi Drissman <avi@chromium.org> Cr-Commit-Position: refs/heads/master@{#616424}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .