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 3 // found in the LICENSE file. 4 5 namespace blink { 6 7 // Stuff in blink:: should be renamed. 8 void foo(); 9 10 // Stuff in nested namespaces should be renamed. 11 namespace nested { 12 void foo(); 13 } // namespace nested 14 15 } // namespace blink 16 17 namespace WTF { 18 19 // Stuff in WTF:: should be renamed. 20 void foo(); 21 22 // Stuff in nested namespaces should be renamed. 23 namespace nested { 24 void foo(); 25 } // namespace nested 26 27 } // namespace WTF 28 29 // Stuff outside blink:: and WTF:: should not be. 30 namespace other { 31 void foo(); 32 namespace blink { 33 void foo(); 34 } // namespace blink 35 namespace WTF { 36 void foo(); 37 } // namespace WTF 38 } // namespace other 39 void foo(); 40 G()41void G() { 42 blink::foo(); 43 blink::nested::foo(); 44 WTF::foo(); 45 WTF::nested::foo(); 46 other::foo(); 47 foo(); 48 other::blink::foo(); 49 other::WTF::foo(); 50 } 51