| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <list> | 5 #include <list> |
| 6 #include <map> | 6 #include <map> |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
| 13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 14 #include "base/stl_util-inl.h" | 14 #include "base/stl_util-inl.h" |
| 15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
| 16 #include "base/string16.h" | 16 #include "base/string16.h" |
| 17 #include "base/time.h" | 17 #include "base/time.h" |
| 18 #include "base/values.h" | 18 #include "base/values.h" |
| 19 #include "chrome/browser/autofill/autofill_profile.h" | 19 #include "chrome/browser/autofill/autofill_profile.h" |
| 20 #include "chrome/browser/autofill/autofill_type.h" | 20 #include "chrome/browser/autofill/autofill_type.h" |
| 21 #include "chrome/browser/autofill/credit_card.h" | 21 #include "chrome/browser/autofill/credit_card.h" |
| 22 #include "chrome/browser/search_engines/template_url.h" | 22 #include "chrome/browser/search_engines/template_url.h" |
| 23 #include "chrome/browser/webdata/autofill_change.h" | 23 #include "chrome/browser/webdata/autofill_change.h" |
| 24 #include "chrome/browser/webdata/autofill_entry.h" | 24 #include "chrome/browser/webdata/autofill_entry.h" |
| 25 #include "chrome/browser/webdata/web_database.h" | 25 #include "chrome/browser/webdata/web_database.h" |
| 26 #include "chrome/common/chrome_paths.h" | 26 #include "chrome/common/chrome_paths.h" |
| 27 #include "third_party/skia/include/core/SkBitmap.h" | 27 #include "third_party/skia/include/core/SkBitmap.h" |
| 28 #include "testing/gtest/include/gtest/gtest.h" | 28 #include "testing/gtest/include/gtest/gtest.h" |
| 29 #include "third_party/WebKit/WebKit/chromium/public/WebInputElement.h" | |
| 30 #include "webkit/glue/form_field.h" | 29 #include "webkit/glue/form_field.h" |
| 31 #include "webkit/glue/password_form.h" | 30 #include "webkit/glue/password_form.h" |
| 32 | 31 |
| 33 using base::Time; | 32 using base::Time; |
| 34 using base::TimeDelta; | 33 using base::TimeDelta; |
| 35 using webkit_glue::FormField; | 34 using webkit_glue::FormField; |
| 36 using webkit_glue::PasswordForm; | 35 using webkit_glue::PasswordForm; |
| 37 | 36 |
| 38 // So we can compare AutofillKeys with EXPECT_EQ(). | 37 // So we can compare AutofillKeys with EXPECT_EQ(). |
| 39 std::ostream& operator<<(std::ostream& os, const AutofillKey& key) { | 38 std::ostream& operator<<(std::ostream& os, const AutofillKey& key) { |
| (...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1385 | 1384 |
| 1386 // make sure the lists of entries match | 1385 // make sure the lists of entries match |
| 1387 ASSERT_EQ(expected_entries.size(), entry_set.size()); | 1386 ASSERT_EQ(expected_entries.size(), entry_set.size()); |
| 1388 AutofillEntrySetIterator it; | 1387 AutofillEntrySetIterator it; |
| 1389 for (it = entry_set.begin(); it != entry_set.end(); it++) { | 1388 for (it = entry_set.begin(); it != entry_set.end(); it++) { |
| 1390 expected_entries.erase(*it); | 1389 expected_entries.erase(*it); |
| 1391 } | 1390 } |
| 1392 | 1391 |
| 1393 EXPECT_EQ(0U, expected_entries.size()); | 1392 EXPECT_EQ(0U, expected_entries.size()); |
| 1394 } | 1393 } |
| OLD | NEW |