| Index: chrome/common/ipc_test_sink.cc
|
| diff --git a/chrome/common/ipc_test_sink.cc b/chrome/common/ipc_test_sink.cc
|
| index 6a0e45b143270333b27d4b49e962dcdad352ad91..04fd0653bbda4a1103ca1299ea09385da1db6317 100644
|
| --- a/chrome/common/ipc_test_sink.cc
|
| +++ b/chrome/common/ipc_test_sink.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2010 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.
|
|
|
| @@ -12,6 +12,12 @@ TestSink::TestSink() {
|
| TestSink::~TestSink() {
|
| }
|
|
|
| +bool TestSink::Send(IPC::Message* message) {
|
| + OnMessageReceived(*message);
|
| + delete message;
|
| + return true;
|
| +}
|
| +
|
| void TestSink::OnMessageReceived(const Message& msg) {
|
| messages_.push_back(Message(msg));
|
| }
|
|
|