cct_benchmark: Group some params in a class

This is a pure refactor: no change in functionality.

Introduce a new POD LaunchInfo with immutable parameters coming into the
benchmark. This allows reducing the list of parameters in a few
functions passing these along the way, which would reduce plumbing
efforts required to introduce more parameters.

Hopefully the separation between LaunchInfo and CustomCallback is
intuitive and easy to operate.

Bug: 929926
Change-Id: I6e58daceb7b729cafdefed329d07d1e2a159e842
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1667802
Commit-Queue: Egor Pasko <pasko@chromium.org>
Reviewed-by: Benoit L <lizeb@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#671642}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0d3a56ffaaa77fbc4d9c7d6b302692ae234e1546
1 file changed