Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1012)

Issue 2551083002: [ios] Adds ScopedBlockSwizzler. (Closed)

Created:
4 years ago by rohitrao (ping after 24h)
Modified:
4 years ago
Reviewers:
sdefresne
CC:
chromium-reviews, pkl (ping after 24h if needed), mac-reviews_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios] Adds ScopedBlockSwizzler. ScopedBlockSwizzler is a helper class that swizzles methods for use in unittests only. It is most commonly used to inject test objects to replace shared singletons. BUG=662903 Committed: https://crrev.com/4aaf4523cf212b017a9d1ed6d11f6dc88544077b Cr-Commit-Position: refs/heads/master@{#436303}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -0 lines) Patch
M ios/chrome/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A ios/chrome/test/base/BUILD.gn View 1 chunk +26 lines, -0 lines 0 comments Download
A ios/chrome/test/base/scoped_block_swizzler.h View 1 chunk +40 lines, -0 lines 0 comments Download
A ios/chrome/test/base/scoped_block_swizzler.mm View 1 chunk +24 lines, -0 lines 2 comments Download
A ios/chrome/test/base/scoped_block_swizzler_unittest.mm View 1 chunk +103 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
rohitrao (ping after 24h)
4 years ago (2016-12-05 14:37:19 UTC) #4
sdefresne
lgtm with a question/comment (as the downstream code has the same behaviour it is not ...
4 years ago (2016-12-05 15:56:00 UTC) #7
rohitrao (ping after 24h)
https://codereview.chromium.org/2551083002/diff/1/ios/chrome/test/base/scoped_block_swizzler.mm File ios/chrome/test/base/scoped_block_swizzler.mm (right): https://codereview.chromium.org/2551083002/diff/1/ios/chrome/test/base/scoped_block_swizzler.mm#newcode17 ios/chrome/test/base/scoped_block_swizzler.mm:17: IMP block_imp = imp_implementationWithBlock(block); On 2016/12/05 15:56:00, sdefresne wrote: ...
4 years ago (2016-12-05 15:58:11 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2551083002/1
4 years ago (2016-12-05 15:58:33 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-05 16:03:28 UTC) #12
commit-bot: I haz the power
4 years ago (2016-12-05 16:05:57 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/4aaf4523cf212b017a9d1ed6d11f6dc88544077b
Cr-Commit-Position: refs/heads/master@{#436303}

Powered by Google App Engine
This is Rietveld 408576698