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

Unified Diff: ipc/ipc_sync_channel_unittest.cc

Issue 695353005: Non-SFI mode: Use dummy PID for NaCl's IPC channel on Linux platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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_posix.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_sync_channel_unittest.cc
diff --git a/ipc/ipc_sync_channel_unittest.cc b/ipc/ipc_sync_channel_unittest.cc
index f834ec3b5bb3da95067456d6c1cc1ba0ee17d739..43512ab12e7c2df432b48ffb7a146abdceb7c780 100644
--- a/ipc/ipc_sync_channel_unittest.cc
+++ b/ipc/ipc_sync_channel_unittest.cc
@@ -1722,7 +1722,11 @@ class VerifiedServer : public Worker {
VLOG(1) << __FUNCTION__ << " Sending reply: " << reply_text_;
SyncChannelNestedTestMsg_String::WriteReplyParams(reply_msg, reply_text_);
Send(reply_msg);
- ASSERT_EQ(channel()->GetPeerPID(), base::GetCurrentProcId());
+#if defined(OS_LINUX) || defined(OS_NACL_NONSFI)
+ ASSERT_EQ(-1, channel()->GetPeerPID());
+#else
+ ASSERT_EQ(base::GetCurrentProcId(), channel()->GetPeerPID());
+#endif
Done();
}
@@ -1751,7 +1755,11 @@ class VerifiedClient : public Worker {
(void)expected_text_;
VLOG(1) << __FUNCTION__ << " Received reply: " << response;
- ASSERT_EQ(channel()->GetPeerPID(), base::GetCurrentProcId());
+#if defined(OS_LINUX) || defined(OS_NACL_NONSFI)
+ ASSERT_EQ(-1, channel()->GetPeerPID());
+#else
+ ASSERT_EQ(base::GetCurrentProcId(), channel()->GetPeerPID());
+#endif
Done();
}
« no previous file with comments | « ipc/ipc_channel_posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698