Index: tools/ipc_fuzzer/replay/replay_process.cc |
diff --git a/tools/ipc_fuzzer/replay/replay_process.cc b/tools/ipc_fuzzer/replay/replay_process.cc |
index c5db76c8efb3b3a03f791184a59c91c71ad1d8d9..d8fa89aedb31e3d4fe44581d49752684cac445e7 100644 |
--- a/tools/ipc_fuzzer/replay/replay_process.cc |
+++ b/tools/ipc_fuzzer/replay/replay_process.cc |
@@ -16,9 +16,19 @@ |
#include "ipc/ipc_descriptors.h" |
#include "ipc/ipc_switches.h" |
#include "ipc/mojo/ipc_channel_mojo.h" |
+#include "third_party/mojo/src/mojo/edk/embedder/configuration.h" |
+#include "third_party/mojo/src/mojo/edk/embedder/embedder.h" |
+#include "third_party/mojo/src/mojo/edk/embedder/simple_platform_support.h" |
namespace ipc_fuzzer { |
+void InitializeMojo() { |
inferno
2015/01/30 20:42:21
Why do we need to duplicate this. can we not call
|
+ mojo::embedder::GetConfiguration()->max_message_num_bytes = |
+ 64 * 1024 * 1024; |
+ mojo::embedder::Init(scoped_ptr<mojo::embedder::PlatformSupport>( |
+ new mojo::embedder::SimplePlatformSupport())); |
+} |
+ |
ReplayProcess::ReplayProcess() |
: io_thread_("Chrome_ChildIOThread"), |
shutdown_event_(true, false), |
@@ -60,6 +70,8 @@ bool ReplayProcess::Initialize(int argc, const char** argv) { |
kPrimaryIPCChannel + base::GlobalDescriptors::kBaseDescriptor); |
#endif |
+ InitializeMojo(); |
+ |
return true; |
} |