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 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/guid.h" | 8 #include "base/guid.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
13 #include "chrome/test/base/testing_browser_process.h" | 13 #include "chrome/test/base/testing_browser_process.h" |
14 #include "chrome/test/base/testing_profile.h" | 14 #include "chrome/test/base/testing_profile.h" |
15 #include "components/autofill/browser/autofill_common_test.h" | 15 #include "components/autofill/browser/autofill_common_test.h" |
16 #include "components/autofill/browser/autofill_metrics.h" | 16 #include "components/autofill/browser/autofill_metrics.h" |
17 #include "components/autofill/browser/autofill_profile.h" | 17 #include "components/autofill/browser/autofill_profile.h" |
18 #include "components/autofill/browser/form_structure.h" | 18 #include "components/autofill/browser/form_structure.h" |
19 #include "components/autofill/browser/personal_data_manager.h" | 19 #include "components/autofill/browser/personal_data_manager.h" |
20 #include "components/autofill/browser/personal_data_manager_observer.h" | 20 #include "components/autofill/browser/personal_data_manager_observer.h" |
21 #include "components/autofill/browser/webdata/autofill_webdata_service.h" | 21 #include "components/autofill/browser/webdata/autofill_webdata_service.h" |
22 #include "components/autofill/common/form_data.h" | 22 #include "components/autofill/core/common/form_data.h" |
23 #include "components/webdata/encryptor/encryptor.h" | 23 #include "components/webdata/encryptor/encryptor.h" |
24 #include "content/public/browser/notification_details.h" | 24 #include "content/public/browser/notification_details.h" |
25 #include "content/public/browser/notification_registrar.h" | 25 #include "content/public/browser/notification_registrar.h" |
26 #include "content/public/browser/notification_source.h" | 26 #include "content/public/browser/notification_source.h" |
27 #include "content/public/browser/notification_types.h" | 27 #include "content/public/browser/notification_types.h" |
28 #include "content/public/test/mock_notification_observer.h" | 28 #include "content/public/test/mock_notification_observer.h" |
29 #include "content/public/test/test_browser_thread.h" | 29 #include "content/public/test/test_browser_thread.h" |
30 #include "testing/gmock/include/gmock/gmock.h" | 30 #include "testing/gmock/include/gmock/gmock.h" |
31 #include "testing/gtest/include/gtest/gtest.h" | 31 #include "testing/gtest/include/gtest/gtest.h" |
32 | 32 |
(...skipping 2383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2416 // Removing shouldn't work. | 2416 // Removing shouldn't work. |
2417 personal_data_->RemoveByGUID(steve_jobs.guid()); | 2417 personal_data_->RemoveByGUID(steve_jobs.guid()); |
2418 personal_data_->RemoveByGUID(bill_gates.guid()); | 2418 personal_data_->RemoveByGUID(bill_gates.guid()); |
2419 | 2419 |
2420 ResetPersonalDataManager(); | 2420 ResetPersonalDataManager(); |
2421 EXPECT_EQ(1U, personal_data_->GetProfiles().size()); | 2421 EXPECT_EQ(1U, personal_data_->GetProfiles().size()); |
2422 EXPECT_EQ(1U, personal_data_->GetCreditCards().size()); | 2422 EXPECT_EQ(1U, personal_data_->GetCreditCards().size()); |
2423 } | 2423 } |
2424 | 2424 |
2425 } // namespace autofill | 2425 } // namespace autofill |
OLD | NEW |