diff options
author | Sadaf Ebrahimi <sadafebrahimi@google.com> | 2023-09-25 19:56:17 +0000 |
---|---|---|
committer | Sadaf Ebrahimi <sadafebrahimi@google.com> | 2023-09-27 14:47:11 +0000 |
commit | 865f4608992b2e231fea601e56b2aa3ebe65174e (patch) | |
tree | 008a79576f61810fc6cf90873fe6b9b442e3db0b /tests | |
parent | 56dd7f83acf54c8b58a9adbad4556003bed88ff9 (diff) | |
download | netd-865f4608992b2e231fea601e56b2aa3ebe65174e.tar.gz |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/benchmarks/dns_benchmark.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<std::string> 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(); } } |