Lines Matching refs:consumer
178 AutofillWebDataServiceConsumer<std::vector<string16> > consumer;
182 name1_, string16(), limit, &consumer);
184 // The message loop will exit when the consumer is called.
187 EXPECT_EQ(handle, consumer.handle());
188 ASSERT_EQ(1U, consumer.result().size());
189 EXPECT_EQ(value1_, consumer.result()[0]);
272 AutofillWebDataServiceConsumer<std::vector<AutofillProfile*> > consumer;
273 WebDataService::Handle handle = wds_->GetAutofillProfiles(&consumer);
275 EXPECT_EQ(handle, consumer.handle());
276 ASSERT_EQ(1U, consumer.result().size());
277 EXPECT_EQ(profile, *consumer.result()[0]);
278 STLDeleteElements(&consumer.result());
292 AutofillWebDataServiceConsumer<std::vector<AutofillProfile*> > consumer;
293 WebDataService::Handle handle = wds_->GetAutofillProfiles(&consumer);
295 EXPECT_EQ(handle, consumer.handle());
296 ASSERT_EQ(1U, consumer.result().size());
297 EXPECT_EQ(profile, *consumer.result()[0]);
298 STLDeleteElements(&consumer.result());
337 AutofillWebDataServiceConsumer<std::vector<AutofillProfile*> > consumer;
338 WebDataService::Handle handle = wds_->GetAutofillProfiles(&consumer);
340 EXPECT_EQ(handle, consumer.handle());
341 ASSERT_EQ(2U, consumer.result().size());
342 EXPECT_EQ(profile1, *consumer.result()[0]);
343 EXPECT_EQ(profile2, *consumer.result()[1]);
344 STLDeleteElements(&consumer.result());
393 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer;
394 WebDataService::Handle handle = wds_->GetCreditCards(&consumer);
396 EXPECT_EQ(handle, consumer.handle());
397 ASSERT_EQ(1U, consumer.result().size());
398 EXPECT_EQ(card, *consumer.result()[0]);
399 STLDeleteElements(&consumer.result());
412 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer;
413 WebDataService::Handle handle = wds_->GetCreditCards(&consumer);
415 EXPECT_EQ(handle, consumer.handle());
416 ASSERT_EQ(1U, consumer.result().size());
417 EXPECT_EQ(credit_card, *consumer.result()[0]);
418 STLDeleteElements(&consumer.result());
457 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer;
458 WebDataService::Handle handle = wds_->GetCreditCards(&consumer);
460 EXPECT_EQ(handle, consumer.handle());
461 ASSERT_EQ(2U, consumer.result().size());
462 EXPECT_EQ(card1, *consumer.result()[0]);
463 EXPECT_EQ(card2, *consumer.result()[1]);
464 STLDeleteElements(&consumer.result());