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

Unified Diff: ipc/ipc_channel_mojo_unittest.cc

Issue 2494943002: Remove IPC::BrokerableAttachment. (Closed)
Patch Set: extra test output Created 4 years, 1 month 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/ipc_channel_mojo.cc ('k') | ipc/ipc_channel_nacl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_mojo_unittest.cc
diff --git a/ipc/ipc_channel_mojo_unittest.cc b/ipc/ipc_channel_mojo_unittest.cc
index 229716edc0dbae08db8694e8537745961347d0bc..5c23ea3823c6b407c7fbf32d16354913dc42e314 100644
--- a/ipc/ipc_channel_mojo_unittest.cc
+++ b/ipc/ipc_channel_mojo_unittest.cc
@@ -289,11 +289,12 @@ class HandleSendingHelper {
base::ScopedFD fd;
scoped_refptr<base::Pickle::Attachment> attachment;
EXPECT_TRUE(message.ReadAttachment(iter, &attachment));
- EXPECT_EQ(IPC::MessageAttachment::TYPE_PLATFORM_FILE,
- static_cast<IPC::MessageAttachment*>(attachment.get())
- ->GetType());
- base::File file(static_cast<IPC::MessageAttachment*>(attachment.get())
- ->TakePlatformFile());
+ EXPECT_EQ(
+ IPC::MessageAttachment::Type::PLATFORM_FILE,
+ static_cast<IPC::MessageAttachment*>(attachment.get())->GetType());
+ base::File file(
+ static_cast<IPC::internal::PlatformFileAttachment*>(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/ipc_channel_mojo.cc ('k') | ipc/ipc_channel_nacl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698