Home
last modified time | relevance | path

Searched refs:GetTLS (Results 1 – 1 of 1) sorted by relevance

/external/perfetto/src/tracing/test/
Dplatform_unittest.cc29 internal::TracingTLS* GetTLS() { in GetTLS() function
68 thread1->PostTask([] { GetTLS()->generation = 101; }); in TEST()
69 thread2->PostTask([] { GetTLS()->generation = 102; }); in TEST()
78 EXPECT_EQ(GetTLS()->generation, 101u); in TEST()
79 GetTLS()->data_sources_tls[0].per_instance[0].Reset(); in TEST()
82 GetTLS()->data_sources_tls[0].per_instance[0].trace_writer = std::move(tw); in TEST()
89 EXPECT_EQ(GetTLS()->generation, 102u); in TEST()
90 GetTLS()->data_sources_tls[0].per_instance[0].Reset(); in TEST()
93 GetTLS()->data_sources_tls[0].per_instance[0].trace_writer = std::move(tw); in TEST()