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

Issue 2609473002: Renaming blink method names inside gmock's EXPECT_CALL macro invocation. (Closed)

Created:
3 years, 11 months ago by Łukasz Anforowicz
Modified:
3 years, 11 months ago
Reviewers:
dcheng
CC:
chromium-reviews, nasko
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Renaming blink method names inside gmock's EXPECT_CALL macro invocation. BUG=677544 Review-Url: https://codereview.chromium.org/2609473002 Cr-Commit-Position: refs/heads/master@{#442347} Committed: https://chromium.googlesource.com/chromium/src/+/b5ca969e8001ef2d6292e92f0d1203e02fba30ec

Patch Set 1 #

Patch Set 2 : It works! #

Patch Set 3 : Tweaks (from self-review + to make it work in actual cases under web/tests/). #

Total comments: 2

Patch Set 4 : Using PPCallbacks::RecordExpectCallMacroInvocation. #

Total comments: 2

Patch Set 5 : Self-review. #

Total comments: 14

Patch Set 6 : Addressed last round of CR feedback from dcheng@. #

Total comments: 5

Patch Set 7 : Make SourceFileCallbacks's constructor explicit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -8 lines) Patch
M tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp View 1 2 3 4 5 6 9 chunks +158 lines, -5 lines 0 comments Download
A tools/clang/rewrite_to_chrome_style/tests/gmock-expected.cc View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
A tools/clang/rewrite_to_chrome_style/tests/gmock-original.cc View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
M tools/clang/scripts/run_tool.py View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M tools/clang/scripts/test_tool.py View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
Łukasz Anforowicz
Daniel, can you PTAL? I've tested it on Source/web/tests and it seems to have done ...
3 years, 11 months ago (2016-12-29 21:14:02 UTC) #2
dcheng
I'm wondering... can we use clang's preprocessor hooks (PPCallbacks) to track macro expansions of EXPECT_CALL ...
3 years, 11 months ago (2017-01-06 06:58:46 UTC) #4
Łukasz Anforowicz
On 2017/01/06 06:58:46, dcheng wrote: > I'm wondering... can we use clang's preprocessor hooks (PPCallbacks) ...
3 years, 11 months ago (2017-01-07 01:16:30 UTC) #5
dcheng
https://codereview.chromium.org/2609473002/diff/80001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/2609473002/diff/80001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode112 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:112: if (potentially_mocked_method->getNumParams() != Node.getNumParams()) It's too bad it's not ...
3 years, 11 months ago (2017-01-09 19:27:47 UTC) #6
Łukasz Anforowicz
Thanks for the feedback - can you take another look please? https://codereview.chromium.org/2609473002/diff/80001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): ...
3 years, 11 months ago (2017-01-09 20:11:27 UTC) #7
dcheng
lgtm https://codereview.chromium.org/2609473002/diff/100001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/2609473002/diff/100001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode1143 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:1143: SourceFileCallbacks(GMockMemberRewriter* gmock_member_rewriter) explicit ;-) https://codereview.chromium.org/2609473002/diff/100001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode1541 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:1541: // Prepare ...
3 years, 11 months ago (2017-01-09 20:37:55 UTC) #8
Łukasz Anforowicz
https://codereview.chromium.org/2609473002/diff/100001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/2609473002/diff/100001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode1143 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:1143: SourceFileCallbacks(GMockMemberRewriter* gmock_member_rewriter) On 2017/01/09 20:37:54, dcheng wrote: > explicit ...
3 years, 11 months ago (2017-01-09 20:54:55 UTC) #9
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/2609473002/120001
3 years, 11 months ago (2017-01-09 20:55:48 UTC) #12
dcheng
https://codereview.chromium.org/2609473002/diff/100001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/2609473002/diff/100001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode1541 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:1541: // Prepare and run the tool. On 2017/01/09 20:54:55, ...
3 years, 11 months ago (2017-01-09 21:13:57 UTC) #13
commit-bot: I haz the power
3 years, 11 months ago (2017-01-09 21:18:52 UTC) #16
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/b5ca969e8001ef2d6292e92f0d12...

Powered by Google App Engine
This is Rietveld 408576698