Index: ipc/attachment_broker_unprivileged_win_unittest.cc |
diff --git a/ipc/attachment_broker_win_unittest.cc b/ipc/attachment_broker_unprivileged_win_unittest.cc |
similarity index 85% |
rename from ipc/attachment_broker_win_unittest.cc |
rename to ipc/attachment_broker_unprivileged_win_unittest.cc |
index 1e7db65f2e403176b54e2e658bf766a76c67ff31..c2609976b2dced1306253545d76ede927090682e 100644 |
--- a/ipc/attachment_broker_win_unittest.cc |
+++ b/ipc/attachment_broker_unprivileged_win_unittest.cc |
@@ -10,20 +10,20 @@ |
#include "base/memory/scoped_ptr.h" |
#include "base/process/process.h" |
#include "ipc/attachment_broker_messages.h" |
-#include "ipc/attachment_broker_win.h" |
+#include "ipc/attachment_broker_unprivileged_win.h" |
#include "ipc/handle_attachment_win.h" |
#include "testing/gtest/include/gtest/gtest.h" |
namespace IPC { |
-TEST(AttachmentBrokerWinTest, ReceiveValidMessage) { |
+TEST(AttachmentBrokerUnprivilegedWinTest, ReceiveValidMessage) { |
HANDLE handle = LongToHandle(8); |
base::ProcessId destination = base::Process::Current().Pid(); |
scoped_refptr<internal::HandleAttachmentWin> attachment( |
new internal::HandleAttachmentWin(handle)); |
AttachmentBrokerMsg_WinHandleHasBeenDuplicated msg( |
attachment->GetWireFormat(destination)); |
- AttachmentBrokerWin attachment_broker; |
+ AttachmentBrokerUnprivilegedWin attachment_broker; |
EXPECT_TRUE(attachment_broker.OnMessageReceived(msg)); |
EXPECT_EQ(1u, attachment_broker.attachments_.size()); |
@@ -36,14 +36,14 @@ TEST(AttachmentBrokerWinTest, ReceiveValidMessage) { |
EXPECT_EQ(handle, received_handle_attachment->get_handle()); |
} |
-TEST(AttachmentBrokerWinTest, ReceiveInvalidMessage) { |
+TEST(AttachmentBrokerUnprivilegedWinTest, ReceiveInvalidMessage) { |
HANDLE handle = LongToHandle(8); |
base::ProcessId destination = base::Process::Current().Pid() + 1; |
scoped_refptr<internal::HandleAttachmentWin> attachment( |
new internal::HandleAttachmentWin(handle)); |
AttachmentBrokerMsg_WinHandleHasBeenDuplicated msg( |
attachment->GetWireFormat(destination)); |
- AttachmentBrokerWin attachment_broker; |
+ AttachmentBrokerUnprivilegedWin attachment_broker; |
EXPECT_TRUE(attachment_broker.OnMessageReceived(msg)); |
EXPECT_EQ(0u, attachment_broker.attachments_.size()); |
} |