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

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

Issue 1785563002: rewrite_to_chrome_style: Consistently decide if things are in blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rewrite-asserts: review Created 4 years, 9 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/methods-expected.cc
diff --git a/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc b/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc
index 343e4e1a6e8c9148585132b786569764b743cad4..766145e4f422e2db9025a97b130530bfd4de7d06 100644
--- a/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc
+++ b/tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "gen/thing.h"
+
namespace v8 {
class InterfaceOutsideOfBlink {
@@ -93,6 +95,25 @@ class Testable {
int ptr_;
};
+namespace subname {
+
+class SubnameParent {
+ virtual void SubnameMethod() {}
+};
+
+} // namespace subname
+
+class SubnameChild : public subname::SubnameParent {
+ // This subclasses from blink::subname::SubnameParent and should be renamed.
+ void SubnameMethod() override {}
+};
+
+class GenChild : public blink::GenClass {
+ // This subclasses from the blink namespace but in the gen directory so it
+ // should not be renamed.
+ void genMethod() override {}
+};
+
} // namespace blink
// Test that overrides from outside the Blink namespace are also updated.
« no previous file with comments | « tools/clang/rewrite_to_chrome_style/tests/gen/thing.h ('k') | tools/clang/rewrite_to_chrome_style/tests/methods-original.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698