From 865f4608992b2e231fea601e56b2aa3ebe65174e Mon Sep 17 00:00:00 2001 From: Sadaf Ebrahimi Date: Mon, 25 Sep 2023 19:56:17 +0000 Subject: Replace thread_index with thread_index() This has been changed in the latest version of benchmark. Bug: http://b/301509174 Test: TreeHugger Change-Id: I315846873a6fe13f62b0081a91eea40ee03340e2 --- tests/benchmarks/dns_benchmark.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/benchmarks/dns_benchmark.cpp b/tests/benchmarks/dns_benchmark.cpp index 060e40a9..19f9318b 100644 --- a/tests/benchmarks/dns_benchmark.cpp +++ b/tests/benchmarks/dns_benchmark.cpp @@ -59,7 +59,7 @@ protected: public: void SetUp(const ::benchmark::State& state) override { - if (state.thread_index == 0) { + if (state.thread_index() == 0) { dns.SetUp(); std::vector domains = { "example.com" }; @@ -75,7 +75,7 @@ public: } void TearDown(const ::benchmark::State& state) override { - if (state.thread_index == 0) { + if (state.thread_index() == 0) { dns.TearDown(); } } -- cgit v1.2.3