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
tree: 59a68ac099352e167916abfe5f14a017f2def381
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/