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

Unified Diff: ipc/mojo/ipc_channel_mojo_unittest.cc

Issue 1659003003: IPC::Message -> base::Pickle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more mac fix Created 4 years, 11 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/mach_port_mac.cc ('k') | ipc/mojo/ipc_mojo_message_helper.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 b4f4154c67ce2b9509578f05816e13814abde69c..e27ec5df61ffc16994c918eead2ca5654b76901a 100644
--- a/ipc/mojo/ipc_channel_mojo_unittest.cc
+++ b/ipc/mojo/ipc_channel_mojo_unittest.cc
@@ -378,9 +378,10 @@ class HandleSendingHelper {
static void ReadReceivedFile(const IPC::Message& message,
base::PickleIterator* iter) {
base::ScopedFD fd;
- scoped_refptr<IPC::MessageAttachment> attachment;
+ scoped_refptr<base::Pickle::Attachment> attachment;
EXPECT_TRUE(message.ReadAttachment(iter, &attachment));
- base::File file(attachment->TakePlatformFile());
+ base::File file(static_cast<IPC::MessageAttachment*>(attachment.get())
+ ->TakePlatformFile());
std::string content(GetSendingFileContent().size(), ' ');
file.Read(0, &content[0], content.size());
EXPECT_EQ(content, GetSendingFileContent());
« no previous file with comments | « ipc/mach_port_mac.cc ('k') | ipc/mojo/ipc_mojo_message_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698