| // Copyright 2016 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| namespace blink { |
| |
| // Stuff in blink:: should be renamed. |
| void Foo(); |
| |
| // Stuff in nested namespaces should be renamed. |
| namespace nested { |
| void Foo(); |
| } // namespace nested |
| |
| // blink::protocol namespace is blacklisted. |
| namespace protocol { |
| void foo(); |
| } // namespace protocol |
| |
| } // namespace blink |
| |
| namespace WTF { |
| |
| // Stuff in WTF:: should be renamed. |
| void Foo(); |
| |
| // Stuff in nested namespaces should be renamed. |
| namespace nested { |
| void Foo(); |
| } // namespace nested |
| |
| } // namespace WTF |
| |
| // Stuff outside blink:: and WTF:: should not be. |
| namespace other { |
| void foo(); |
| namespace blink { |
| void foo(); |
| } // namespace blink |
| namespace WTF { |
| void foo(); |
| } // namespace WTF |
| } // namespace other |
| void foo(); |
| |
| void G() { |
| blink::Foo(); |
| blink::nested::Foo(); |
| WTF::Foo(); |
| WTF::nested::Foo(); |
| other::foo(); |
| foo(); |
| other::blink::foo(); |
| other::WTF::foo(); |
| } |