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 <algorithm> | 5 #include <algorithm> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
12 #include "base/prefs/pref_service.h" | 12 #include "base/prefs/pref_service.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "base/time.h" | 17 #include "base/time/time.h" |
18 #include "base/tuple.h" | 18 #include "base/tuple.h" |
19 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 19 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
20 #include "chrome/browser/password_manager/password_manager.h" | 20 #include "chrome/browser/password_manager/password_manager.h" |
21 #include "chrome/browser/password_manager/password_manager_delegate_impl.h" | 21 #include "chrome/browser/password_manager/password_manager_delegate_impl.h" |
22 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
23 #include "chrome/browser/sync/profile_sync_service.h" | 23 #include "chrome/browser/sync/profile_sync_service.h" |
24 #include "chrome/browser/sync/profile_sync_service_factory.h" | 24 #include "chrome/browser/sync/profile_sync_service_factory.h" |
25 #include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h" | 25 #include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h" |
26 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 26 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
27 #include "chrome/test/base/testing_profile.h" | 27 #include "chrome/test/base/testing_profile.h" |
(...skipping 3431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3459 forms.push_back(user_supplied); | 3459 forms.push_back(user_supplied); |
3460 | 3460 |
3461 // FormStructure should contain the same forms as before. | 3461 // FormStructure should contain the same forms as before. |
3462 DynamicFormsSeen(forms); | 3462 DynamicFormsSeen(forms); |
3463 form_structures = autofill_manager_->GetFormStructures(); | 3463 form_structures = autofill_manager_->GetFormStructures(); |
3464 ASSERT_EQ(1U, form_structures.size()); | 3464 ASSERT_EQ(1U, form_structures.size()); |
3465 EXPECT_EQ("/form.html", form_structures[0]->source_url().path()); | 3465 EXPECT_EQ("/form.html", form_structures[0]->source_url().path()); |
3466 } | 3466 } |
3467 | 3467 |
3468 } // namespace autofill | 3468 } // namespace autofill |
OLD | NEW |