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

Unified Diff: tools/ipc_fuzzer/replay/replay.cc

Issue 106163003: Refactor IPC fuzzer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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: tools/ipc_fuzzer/replay/replay.cc
diff --git a/tools/ipc_fuzzer/replay/replay.cc b/tools/ipc_fuzzer/replay/replay.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a0757f18f69fd647f4da10665a1a7abeb196edaa
--- /dev/null
+++ b/tools/ipc_fuzzer/replay/replay.cc
@@ -0,0 +1,17 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "tools/ipc_fuzzer/replay/replay_process.h"
+
+int main(int argc, const char **argv) {
+ ipc_fuzzer::ReplayProcess replay;
+ replay.Initialize(argc, argv);
+ replay.OpenChannel();
Tom Sepez 2013/12/05 19:05:49 nit: can OpenChannel fail?
aedla 2013/12/05 23:16:21 It can't. Well, at least for POSIX, the channel ha
+
+ if (!replay.OpenTestcase())
+ return 0;
Tom Sepez 2013/12/05 19:05:49 return EXIT_FAILURE or 1 to indicate failure.
aedla 2013/12/05 23:16:21 Done.
+
+ replay.Run();
+ return 0;
Tom Sepez 2013/12/05 19:05:49 nit: return EXIT_SUCCESS just because its more por
aedla 2013/12/05 23:16:21 Done.
+}

Powered by Google App Engine
This is Rietveld 408576698