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

Unified Diff: runtime/bin/main.cc

Issue 2247733005: Correct and GC unrecognized flags from our tests. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | runtime/bin/socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index 216b919848a073bdb69b890e42c596dfecd49858..9f7123843e824452a4c3793fac63b43d830f3b50 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -476,6 +476,24 @@ static bool ProcessHotReloadRollbackTestModeOption(
}
+extern bool short_socket_read;
+
+extern bool short_socket_write;
+
+static bool ProcessShortSocketReadOption(const char* arg,
+ CommandLineOptions* vm_options) {
+ short_socket_read = true;
+ return true;
+}
+
+
+static bool ProcessShortSocketWriteOption(const char* arg,
+ CommandLineOptions* vm_options) {
+ short_socket_write = true;
+ return true;
+}
+
+
static struct {
const char* option_name;
bool (*process)(const char* option, CommandLineOptions* vm_options);
@@ -502,6 +520,8 @@ static struct {
{ "--trace-loading", ProcessTraceLoadingOption },
{ "--hot-reload-test-mode", ProcessHotReloadTestModeOption },
{ "--hot-reload-rollback-test-mode", ProcessHotReloadRollbackTestModeOption },
+ { "--short_socket_read", ProcessShortSocketReadOption },
+ { "--short_socket_write", ProcessShortSocketWriteOption },
{ NULL, NULL }
};
« no previous file with comments | « no previous file | runtime/bin/socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698