Home | History | Annotate | Download | only in tests
      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 // blink::protocol namespace is blacklisted.
     16 namespace protocol {
     17 void foo();
     18 }  // namespace protocol
     19 
     20 }  // namespace blink
     21 
     22 namespace WTF {
     23 
     24 // Stuff in WTF:: should be renamed.
     25 void Foo();
     26 
     27 // Stuff in nested namespaces should be renamed.
     28 namespace nested {
     29 void Foo();
     30 }  // namespace nested
     31 
     32 }  // namespace WTF
     33 
     34 // Stuff outside blink:: and WTF:: should not be.
     35 namespace other {
     36 void foo();
     37 namespace blink {
     38 void foo();
     39 }  // namespace blink
     40 namespace WTF {
     41 void foo();
     42 }  // namespace WTF
     43 }  // namespace other
     44 void foo();
     45 
     46 void G() {
     47   blink::Foo();
     48   blink::nested::Foo();
     49   WTF::Foo();
     50   WTF::nested::Foo();
     51   other::foo();
     52   foo();
     53   other::blink::foo();
     54   other::WTF::foo();
     55 }
     56