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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "base/base_switches.h" | 9 #include "base/base_switches.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 #include "components/bookmarks/test/bookmark_test_helpers.h" | 48 #include "components/bookmarks/test/bookmark_test_helpers.h" |
49 #include "components/history/core/browser/history_db_task.h" | 49 #include "components/history/core/browser/history_db_task.h" |
50 #include "components/history/core/browser/history_service.h" | 50 #include "components/history/core/browser/history_service.h" |
51 #include "components/history/core/browser/history_types.h" | 51 #include "components/history/core/browser/history_types.h" |
52 #include "components/history/core/browser/top_sites.h" | 52 #include "components/history/core/browser/top_sites.h" |
53 #include "components/history/core/common/thumbnail_score.h" | 53 #include "components/history/core/common/thumbnail_score.h" |
54 #include "components/omnibox/browser/autocomplete_controller.h" | 54 #include "components/omnibox/browser/autocomplete_controller.h" |
55 #include "components/omnibox/browser/autocomplete_match.h" | 55 #include "components/omnibox/browser/autocomplete_match.h" |
56 #include "components/omnibox/browser/autocomplete_provider.h" | 56 #include "components/omnibox/browser/autocomplete_provider.h" |
57 #include "components/omnibox/browser/autocomplete_result.h" | 57 #include "components/omnibox/browser/autocomplete_result.h" |
| 58 #include "components/omnibox/browser/omnibox_edit_model.h" |
58 #include "components/omnibox/browser/omnibox_field_trial.h" | 59 #include "components/omnibox/browser/omnibox_field_trial.h" |
59 #include "components/omnibox/browser/omnibox_view.h" | |
60 #include "components/omnibox/browser/search_provider.h" | 60 #include "components/omnibox/browser/search_provider.h" |
61 #include "components/prefs/pref_service.h" | 61 #include "components/prefs/pref_service.h" |
62 #include "components/search/search.h" | 62 #include "components/search/search.h" |
63 #include "components/search_engines/template_url_service.h" | 63 #include "components/search_engines/template_url_service.h" |
64 #include "components/sessions/core/serialized_navigation_entry.h" | 64 #include "components/sessions/core/serialized_navigation_entry.h" |
65 #include "content/public/browser/navigation_controller.h" | 65 #include "content/public/browser/navigation_controller.h" |
66 #include "content/public/browser/navigation_entry.h" | 66 #include "content/public/browser/navigation_entry.h" |
67 #include "content/public/browser/notification_service.h" | 67 #include "content/public/browser/notification_service.h" |
68 #include "content/public/browser/render_process_host.h" | 68 #include "content/public/browser/render_process_host.h" |
69 #include "content/public/browser/render_view_host.h" | 69 #include "content/public/browser/render_view_host.h" |
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
970 stream << "link.href = \"" << result_url.spec() << "\";"; | 970 stream << "link.href = \"" << result_url.spec() << "\";"; |
971 stream << "document.body.appendChild(link);"; | 971 stream << "document.body.appendChild(link);"; |
972 stream << "link.click();"; | 972 stream << "link.click();"; |
973 EXPECT_TRUE(content::ExecuteScript(contents, stream.str())); | 973 EXPECT_TRUE(content::ExecuteScript(contents, stream.str())); |
974 | 974 |
975 content::WaitForLoadStop(contents); | 975 content::WaitForLoadStop(contents); |
976 std::string expected_title = | 976 std::string expected_title = |
977 "Referrer is " + instant_url().GetWithEmptyPath().spec(); | 977 "Referrer is " + instant_url().GetWithEmptyPath().spec(); |
978 EXPECT_EQ(ASCIIToUTF16(expected_title), contents->GetTitle()); | 978 EXPECT_EQ(ASCIIToUTF16(expected_title), contents->GetTitle()); |
979 } | 979 } |
OLD | NEW |