Home
last modified time | relevance | path

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

/external/google-breakpad/src/processor/
Daddress_map_unittest.cc58 class CountedObject { class
60 explicit CountedObject(int id) : id_(id) { ++count_; } in CountedObject() function in __anon67f31ca90111::CountedObject
61 ~CountedObject() { --count_; } in ~CountedObject()
71 int CountedObject::count_;
74 typedef AddressMap< AddressType, linked_ptr<CountedObject> > TestMap;
77 ASSERT_EQ(CountedObject::count(), 0); in DoAddressMapTest()
80 linked_ptr<CountedObject> entry; in DoAddressMapTest()
89 ASSERT_EQ(CountedObject::count(), 0); in DoAddressMapTest()
91 linked_ptr<CountedObject>(new CountedObject(0)))); in DoAddressMapTest()
93 ASSERT_EQ(CountedObject::count(), 1); in DoAddressMapTest()
[all …]
Drange_map_unittest.cc54 class CountedObject { class
56 explicit CountedObject(int id) : id_(id) { ++count_; } in CountedObject() function in __anona28e2f300111::CountedObject
57 ~CountedObject() { --count_; } in ~CountedObject()
67 int CountedObject::count_;
71 typedef RangeMap< AddressType, linked_ptr<CountedObject> > TestMap;
106 linked_ptr<CountedObject> object(new CountedObject(range_test->id)); in StoreTest()
166 linked_ptr<CountedObject> object; in RetrieveTest()
210 linked_ptr<CountedObject> nearest_object; in RetrieveTest()
270 linked_ptr<CountedObject> object; in RetrieveIndexTest()
271 CountedObject *last_object = NULL; in RetrieveIndexTest()
[all …]
/external/python/cpython2/Lib/test/
Dtest_multiprocessing.py1170 class CountedObject(object): class
1328 objs = list(CountedObject() for i in range(10))
1337 self.assertEqual(CountedObject.n_instances, 0)
/external/python/cpython3/Lib/test/
D_test_multiprocessing.py2210 class CountedObject(object): class
2547 objs = [CountedObject() for i in range(10)]
2556 self.assertEqual(CountedObject.n_instances, 0)