summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_fuzzing_tests.cc
diff options
context:
space:
mode:
authorthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-02 12:32:07 +0000
committerthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-02 12:32:07 +0000
commit1d88c7f3d3b780274d7d594175271158150ca1e3 (patch)
treef353a677d2e210b4f7d51639c72af58012b7be24 /ipc/ipc_fuzzing_tests.cc
parentdcfb5c0db3c898441e6d1e1f38781a488816a0e4 (diff)
downloadchromium_src-1d88c7f3d3b780274d7d594175271158150ca1e3.zip
chromium_src-1d88c7f3d3b780274d7d594175271158150ca1e3.tar.gz
chromium_src-1d88c7f3d3b780274d7d594175271158150ca1e3.tar.bz2
Revert 51520 - Up the warnings in ipc
add chromium_code:1 to the GYP file Fix some unittest compares of literal 0 to apis that return size_t initializer order match declared order type_id is a uint32, so fix up comparison warnings by using the right type in the test code. BUG=none TEST=everything still builds/works Review URL: http://codereview.chromium.org/2863034 TBR=thomasvl@google.com Review URL: http://codereview.chromium.org/2852042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51523 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_fuzzing_tests.cc')
-rw-r--r--ipc/ipc_fuzzing_tests.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/ipc/ipc_fuzzing_tests.cc b/ipc/ipc_fuzzing_tests.cc
index aaccd70..951ccbb 100644
--- a/ipc/ipc_fuzzing_tests.cc
+++ b/ipc/ipc_fuzzing_tests.cc
@@ -186,7 +186,7 @@ class FuzzerServerListener : public SimpleListener {
Cleanup();
}
- bool RoundtripAckReply(int routing, uint32 type_id, int reply) {
+ bool RoundtripAckReply(int routing, int type_id, int reply) {
IPC::Message* message = new IPC::Message(routing, type_id,
IPC::Message::PRIORITY_NORMAL);
message->WriteInt(reply + 1);
@@ -201,7 +201,7 @@ class FuzzerServerListener : public SimpleListener {
MessageLoop::current()->Quit();
}
- void ReplyMsgNotHandled(uint32 type_id) {
+ void ReplyMsgNotHandled(int type_id) {
RoundtripAckReply(FUZZER_ROUTING_ID, CLIENT_UNHANDLED_IPC, type_id);
Cleanup();
}
@@ -227,7 +227,7 @@ class FuzzerClientListener : public SimpleListener {
MessageLoop::current()->Quit();
}
- bool ExpectMessage(int value, uint32 type_id) {
+ bool ExpectMessage(int value, int type_id) {
if (!MsgHandlerInternal(type_id))
return false;
int msg_value1 = 0;
@@ -247,12 +247,12 @@ class FuzzerClientListener : public SimpleListener {
return true;
}
- bool ExpectMsgNotHandled(uint32 type_id) {
+ bool ExpectMsgNotHandled(int type_id) {
return ExpectMessage(type_id, CLIENT_UNHANDLED_IPC);
}
private:
- bool MsgHandlerInternal(uint32 type_id) {
+ bool MsgHandlerInternal(int type_id) {
MessageLoop::current()->Run();
if (NULL == last_msg_)
return false;