Searched refs:RefCounter (Results 1 – 7 of 7) sorted by relevance
17 struct RefCounter { struct20 RefCounter() { ++Count; } in RefCounter() function21 ~RefCounter() { --Count; } in ~RefCounter() argument22 RefCounter(const RefCounter &) = delete;23 RefCounter &operator=(const RefCounter &) = delete;26 int RefCounter::Count;28 TEST(Expected, RefCounter) { in TEST() argument29 RefCounter::Count = 0; in TEST()30 using uptr = std::unique_ptr<RefCounter>; in TEST()32 acxxel::Expected<uptr> E0(uptr(new RefCounter)); in TEST()[all …]
245 struct RefCounter { struct248 RefCounter() { ++Count; } in RefCounter() function249 ~RefCounter() { --Count; } in ~RefCounter() argument250 RefCounter(const RefCounter &) = delete;251 RefCounter &operator=(const RefCounter &) = delete;254 int RefCounter::Count;258 RefCounter::Count = 0; in TEST_P()260 acxxel::OwnedAsyncHostMemory<RefCounter> A = in TEST_P()261 Platform->newAsyncHostMem<RefCounter>(3).takeValue(); in TEST_P()262 EXPECT_EQ(3, RefCounter::Count); in TEST_P()[all …]
20 class RefCounter {22 explicit RefCounter(int ref_count) : ref_count_(ref_count) {} in RefCounter() function23 RefCounter() = delete;
57 mutable webrtc::webrtc_impl::RefCounter ref_count_{0};
36 mutable webrtc::webrtc_impl::RefCounter ref_count_{0};
113 webrtc::webrtc_impl::RefCounter ref_count_{0};
206 webrtc_impl::RefCounter count_; in TEST_P()