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

Unified Diff: tools/ipc_fuzzer/mutate/message_util.cc

Issue 920433003: Minor ipc_message_util cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ipc_fuzzer/mutate/message_util.cc
diff --git a/tools/ipc_fuzzer/mutate/message_util.cc b/tools/ipc_fuzzer/mutate/message_util.cc
index 85ce14b7492c7da31c45d33f3b42f9197bb3aeb7..deeb2d016f462ad5c3ea20677961098ef526247f 100644
--- a/tools/ipc_fuzzer/mutate/message_util.cc
+++ b/tools/ipc_fuzzer/mutate/message_util.cc
@@ -30,7 +30,7 @@ const char kHelpSwitchHelp[] =
const char kInSwitch[] = "in";
const char kInSwitchHelp[] =
- "output only the messages in the specified list.";
+ "output only the messages at the specified positions in the file.";
const char kInvertSwitch[] = "invert";
const char kInvertSwitchHelp[] =
@@ -102,9 +102,6 @@ int main(int argc, char** argv) {
end_index = static_cast<size_t>(temp);
}
- bool has_indices = cmd->HasSwitch(kInSwitch);
- std::vector<bool> indices;
-
bool has_regexp = cmd->HasSwitch(kRegexpSwitch);
RE2 filter_pattern(cmd->GetSwitchValueASCII(kRegexpSwitch));
@@ -134,6 +131,9 @@ int main(int argc, char** argv) {
message_vector.weak_clear();
}
+ bool has_indices = cmd->HasSwitch(kInSwitch);
+ std::vector<bool> indices;
+
if (has_indices) {
indices.resize(input_message_vector.size(), false);
std::vector<std::string> index_strings;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698