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

Unified Diff: ipc/attachment_broker_unprivileged_win_unittest.cc

Issue 1281083004: ipc: Add the class HandleWin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add logging. Created 5 years, 4 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/attachment_broker_privileged_win_unittest.cc ('k') | ipc/handle_attachment_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/attachment_broker_unprivileged_win_unittest.cc
diff --git a/ipc/attachment_broker_unprivileged_win_unittest.cc b/ipc/attachment_broker_unprivileged_win_unittest.cc
index c2609976b2dced1306253545d76ede927090682e..e67c54a61c7390d4ad16ac6c6c83be3d5913c709 100644
--- a/ipc/attachment_broker_unprivileged_win_unittest.cc
+++ b/ipc/attachment_broker_unprivileged_win_unittest.cc
@@ -20,7 +20,7 @@ TEST(AttachmentBrokerUnprivilegedWinTest, ReceiveValidMessage) {
HANDLE handle = LongToHandle(8);
base::ProcessId destination = base::Process::Current().Pid();
scoped_refptr<internal::HandleAttachmentWin> attachment(
- new internal::HandleAttachmentWin(handle));
+ new internal::HandleAttachmentWin(handle, HandleWin::DUPLICATE));
AttachmentBrokerMsg_WinHandleHasBeenDuplicated msg(
attachment->GetWireFormat(destination));
AttachmentBrokerUnprivilegedWin attachment_broker;
@@ -40,7 +40,7 @@ TEST(AttachmentBrokerUnprivilegedWinTest, ReceiveInvalidMessage) {
HANDLE handle = LongToHandle(8);
base::ProcessId destination = base::Process::Current().Pid() + 1;
scoped_refptr<internal::HandleAttachmentWin> attachment(
- new internal::HandleAttachmentWin(handle));
+ new internal::HandleAttachmentWin(handle, HandleWin::DUPLICATE));
AttachmentBrokerMsg_WinHandleHasBeenDuplicated msg(
attachment->GetWireFormat(destination));
AttachmentBrokerUnprivilegedWin attachment_broker;
« no previous file with comments | « ipc/attachment_broker_privileged_win_unittest.cc ('k') | ipc/handle_attachment_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698