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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "chrome/browser/autofill/test_autofill_external_delegate.h" | 23 #include "chrome/browser/autofill/test_autofill_external_delegate.h" |
24 #include "chrome/browser/prefs/pref_service.h" | 24 #include "chrome/browser/prefs/pref_service.h" |
25 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
26 #include "chrome/browser/ui/browser.h" | 26 #include "chrome/browser/ui/browser.h" |
27 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 27 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
28 #include "chrome/browser/ui/tab_contents/test_tab_contents_wrapper.h" | 28 #include "chrome/browser/ui/tab_contents/test_tab_contents_wrapper.h" |
29 #include "chrome/common/autofill_messages.h" | 29 #include "chrome/common/autofill_messages.h" |
30 #include "chrome/common/chrome_switches.h" | 30 #include "chrome/common/chrome_switches.h" |
31 #include "chrome/common/pref_names.h" | 31 #include "chrome/common/pref_names.h" |
32 #include "chrome/test/base/testing_profile.h" | 32 #include "chrome/test/base/testing_profile.h" |
| 33 #include "content/browser/renderer_host/mock_render_process_host.h" |
33 #include "content/browser/tab_contents/test_tab_contents.h" | 34 #include "content/browser/tab_contents/test_tab_contents.h" |
34 #include "content/test/test_browser_thread.h" | 35 #include "content/test/test_browser_thread.h" |
35 #include "googleurl/src/gurl.h" | 36 #include "googleurl/src/gurl.h" |
36 #include "grit/generated_resources.h" | 37 #include "grit/generated_resources.h" |
37 #include "ipc/ipc_test_sink.h" | 38 #include "ipc/ipc_test_sink.h" |
38 #include "testing/gmock/include/gmock/gmock.h" | 39 #include "testing/gmock/include/gmock/gmock.h" |
39 #include "testing/gtest/include/gtest/gtest.h" | 40 #include "testing/gtest/include/gtest/gtest.h" |
40 #include "ui/base/l10n/l10n_util.h" | 41 #include "ui/base/l10n/l10n_util.h" |
41 #include "ui/gfx/rect.h" | 42 #include "ui/gfx/rect.h" |
42 #include "webkit/forms/form_data.h" | 43 #include "webkit/forms/form_data.h" |
(...skipping 2877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2920 | 2921 |
2921 AutofillManager* autofill_manager = contents_wrapper()->autofill_manager(); | 2922 AutofillManager* autofill_manager = contents_wrapper()->autofill_manager(); |
2922 EXPECT_TRUE(autofill_manager->external_delegate()); | 2923 EXPECT_TRUE(autofill_manager->external_delegate()); |
2923 | 2924 |
2924 AutocompleteHistoryManager* autocomplete_history_manager = | 2925 AutocompleteHistoryManager* autocomplete_history_manager = |
2925 contents_wrapper()->autocomplete_history_manager(); | 2926 contents_wrapper()->autocomplete_history_manager(); |
2926 EXPECT_TRUE(autocomplete_history_manager->external_delegate()); | 2927 EXPECT_TRUE(autocomplete_history_manager->external_delegate()); |
2927 } | 2928 } |
2928 | 2929 |
2929 #endif // OS_ANDROID | 2930 #endif // OS_ANDROID |
OLD | NEW |