OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "base/synchronization/waitable_event.h" | 18 #include "base/synchronization/waitable_event.h" |
19 #include "base/time.h" | 19 #include "base/time.h" |
20 #include "components/autofill/browser/autofill_country.h" | 20 #include "components/autofill/browser/autofill_country.h" |
21 #include "components/autofill/browser/autofill_profile.h" | 21 #include "components/autofill/browser/autofill_profile.h" |
22 #include "components/autofill/browser/credit_card.h" | 22 #include "components/autofill/browser/credit_card.h" |
23 #include "components/autofill/browser/webdata/autofill_change.h" | 23 #include "components/autofill/browser/webdata/autofill_change.h" |
24 #include "components/autofill/browser/webdata/autofill_entry.h" | 24 #include "components/autofill/browser/webdata/autofill_entry.h" |
25 #include "components/autofill/browser/webdata/autofill_table.h" | 25 #include "components/autofill/browser/webdata/autofill_table.h" |
26 #include "components/autofill/browser/webdata/autofill_webdata_service.h" | 26 #include "components/autofill/browser/webdata/autofill_webdata_service.h" |
27 #include "components/autofill/browser/webdata/autofill_webdata_service_observer.
h" | 27 #include "components/autofill/browser/webdata/autofill_webdata_service_observer.
h" |
28 #include "components/autofill/common/form_field_data.h" | 28 #include "components/autofill/shared/form_field_data.h" |
29 #include "components/webdata/common/web_data_service_test_util.h" | 29 #include "components/webdata/common/web_data_service_test_util.h" |
30 #include "components/webdata/common/web_database_service.h" | 30 #include "components/webdata/common/web_database_service.h" |
31 #include "content/public/test/test_browser_thread.h" | 31 #include "content/public/test/test_browser_thread.h" |
32 #include "testing/gmock/include/gmock/gmock.h" | 32 #include "testing/gmock/include/gmock/gmock.h" |
33 #include "testing/gtest/include/gtest/gtest.h" | 33 #include "testing/gtest/include/gtest/gtest.h" |
34 | 34 |
35 using base::Time; | 35 using base::Time; |
36 using base::TimeDelta; | 36 using base::TimeDelta; |
37 using base::WaitableEvent; | 37 using base::WaitableEvent; |
38 using content::BrowserThread; | 38 using content::BrowserThread; |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 | 529 |
530 // Check that the credit card was removed. | 530 // Check that the credit card was removed. |
531 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > card_consumer2; | 531 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > card_consumer2; |
532 handle2 = wds_->GetCreditCards(&card_consumer2); | 532 handle2 = wds_->GetCreditCards(&card_consumer2); |
533 base::MessageLoop::current()->Run(); | 533 base::MessageLoop::current()->Run(); |
534 EXPECT_EQ(handle2, card_consumer2.handle()); | 534 EXPECT_EQ(handle2, card_consumer2.handle()); |
535 ASSERT_EQ(0U, card_consumer2.result().size()); | 535 ASSERT_EQ(0U, card_consumer2.result().size()); |
536 } | 536 } |
537 | 537 |
538 } // namespace autofill | 538 } // namespace autofill |
OLD | NEW |