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

Unified Diff: tools/clang/rewrite_to_chrome_style/tests/gmock-original.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
« no previous file with comments | « tools/clang/rewrite_to_chrome_style/tests/gmock-expected.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/rewrite_to_chrome_style/tests/gmock-original.cc
diff --git a/tools/clang/rewrite_to_chrome_style/tests/gmock-original.cc b/tools/clang/rewrite_to_chrome_style/tests/gmock-original.cc
index 102bf1a46f30ed1660b242c51d37a27018e5e105..81150e11890598d4a66375cdda3049d0c78dc911 100644
--- a/tools/clang/rewrite_to_chrome_style/tests/gmock-original.cc
+++ b/tools/clang/rewrite_to_chrome_style/tests/gmock-original.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() {
mockedInterface.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
« no previous file with comments | « tools/clang/rewrite_to_chrome_style/tests/gmock-expected.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698