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

Unified Diff: ppapi/host/resource_message_filter_unittest.cc

Issue 57783006: Revert https://src.chromium.org/viewvc/chrome?view=rev&revision=231330 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile (cc perftest). Created 7 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_sync_message.cc ('k') | ppapi/proxy/nacl_message_scanner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/host/resource_message_filter_unittest.cc
diff --git a/ppapi/host/resource_message_filter_unittest.cc b/ppapi/host/resource_message_filter_unittest.cc
index 38fd9d8f50e65b1e4d86d33845aa5b90c3b93b5f..78fc23cf6b43bd34f712e881b1ba9cbe101445b4 100644
--- a/ppapi/host/resource_message_filter_unittest.cc
+++ b/ppapi/host/resource_message_filter_unittest.cc
@@ -64,7 +64,8 @@ class MyResourceHost : public ResourceHost {
HostMessageContext* context) OVERRIDE {
last_handled_msg_ = msg;
if (msg.type() == msg_type_) {
- context->reply_msg = IPC::Message(0, reply_msg_type_);
+ context->reply_msg = IPC::Message(0, reply_msg_type_,
+ IPC::Message::PRIORITY_NORMAL);
return PP_OK;
}
return PP_ERROR_FAILED;
@@ -122,7 +123,8 @@ class MyResourceFilter : public ResourceMessageFilter {
last_handled_msg_ = msg;
last_message_loop_ = base::MessageLoop::current();
if (msg.type() == msg_type_) {
- context->reply_msg = IPC::Message(0, reply_msg_type_);
+ context->reply_msg = IPC::Message(0, reply_msg_type_,
+ IPC::Message::PRIORITY_NORMAL);
return PP_OK;
}
return PP_ERROR_FAILED;
@@ -164,9 +166,9 @@ TEST_F(ResourceMessageFilterTest, TestHandleMessage) {
proxy::ResourceMessageCallParams params(resource, 1);
params.set_has_callback();
HostMessageContext context(params);
- IPC::Message message1(0, MSG1_TYPE);
- IPC::Message message2(0, MSG2_TYPE);
- IPC::Message message3(0, MSG3_TYPE);
+ IPC::Message message1(0, MSG1_TYPE, IPC::Message::PRIORITY_NORMAL);
+ IPC::Message message2(0, MSG2_TYPE, IPC::Message::PRIORITY_NORMAL);
+ IPC::Message message3(0, MSG3_TYPE, IPC::Message::PRIORITY_NORMAL);
// Message 1 handled by the first filter.
host.HandleMessage(message1, &context);
« no previous file with comments | « ipc/ipc_sync_message.cc ('k') | ppapi/proxy/nacl_message_scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698