Lines Matching defs:producer
38 struct Producer : SupportsWeakPtr<Producer> {};
39 struct Consumer { WeakPtr<Producer> producer; };
92 Producer f;
93 WeakPtr<Producer> ptr = f.AsWeakPtr();
122 scoped_ptr<Producer> producer(OffThreadObjectCreator<Producer>::NewObject());
123 WeakPtr<Producer> weak_producer = producer->AsWeakPtr();
124 EXPECT_EQ(producer.get(), weak_producer.get());
132 Producer producer;
133 consumer->producer = producer.AsWeakPtr();
134 EXPECT_EQ(&producer, consumer->producer.get());