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

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

Issue 2654553003: Handle renaming of mocked methods that are not virtual. (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 e9f1b046753e4904f437adaafc1eededc8e850fe..66b6fc31945515ca9f54d306d753373bd499b972 100644
--- a/tools/clang/rewrite_to_chrome_style/tests/gmock-expected.cc
+++ b/tools/clang/rewrite_to_chrome_style/tests/gmock-expected.cc
@@ -6,6 +6,8 @@
namespace blink {
+namespace simple_test {
+
class Interface {
public:
virtual void MyMethod(int my_param) {}
@@ -25,4 +27,20 @@ void Test() {
mocked_interface.MyMethod(123);
}
+} // namespace simple_test
+
+namespace no_base_method_to_override {
+
+class MockDestructible {
+ public:
+ MOCK_METHOD0(Destruct, void());
+};
+
+void Test() {
+ MockDestructible destructible;
+ EXPECT_CALL(destructible, Destruct());
+}
+
+} // namespace no_base_method_to_override
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698