a56db1a680
... and not just any flag starting with "protocol". I believe the original code used `startsWith()` to try and catch both `--protocol` as its own flag, and `--protocol=` when combined with the value. However, it also caught `--protocol-traffic-log`. `wasParsed()` should handle both of the first cases without the latter. I also unskipped the tests for Windows because the skip was added in44cee12ebe(Jan 2021) because the `deleteDirectory()` call failed on Windows (file locking) butf40b06a8ac(Jan 2022) already fixed that. Fixes https://github.com/dart-lang/sdk/issues/52501 Change-Id: I931a3f12dca2683167e999e7fe59bed18159eb73 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/441780 Auto-Submit: Danny Tuppeny <danny@tuppeny.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com>