CommandLineTest.ProgramQuotes: Fix crash-prone test.
Previously, this test would crash if the output wasn't quoted properly
(since it assumes that cmd_string.length() >= program_string.length() +
2). Instead, directly compare the string with the expected output. This
also guards against the possibility of mis-constructing the expected
string.
Review URL: https://codereview.chromium.org/589393002
Cr-Commit-Position: refs/heads/master@{#296350}
CrOS-Libchrome-Original-Commit: b937b24239d36fb4cdfeb98b2db818e4304dd8b4
1 file changed