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

Unified Diff: chrome/common/resource_dispatcher_unittest.cc

Issue 112042: Prevent an extra copy of data types that get passed into IPC messages when... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « chrome/common/ipc_message_utils.h ('k') | chrome/renderer/render_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/resource_dispatcher_unittest.cc
===================================================================
--- chrome/common/resource_dispatcher_unittest.cc (revision 16437)
+++ chrome/common/resource_dispatcher_unittest.cc (working copy)
@@ -120,11 +120,11 @@
message_queue_.erase(message_queue_.begin());
// read the ack message.
- int request_ack = -1;
+ Tuple1<int> request_ack;
ASSERT_TRUE(ViewHostMsg_DataReceived_ACK::Read(
&message_queue_[0], &request_ack));
- ASSERT_EQ(request_ack, request_id);
+ ASSERT_EQ(request_ack.a, request_id);
message_queue_.erase(message_queue_.begin());
}
« no previous file with comments | « chrome/common/ipc_message_utils.h ('k') | chrome/renderer/render_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698