Home
last modified time | relevance | path

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

/external/webrtc/webrtc/base/
Dscopedptrcollection.h32 for (typename VectorT::iterator it = collection_.begin(); in ~ScopedPtrCollection()
33 it != collection_.end(); ++it) { in ~ScopedPtrCollection()
38 const VectorT& collection() const { return collection_; } in collection()
40 collection_.reserve(size); in Reserve()
43 collection_.push_back(t); in PushBack()
48 collection_.erase(std::remove(collection_.begin(), collection_.end(), t), in Remove()
49 collection_.end()); in Remove()
53 VectorT collection_;
Dscopedptrcollection_unittest.cc40 collection_(new ScopedPtrCollection<InstanceCounter>()) { in ScopedPtrCollectionTest()
44 scoped_ptr<ScopedPtrCollection<InstanceCounter> > collection_; member in rtc::ScopedPtrCollectionTest
48 EXPECT_EQ(0u, collection_->collection().size()); in TEST_F()
52 collection_->PushBack(new InstanceCounter(&num_instances_)); in TEST_F()
54 EXPECT_EQ(static_cast<size_t>(kNum), collection_->collection().size()); in TEST_F()
56 collection_.reset(); in TEST_F()
62 collection_->PushBack(ic); in TEST_F()
63 EXPECT_EQ(1u, collection_->collection().size()); in TEST_F()
64 collection_->Remove(ic); in TEST_F()
66 collection_.reset(); in TEST_F()