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