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

Unified Diff: ipc/ipc_fuzzing_tests.cc

Issue 2821028: Up the warnings in ipc (take 2)... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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
Index: ipc/ipc_fuzzing_tests.cc
===================================================================
--- ipc/ipc_fuzzing_tests.cc (revision 53465)
+++ ipc/ipc_fuzzing_tests.cc (working copy)
@@ -185,7 +185,7 @@
Cleanup();
}
- bool RoundtripAckReply(int routing, int type_id, int reply) {
+ bool RoundtripAckReply(int routing, uint32 type_id, int reply) {
IPC::Message* message = new IPC::Message(routing, type_id,
IPC::Message::PRIORITY_NORMAL);
message->WriteInt(reply + 1);
@@ -200,7 +200,7 @@
MessageLoop::current()->Quit();
}
- void ReplyMsgNotHandled(int type_id) {
+ void ReplyMsgNotHandled(uint32 type_id) {
RoundtripAckReply(FUZZER_ROUTING_ID, CLIENT_UNHANDLED_IPC, type_id);
Cleanup();
}
@@ -226,7 +226,7 @@
MessageLoop::current()->Quit();
}
- bool ExpectMessage(int value, int type_id) {
+ bool ExpectMessage(int value, uint32 type_id) {
if (!MsgHandlerInternal(type_id))
return false;
int msg_value1 = 0;
@@ -246,12 +246,12 @@
return true;
}
- bool ExpectMsgNotHandled(int type_id) {
+ bool ExpectMsgNotHandled(uint32 type_id) {
return ExpectMessage(type_id, CLIENT_UNHANDLED_IPC);
}
private:
- bool MsgHandlerInternal(int type_id) {
+ bool MsgHandlerInternal(uint32 type_id) {
MessageLoop::current()->Run();
if (NULL == last_msg_)
return false;
« no previous file with comments | « ipc/ipc_channel_posix.cc ('k') | ipc/ipc_logging.cc » ('j') | ipc/ipc_logging.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698