From b8ca0c42179b7b5d656494e61dda8b861057122f Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Mon, 4 Feb 2019 16:26:51 +0300 Subject: [PATCH] README.md: mention that fixture has SetUp() / TearDown() --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 858ea233..902915eb 100644 --- a/README.md +++ b/README.md @@ -615,7 +615,14 @@ creating/registering the tests using the following macros: For Example: ```c++ -class MyFixture : public benchmark::Fixture {}; +class MyFixture : public benchmark::Fixture { +public: + void SetUp(const ::benchmark::State& state) { + } + + void TearDown(const ::benchmark::State& state) { + } +}; BENCHMARK_F(MyFixture, FooTest)(benchmark::State& st) { for (auto _ : st) {