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

Unified Diff: tools/clang/rewrite_to_chrome_style/tests/gmock-expected.cc

Issue 2655793004: Also handle renaming method names inside ON_CALL macro calls. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/clang/rewrite_to_chrome_style/tests/gmock-expected.cc
diff --git a/tools/clang/rewrite_to_chrome_style/tests/gmock-expected.cc b/tools/clang/rewrite_to_chrome_style/tests/gmock-expected.cc
index 66b6fc31945515ca9f54d306d753373bd499b972..e4f199b16ed7150570c75bd4b0029c9cc81b193c 100644
--- a/tools/clang/rewrite_to_chrome_style/tests/gmock-expected.cc
+++ b/tools/clang/rewrite_to_chrome_style/tests/gmock-expected.cc
@@ -25,6 +25,10 @@ void Test() {
mocked_interface, // A comment to prevent reformatting into single line.
MyMethod(1));
mocked_interface.MyMethod(123);
+
+ int arg;
+ ON_CALL(mocked_interface, MyMethod(1))
+ .WillByDefault(testing::SaveArg<0>(&arg));
}
} // namespace simple_test

Powered by Google App Engine
This is Rietveld 408576698