зеркало из https://github.com/mozilla/gecko-dev.git
0544a4cf70
GTest supports the TEST macro, which just runs a bunch of tests, and the TEST_F macro, which enables writing custom test fixtures to perform per-test setup and teardown. The benchmarking framework we have has a corresponding macro for the former, but no corresponding macro for the latter. If there's significant work to be done during setup and teardown, we certainly don't want to be doing that work during the actual benchmarking! So let's introduce a MOZ_GTEST_BENCH_F macro that works similarly to the TEST_F macro. |
||
---|---|---|
.. | ||
benchmark | ||
gmock | ||
gtest | ||
mozilla | ||
Makefile.in | ||
MozGtestFriend.h | ||
bench.py | ||
moz.build | ||
rungtests.py |