OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <memory> | 5 #include <memory> |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/message_loop/message_loop.h" |
15 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
16 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
17 #include "base/strings/string16.h" | 18 #include "base/strings/string16.h" |
18 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
19 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
20 #include "base/synchronization/waitable_event.h" | 21 #include "base/synchronization/waitable_event.h" |
21 #include "base/test/scoped_task_environment.h" | 22 #include "base/test/scoped_task_environment.h" |
22 #include "base/threading/thread.h" | 23 #include "base/threading/thread.h" |
23 #include "base/threading/thread_task_runner_handle.h" | 24 #include "base/threading/thread_task_runner_handle.h" |
24 #include "base/time/time.h" | 25 #include "base/time/time.h" |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 // Check that the credit card was removed. | 541 // Check that the credit card was removed. |
541 AutofillWebDataServiceConsumer<std::vector<std::unique_ptr<CreditCard>>> | 542 AutofillWebDataServiceConsumer<std::vector<std::unique_ptr<CreditCard>>> |
542 card_consumer2; | 543 card_consumer2; |
543 handle2 = wds_->GetCreditCards(&card_consumer2); | 544 handle2 = wds_->GetCreditCards(&card_consumer2); |
544 base::RunLoop().Run(); | 545 base::RunLoop().Run(); |
545 EXPECT_EQ(handle2, card_consumer2.handle()); | 546 EXPECT_EQ(handle2, card_consumer2.handle()); |
546 ASSERT_EQ(0U, card_consumer2.result().size()); | 547 ASSERT_EQ(0U, card_consumer2.result().size()); |
547 } | 548 } |
548 | 549 |
549 } // namespace autofill | 550 } // namespace autofill |
OLD | NEW |