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 <sstream> | 5 #include <sstream> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/metrics/histogram_base.h" | 8 #include "base/metrics/histogram_base.h" |
9 #include "base/metrics/histogram_samples.h" | 9 #include "base/metrics/histogram_samples.h" |
10 #include "base/metrics/statistics_recorder.h" | 10 #include "base/metrics/statistics_recorder.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 #include "components/history/core/common/thumbnail_score.h" | 52 #include "components/history/core/common/thumbnail_score.h" |
53 #include "components/omnibox/browser/autocomplete_controller.h" | 53 #include "components/omnibox/browser/autocomplete_controller.h" |
54 #include "components/omnibox/browser/autocomplete_match.h" | 54 #include "components/omnibox/browser/autocomplete_match.h" |
55 #include "components/omnibox/browser/autocomplete_provider.h" | 55 #include "components/omnibox/browser/autocomplete_provider.h" |
56 #include "components/omnibox/browser/autocomplete_result.h" | 56 #include "components/omnibox/browser/autocomplete_result.h" |
57 #include "components/omnibox/browser/omnibox_field_trial.h" | 57 #include "components/omnibox/browser/omnibox_field_trial.h" |
58 #include "components/omnibox/browser/omnibox_view.h" | 58 #include "components/omnibox/browser/omnibox_view.h" |
59 #include "components/omnibox/browser/search_provider.h" | 59 #include "components/omnibox/browser/search_provider.h" |
60 #include "components/search/search.h" | 60 #include "components/search/search.h" |
61 #include "components/search_engines/template_url_service.h" | 61 #include "components/search_engines/template_url_service.h" |
62 #include "components/sessions/serialized_navigation_entry.h" | 62 #include "components/sessions/core/serialized_navigation_entry.h" |
63 #include "content/public/browser/navigation_controller.h" | 63 #include "content/public/browser/navigation_controller.h" |
64 #include "content/public/browser/navigation_entry.h" | 64 #include "content/public/browser/navigation_entry.h" |
65 #include "content/public/browser/notification_service.h" | 65 #include "content/public/browser/notification_service.h" |
66 #include "content/public/browser/render_process_host.h" | 66 #include "content/public/browser/render_process_host.h" |
67 #include "content/public/browser/render_view_host.h" | 67 #include "content/public/browser/render_view_host.h" |
68 #include "content/public/browser/site_instance.h" | 68 #include "content/public/browser/site_instance.h" |
69 #include "content/public/browser/url_data_source.h" | 69 #include "content/public/browser/url_data_source.h" |
70 #include "content/public/browser/web_contents.h" | 70 #include "content/public/browser/web_contents.h" |
71 #include "content/public/common/bindings_policy.h" | 71 #include "content/public/common/bindings_policy.h" |
72 #include "content/public/test/browser_test_utils.h" | 72 #include "content/public/test/browser_test_utils.h" |
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1008 stream << "link.href = \"" << result_url.spec() << "\";"; | 1008 stream << "link.href = \"" << result_url.spec() << "\";"; |
1009 stream << "document.body.appendChild(link);"; | 1009 stream << "document.body.appendChild(link);"; |
1010 stream << "link.click();"; | 1010 stream << "link.click();"; |
1011 EXPECT_TRUE(content::ExecuteScript(contents, stream.str())); | 1011 EXPECT_TRUE(content::ExecuteScript(contents, stream.str())); |
1012 | 1012 |
1013 content::WaitForLoadStop(contents); | 1013 content::WaitForLoadStop(contents); |
1014 std::string expected_title = | 1014 std::string expected_title = |
1015 "Referrer is " + instant_url().GetWithEmptyPath().spec(); | 1015 "Referrer is " + instant_url().GetWithEmptyPath().spec(); |
1016 EXPECT_EQ(ASCIIToUTF16(expected_title), contents->GetTitle()); | 1016 EXPECT_EQ(ASCIIToUTF16(expected_title), contents->GetTitle()); |
1017 } | 1017 } |
OLD | NEW |