OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ipc/ipc_test_sink.h" | 5 #include "ipc/ipc_test_sink.h" |
6 | 6 |
| 7 #include "ipc/ipc_listener.h" |
7 #include "ipc/ipc_message.h" | 8 #include "ipc/ipc_message.h" |
8 | 9 |
9 namespace IPC { | 10 namespace IPC { |
10 | 11 |
11 TestSink::TestSink() { | 12 TestSink::TestSink() { |
12 } | 13 } |
13 | 14 |
14 TestSink::~TestSink() { | 15 TestSink::~TestSink() { |
15 } | 16 } |
16 | 17 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 68 |
68 void TestSink::AddFilter(Listener* filter) { | 69 void TestSink::AddFilter(Listener* filter) { |
69 filter_list_.AddObserver(filter); | 70 filter_list_.AddObserver(filter); |
70 } | 71 } |
71 | 72 |
72 void TestSink::RemoveFilter(Listener* filter) { | 73 void TestSink::RemoveFilter(Listener* filter) { |
73 filter_list_.RemoveObserver(filter); | 74 filter_list_.RemoveObserver(filter); |
74 } | 75 } |
75 | 76 |
76 } // namespace IPC | 77 } // namespace IPC |
OLD | NEW |