Changeset 276221 in webkit
- Timestamp:
- Apr 17, 2021, 9:47:47 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 10 edited
-
ChangeLog (modified) (1 diff)
-
Scripts/webkit/messages.py (modified) (3 diffs)
-
Scripts/webkit/tests/TestWithIfMessageMessageReceiver.cpp (modified) (1 diff)
-
Scripts/webkit/tests/TestWithImageDataMessageReceiver.cpp (modified) (2 diffs)
-
Scripts/webkit/tests/TestWithLegacyReceiverMessageReceiver.cpp (modified) (2 diffs)
-
Scripts/webkit/tests/TestWithSemaphoreMessageReceiver.cpp (modified) (2 diffs)
-
Scripts/webkit/tests/TestWithStreamBufferMessageReceiver.cpp (modified) (1 diff)
-
Scripts/webkit/tests/TestWithStreamMessageReceiver.cpp (modified) (1 diff)
-
Scripts/webkit/tests/TestWithSuperclassMessageReceiver.cpp (modified) (1 diff)
-
Scripts/webkit/tests/TestWithoutAttributesMessageReceiver.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r276220 r276221 1 2021-04-17 Kimmo Kinnunen <kkinnunen@apple.com> 2 3 Unhandled IPC messages should use correct format with the decoder.destinationID() ASSERT message 4 https://bugs.webkit.org/show_bug.cgi?id=224335 5 6 Reviewed by Antti Koivisto. 7 8 Use PRIu64 instead of llu in the ASSERT messages for printing unhandled message destination. 9 uint64_t is printf'ed with PRIu64. 10 11 * Scripts/webkit/messages.py: 12 (generate_message_handler): 13 * Scripts/webkit/tests/TestWithIfMessageMessageReceiver.cpp: 14 (WebKit::TestWithIfMessage::didReceiveMessage): 15 * Scripts/webkit/tests/TestWithImageDataMessageReceiver.cpp: 16 (WebKit::TestWithImageData::didReceiveMessage): 17 (WebKit::TestWithImageData::didReceiveSyncMessage): 18 * Scripts/webkit/tests/TestWithLegacyReceiverMessageReceiver.cpp: 19 (WebKit::TestWithLegacyReceiver::didReceiveTestWithLegacyReceiverMessage): 20 (WebKit::TestWithLegacyReceiver::didReceiveSyncTestWithLegacyReceiverMessage): 21 * Scripts/webkit/tests/TestWithSemaphoreMessageReceiver.cpp: 22 (WebKit::TestWithSemaphore::didReceiveMessage): 23 (WebKit::TestWithSemaphore::didReceiveSyncMessage): 24 * Scripts/webkit/tests/TestWithStreamBufferMessageReceiver.cpp: 25 (WebKit::TestWithStreamBuffer::didReceiveMessage): 26 * Scripts/webkit/tests/TestWithStreamMessageReceiver.cpp: 27 (WebKit::TestWithStream::didReceiveStreamMessage): 28 * Scripts/webkit/tests/TestWithSuperclassMessageReceiver.cpp: 29 (WebKit::TestWithSuperclass::didReceiveSyncMessage): 30 * Scripts/webkit/tests/TestWithoutAttributesMessageReceiver.cpp: 31 (WebKit::TestWithoutAttributes::didReceiveMessage): 32 (WebKit::TestWithoutAttributes::didReceiveSyncMessage): 33 1 34 2021-04-17 Wenson Hsieh <wenson_hsieh@apple.com> 2 35 -
trunk/Source/WebKit/Scripts/webkit/messages.py
r276177 r276221 953 953 result.append(' UNUSED_PARAM(decoder);\n') 954 954 result.append(' UNUSED_PARAM(connection);\n') 955 result.append(' ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled stream message %s to % llu", description(decoder.messageName()), decoder.destinationID());\n')955 result.append(' ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled stream message %s to %" PRIu64, description(decoder.messageName()), decoder.destinationID());\n') 956 956 result.append('}\n') 957 957 elif async_messages or receiver.has_attribute(WANTS_DISPATCH_MESSAGE_ATTRIBUTE) or receiver.has_attribute(WANTS_ASYNC_DISPATCH_MESSAGE_ATTRIBUTE): … … 972 972 result.append(' UNUSED_PARAM(connection);\n') 973 973 result.append(' UNUSED_PARAM(decoder);\n') 974 result.append(' ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled message %s to % llu", description(decoder.messageName()), decoder.destinationID());\n')974 result.append(' ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled message %s to %" PRIu64, description(decoder.messageName()), decoder.destinationID());\n') 975 975 result.append('}\n') 976 976 … … 988 988 result.append(' UNUSED_PARAM(decoder);\n') 989 989 result.append(' UNUSED_PARAM(replyEncoder);\n') 990 result.append(' ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled synchronous message %s to % llu", description(decoder.messageName()), decoder.destinationID());\n')990 result.append(' ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled synchronous message %s to %" PRIu64, description(decoder.messageName()), decoder.destinationID());\n') 991 991 result.append(' return false;\n') 992 992 result.append('}\n') -
trunk/Source/WebKit/Scripts/webkit/tests/TestWithIfMessageMessageReceiver.cpp
r275655 r276221 51 51 UNUSED_PARAM(connection); 52 52 UNUSED_PARAM(decoder); 53 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled message %s to % llu", description(decoder.messageName()), decoder.destinationID());53 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled message %s to %" PRIu64, description(decoder.messageName()), decoder.destinationID()); 54 54 } 55 55 -
trunk/Source/WebKit/Scripts/webkit/tests/TestWithImageDataMessageReceiver.cpp
r275655 r276221 43 43 UNUSED_PARAM(connection); 44 44 UNUSED_PARAM(decoder); 45 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled message %s to % llu", description(decoder.messageName()), decoder.destinationID());45 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled message %s to %" PRIu64, description(decoder.messageName()), decoder.destinationID()); 46 46 } 47 47 … … 54 54 UNUSED_PARAM(decoder); 55 55 UNUSED_PARAM(replyEncoder); 56 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled synchronous message %s to % llu", description(decoder.messageName()), decoder.destinationID());56 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled synchronous message %s to %" PRIu64, description(decoder.messageName()), decoder.destinationID()); 57 57 return false; 58 58 } -
trunk/Source/WebKit/Scripts/webkit/tests/TestWithLegacyReceiverMessageReceiver.cpp
r275655 r276221 132 132 UNUSED_PARAM(connection); 133 133 UNUSED_PARAM(decoder); 134 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled message %s to % llu", description(decoder.messageName()), decoder.destinationID());134 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled message %s to %" PRIu64, description(decoder.messageName()), decoder.destinationID()); 135 135 } 136 136 … … 155 155 UNUSED_PARAM(decoder); 156 156 UNUSED_PARAM(replyEncoder); 157 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled synchronous message %s to % llu", description(decoder.messageName()), decoder.destinationID());157 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled synchronous message %s to %" PRIu64, description(decoder.messageName()), decoder.destinationID()); 158 158 return false; 159 159 } -
trunk/Source/WebKit/Scripts/webkit/tests/TestWithSemaphoreMessageReceiver.cpp
r275655 r276221 40 40 UNUSED_PARAM(connection); 41 41 UNUSED_PARAM(decoder); 42 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled message %s to % llu", description(decoder.messageName()), decoder.destinationID());42 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled message %s to %" PRIu64, description(decoder.messageName()), decoder.destinationID()); 43 43 } 44 44 … … 51 51 UNUSED_PARAM(decoder); 52 52 UNUSED_PARAM(replyEncoder); 53 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled synchronous message %s to % llu", description(decoder.messageName()), decoder.destinationID());53 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled synchronous message %s to %" PRIu64, description(decoder.messageName()), decoder.destinationID()); 54 54 return false; 55 55 } -
trunk/Source/WebKit/Scripts/webkit/tests/TestWithStreamBufferMessageReceiver.cpp
r275655 r276221 40 40 UNUSED_PARAM(connection); 41 41 UNUSED_PARAM(decoder); 42 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled message %s to % llu", description(decoder.messageName()), decoder.destinationID());42 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled message %s to %" PRIu64, description(decoder.messageName()), decoder.destinationID()); 43 43 } 44 44 -
trunk/Source/WebKit/Scripts/webkit/tests/TestWithStreamMessageReceiver.cpp
r275655 r276221 57 57 UNUSED_PARAM(decoder); 58 58 UNUSED_PARAM(connection); 59 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled stream message %s to % llu", description(decoder.messageName()), decoder.destinationID());59 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled stream message %s to %" PRIu64, description(decoder.messageName()), decoder.destinationID()); 60 60 } 61 61 -
trunk/Source/WebKit/Scripts/webkit/tests/TestWithSuperclassMessageReceiver.cpp
r275655 r276221 201 201 UNUSED_PARAM(decoder); 202 202 UNUSED_PARAM(replyEncoder); 203 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled synchronous message %s to % llu", description(decoder.messageName()), decoder.destinationID());203 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled synchronous message %s to %" PRIu64, description(decoder.messageName()), decoder.destinationID()); 204 204 return false; 205 205 } -
trunk/Source/WebKit/Scripts/webkit/tests/TestWithoutAttributesMessageReceiver.cpp
r275655 r276221 132 132 UNUSED_PARAM(connection); 133 133 UNUSED_PARAM(decoder); 134 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled message %s to % llu", description(decoder.messageName()), decoder.destinationID());134 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled message %s to %" PRIu64, description(decoder.messageName()), decoder.destinationID()); 135 135 } 136 136 … … 155 155 UNUSED_PARAM(decoder); 156 156 UNUSED_PARAM(replyEncoder); 157 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled synchronous message %s to % llu", description(decoder.messageName()), decoder.destinationID());157 ASSERT_NOT_REACHED_WITH_MESSAGE("Unhandled synchronous message %s to %" PRIu64, description(decoder.messageName()), decoder.destinationID()); 158 158 return false; 159 159 }
Note:
See TracChangeset
for help on using the changeset viewer.