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 <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/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_profile.h" | 13 #include "chrome/test/base/testing_profile.h" |
14 #include "components/autofill/core/browser/autofill_common_test.h" | 14 #include "components/autofill/core/browser/autofill_common_test.h" |
15 #include "components/autofill/core/browser/autofill_metrics.h" | 15 #include "components/autofill/core/browser/autofill_metrics.h" |
16 #include "components/autofill/core/browser/autofill_profile.h" | 16 #include "components/autofill/core/browser/autofill_profile.h" |
17 #include "components/autofill/core/browser/form_structure.h" | 17 #include "components/autofill/core/browser/form_structure.h" |
18 #include "components/autofill/core/browser/personal_data_manager.h" | 18 #include "components/autofill/core/browser/personal_data_manager.h" |
19 #include "components/autofill/core/browser/personal_data_manager_observer.h" | 19 #include "components/autofill/core/browser/personal_data_manager_observer.h" |
20 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 20 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
(...skipping 2388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2409 // Removing shouldn't work. | 2409 // Removing shouldn't work. |
2410 personal_data_->RemoveByGUID(steve_jobs.guid()); | 2410 personal_data_->RemoveByGUID(steve_jobs.guid()); |
2411 personal_data_->RemoveByGUID(bill_gates.guid()); | 2411 personal_data_->RemoveByGUID(bill_gates.guid()); |
2412 | 2412 |
2413 ResetPersonalDataManager(); | 2413 ResetPersonalDataManager(); |
2414 EXPECT_EQ(1U, personal_data_->GetProfiles().size()); | 2414 EXPECT_EQ(1U, personal_data_->GetProfiles().size()); |
2415 EXPECT_EQ(1U, personal_data_->GetCreditCards().size()); | 2415 EXPECT_EQ(1U, personal_data_->GetCreditCards().size()); |
2416 } | 2416 } |
2417 | 2417 |
2418 } // namespace autofill | 2418 } // namespace autofill |
OLD | NEW |