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

Unified Diff: ipc/ipc_fuzzing_tests.cc

Issue 2968003005: Support Serializing and Deserializing RepeatedField / RepeatedPtrField in IPC::Message (Closed)
Patch Set: Resolve review comments Created 3 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
diff --git a/ipc/ipc_fuzzing_tests.cc b/ipc/ipc_fuzzing_tests.cc
index 8e385bc34fe828bca88d781a26628dab6e7da953..5744135c56a1bbb5f01f4fb0a1cb14c96cf0f81c 100644
--- a/ipc/ipc_fuzzing_tests.cc
+++ b/ipc/ipc_fuzzing_tests.cc
@@ -126,6 +126,20 @@ TEST(IPCMessageIntegrity, ReadVectorTooLarge2) {
EXPECT_FALSE(ReadParam(&m, &iter, &vec));
}
+// This test needs ~20 seconds in Debug mode, or ~4 seconds in Release mode.
+// See http://crbug.com/741866 for details.
+TEST(IPCMessageIntegrity, DISABLED_ReadVectorTooLarge3) {
+ base::Pickle pickle;
+ IPC::WriteParam(&pickle, 256 * 1024 * 1024);
+ IPC::WriteParam(&pickle, 0);
+ IPC::WriteParam(&pickle, 1);
+ IPC::WriteParam(&pickle, 2);
+
+ base::PickleIterator iter(pickle);
+ std::vector<int> vec;
+ EXPECT_FALSE(IPC::ReadParam(&pickle, &iter, &vec));
+}
+
class SimpleListener : public IPC::Listener {
public:
SimpleListener() : other_(NULL) {
« no previous file with comments | « ipc/DEPS ('k') | ipc/ipc_message_protobuf_utils.h » ('j') | ipc/ipc_message_protobuf_utils.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698