Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(446)

Unified Diff: ipc/mojo/ipc_channel_mojo_unittest.cc

Issue 1185133006: IPC: Make ChannelReader inherit from SupportsAttachmentBrokering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from tsepez. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/mojo/ipc_channel_mojo.cc ('k') | ipc/mojo/ipc_mojo_bootstrap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/mojo/ipc_channel_mojo_unittest.cc
diff --git a/ipc/mojo/ipc_channel_mojo_unittest.cc b/ipc/mojo/ipc_channel_mojo_unittest.cc
index df5b7ba36bb5fe03ed2b7090958ebdf2733f52f7..17242bf12edf71aacedc87965eef25c2e330c1b1 100644
--- a/ipc/mojo/ipc_channel_mojo_unittest.cc
+++ b/ipc/mojo/ipc_channel_mojo_unittest.cc
@@ -68,9 +68,10 @@ class ListenerThatExpectsOK : public IPC::Listener {
class ChannelClient {
public:
explicit ChannelClient(IPC::Listener* listener, const char* name) {
- channel_ = IPC::ChannelMojo::Create(NULL, main_message_loop_.task_runner(),
- IPCTestBase::GetChannelName(name),
- IPC::Channel::MODE_CLIENT, listener);
+ channel_ =
+ IPC::ChannelMojo::Create(NULL, main_message_loop_.task_runner(),
+ IPCTestBase::GetChannelName(name),
+ IPC::Channel::MODE_CLIENT, listener, nullptr);
}
void Connect() {
@@ -116,8 +117,8 @@ class IPCChannelMojoTest : public IPCChannelMojoTestBase {
const IPC::ChannelHandle& handle,
base::SequencedTaskRunner* runner) override {
host_.reset(new IPC::ChannelMojoHost(task_runner()));
- return IPC::ChannelMojo::CreateServerFactory(host_->channel_delegate(),
- task_runner(), handle);
+ return IPC::ChannelMojo::CreateServerFactory(
+ host_->channel_delegate(), task_runner(), handle, nullptr);
}
bool DidStartClient() override {
@@ -224,8 +225,8 @@ class IPCChannelMojoErrorTest : public IPCChannelMojoTestBase {
const IPC::ChannelHandle& handle,
base::SequencedTaskRunner* runner) override {
host_.reset(new IPC::ChannelMojoHost(task_runner()));
- return IPC::ChannelMojo::CreateServerFactory(host_->channel_delegate(),
- task_runner(), handle);
+ return IPC::ChannelMojo::CreateServerFactory(
+ host_->channel_delegate(), task_runner(), handle, nullptr);
}
bool DidStartClient() override {
@@ -558,8 +559,8 @@ class IPCChannelMojoDeadHandleTest : public IPCChannelMojoTestBase {
const IPC::ChannelHandle& handle,
base::SequencedTaskRunner* runner) override {
host_.reset(new IPC::ChannelMojoHost(task_runner()));
- return IPC::ChannelMojo::CreateServerFactory(host_->channel_delegate(),
- task_runner(), handle);
+ return IPC::ChannelMojo::CreateServerFactory(
+ host_->channel_delegate(), task_runner(), handle, nullptr);
}
bool DidStartClient() override {
« no previous file with comments | « ipc/mojo/ipc_channel_mojo.cc ('k') | ipc/mojo/ipc_mojo_bootstrap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698