Searched refs:SimpleRefCounted (Results 1 – 2 of 2) sorted by relevance
16 struct SimpleRefCounted : public RefCountedBase<SimpleRefCounted> { struct17 SimpleRefCounted() { ++NumInstances; } in SimpleRefCounted() argument18 SimpleRefCounted(const SimpleRefCounted &) : RefCountedBase() { in SimpleRefCounted() argument21 ~SimpleRefCounted() { --NumInstances; } in ~SimpleRefCounted() argument25 int SimpleRefCounted::NumInstances = 0;29 EXPECT_EQ(0, SimpleRefCounted::NumInstances); in TEST()31 SimpleRefCounted *S1 = new SimpleRefCounted; in TEST()32 IntrusiveRefCntPtr<SimpleRefCounted> R1 = S1; in TEST()33 SimpleRefCounted *S2 = new SimpleRefCounted(*S1); in TEST()34 IntrusiveRefCntPtr<SimpleRefCounted> R2 = S2; in TEST()[all …]
29 struct SimpleRefCounted : public RefCountedBase<SimpleRefCounted> {}; struct33 SimpleRefCounted *S1 = new SimpleRefCounted; in TEST()34 IntrusiveRefCntPtr<SimpleRefCounted> R1 = S1; in TEST()35 SimpleRefCounted *S2 = new SimpleRefCounted(*S1); in TEST()36 IntrusiveRefCntPtr<SimpleRefCounted> R2 = S2; in TEST()