string_util: simplify TrimWhitespaceASCII

No callers of the function passed anything other than TRIM_ALL, looked
at the return value, or needed to pass a pointer for the output, so
remove those features and improve the tests.

BUG=b:245989146
TEST=cros_sdk env FEATURES="test" emerge-${BOARD} chromeos-base/gestures

Change-Id: Iec25ef20fdafc16bd5e23dc1e6744fdbc439b865
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/gestures/+/5318732
Reviewed-by: Henry Barnor <hbarnor@chromium.org>
Reviewed-by: Kenneth Albanowski <kenalba@google.com>
Reviewed-by: Torsha Banerjee <torsha@google.com>
Tested-by: Harry Cutts <hcutts@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Commit-Queue: Harry Cutts <hcutts@chromium.org>
6 files changed