OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <type_traits> | 5 #include <type_traits> |
6 | 6 |
7 namespace not_blink { | 7 namespace not_blink { |
8 | 8 |
9 void function(int x) {} | 9 void function(int x) {} |
10 | 10 |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 return operator T*(); | 251 return operator T*(); |
252 } | 252 } |
253 | 253 |
254 class Class { | 254 class Class { |
255 public: | 255 public: |
256 virtual void virtualMethodInBlink() {} | 256 virtual void virtualMethodInBlink() {} |
257 }; | 257 }; |
258 | 258 |
259 } // namespace cxx_dependent_scope_member_expr_testing | 259 } // namespace cxx_dependent_scope_member_expr_testing |
260 | 260 |
| 261 namespace blacklisting_of_renaming_of_begin_method { |
| 262 |
| 263 template <typename T> |
| 264 class IntrusiveHeap { |
| 265 public: |
| 266 // https://crbug.com/672353: |begin| shouldn't be rewritten to |Begin|. |
| 267 const T* begin() const { return nullptr; } |
| 268 }; |
| 269 |
| 270 } // namespace blacklisting_of_renaming_of_begin_method |
| 271 |
261 } // namespace blink | 272 } // namespace blink |
262 | 273 |
263 namespace not_blink { | 274 namespace not_blink { |
264 | 275 |
265 namespace cxx_dependent_scope_member_expr_testing { | 276 namespace cxx_dependent_scope_member_expr_testing { |
266 | 277 |
267 class Base : public ::blink::cxx_dependent_scope_member_expr_testing::Class { | 278 class Base : public ::blink::cxx_dependent_scope_member_expr_testing::Class { |
268 public: | 279 public: |
269 virtual void virtualMethod() {} | 280 virtual void virtualMethod() {} |
270 }; | 281 }; |
(...skipping 20 matching lines...) Expand all Loading... |
291 // Need to rewrite |f| to |F| below (because this method name | 302 // Need to rewrite |f| to |F| below (because this method name |
292 // does get rewritten when processing blink::test_unnamed_arg::Class). | 303 // does get rewritten when processing blink::test_unnamed_arg::Class). |
293 // See also https://crbug.com/670434. | 304 // See also https://crbug.com/670434. |
294 output->f(123); | 305 output->f(123); |
295 } | 306 } |
296 }; | 307 }; |
297 | 308 |
298 } // namespace blink_methods_called_from_mojo_traits_are_not_rewritten | 309 } // namespace blink_methods_called_from_mojo_traits_are_not_rewritten |
299 | 310 |
300 } // namespace not_blink | 311 } // namespace not_blink |
OLD | NEW |