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 <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/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "chrome/browser/sync/profile_sync_service.h" | 27 #include "chrome/browser/sync/profile_sync_service.h" |
28 #include "chrome/browser/ui/browser.h" | 28 #include "chrome/browser/ui/browser.h" |
29 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 29 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
30 #include "chrome/browser/ui/tab_contents/test_tab_contents_wrapper.h" | 30 #include "chrome/browser/ui/tab_contents/test_tab_contents_wrapper.h" |
31 #include "chrome/common/autofill_messages.h" | 31 #include "chrome/common/autofill_messages.h" |
32 #include "chrome/common/chrome_switches.h" | 32 #include "chrome/common/chrome_switches.h" |
33 #include "chrome/common/pref_names.h" | 33 #include "chrome/common/pref_names.h" |
34 #include "chrome/test/base/testing_profile.h" | 34 #include "chrome/test/base/testing_profile.h" |
35 #include "content/public/browser/web_contents.h" | 35 #include "content/public/browser/web_contents.h" |
36 #include "content/public/test/mock_render_process_host.h" | 36 #include "content/public/test/mock_render_process_host.h" |
37 #include "content/test/test_browser_thread.h" | 37 #include "content/public/test/test_browser_thread.h" |
38 #include "googleurl/src/gurl.h" | 38 #include "googleurl/src/gurl.h" |
39 #include "grit/generated_resources.h" | 39 #include "grit/generated_resources.h" |
40 #include "ipc/ipc_test_sink.h" | 40 #include "ipc/ipc_test_sink.h" |
41 #include "testing/gmock/include/gmock/gmock.h" | 41 #include "testing/gmock/include/gmock/gmock.h" |
42 #include "testing/gtest/include/gtest/gtest.h" | 42 #include "testing/gtest/include/gtest/gtest.h" |
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAutofillClient.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAutofillClient.h" |
44 #include "ui/base/l10n/l10n_util.h" | 44 #include "ui/base/l10n/l10n_util.h" |
45 #include "ui/gfx/rect.h" | 45 #include "ui/gfx/rect.h" |
46 #include "webkit/forms/form_data.h" | 46 #include "webkit/forms/form_data.h" |
47 #include "webkit/forms/form_field.h" | 47 #include "webkit/forms/form_field.h" |
(...skipping 3081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3129 | 3129 |
3130 AutofillManager* autofill_manager = contents_wrapper()->autofill_manager(); | 3130 AutofillManager* autofill_manager = contents_wrapper()->autofill_manager(); |
3131 EXPECT_TRUE(autofill_manager->external_delegate()); | 3131 EXPECT_TRUE(autofill_manager->external_delegate()); |
3132 | 3132 |
3133 AutocompleteHistoryManager* autocomplete_history_manager = | 3133 AutocompleteHistoryManager* autocomplete_history_manager = |
3134 contents_wrapper()->autocomplete_history_manager(); | 3134 contents_wrapper()->autocomplete_history_manager(); |
3135 EXPECT_TRUE(autocomplete_history_manager->external_delegate()); | 3135 EXPECT_TRUE(autocomplete_history_manager->external_delegate()); |
3136 } | 3136 } |
3137 | 3137 |
3138 #endif // OS_ANDROID | 3138 #endif // OS_ANDROID |
OLD | NEW |