| 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 <deque> | 5 #include <deque> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 #include "chrome/browser/ui/omnibox/omnibox_edit_model.h" | 54 #include "chrome/browser/ui/omnibox/omnibox_edit_model.h" |
| 55 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" | 55 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" |
| 56 #include "chrome/browser/ui/omnibox/omnibox_view.h" | 56 #include "chrome/browser/ui/omnibox/omnibox_view.h" |
| 57 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 57 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 58 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" | 58 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" |
| 59 #include "chrome/common/chrome_paths.h" | 59 #include "chrome/common/chrome_paths.h" |
| 60 #include "chrome/common/chrome_switches.h" | 60 #include "chrome/common/chrome_switches.h" |
| 61 #include "chrome/common/extensions/extension_constants.h" | 61 #include "chrome/common/extensions/extension_constants.h" |
| 62 #include "chrome/common/extensions/manifest_handlers/mime_types_handler.h" | 62 #include "chrome/common/extensions/manifest_handlers/mime_types_handler.h" |
| 63 #include "chrome/common/pref_names.h" | 63 #include "chrome/common/pref_names.h" |
| 64 #include "chrome/grit/generated_resources.h" |
| 64 #include "chrome/test/base/in_process_browser_test.h" | 65 #include "chrome/test/base/in_process_browser_test.h" |
| 65 #include "chrome/test/base/test_switches.h" | 66 #include "chrome/test/base/test_switches.h" |
| 66 #include "chrome/test/base/ui_test_utils.h" | 67 #include "chrome/test/base/ui_test_utils.h" |
| 67 #include "chrome/test/base/uma_histogram_helper.h" | 68 #include "chrome/test/base/uma_histogram_helper.h" |
| 68 #include "content/public/browser/browser_message_filter.h" | 69 #include "content/public/browser/browser_message_filter.h" |
| 69 #include "content/public/browser/devtools_agent_host.h" | 70 #include "content/public/browser/devtools_agent_host.h" |
| 70 #include "content/public/browser/devtools_client_host.h" | 71 #include "content/public/browser/devtools_client_host.h" |
| 71 #include "content/public/browser/devtools_manager.h" | 72 #include "content/public/browser/devtools_manager.h" |
| 72 #include "content/public/browser/navigation_controller.h" | 73 #include "content/public/browser/navigation_controller.h" |
| 73 #include "content/public/browser/navigation_entry.h" | 74 #include "content/public/browser/navigation_entry.h" |
| 74 #include "content/public/browser/notification_service.h" | 75 #include "content/public/browser/notification_service.h" |
| 75 #include "content/public/browser/render_frame_host.h" | 76 #include "content/public/browser/render_frame_host.h" |
| 76 #include "content/public/browser/render_process_host.h" | 77 #include "content/public/browser/render_process_host.h" |
| 77 #include "content/public/browser/render_view_host.h" | 78 #include "content/public/browser/render_view_host.h" |
| 78 #include "content/public/browser/site_instance.h" | 79 #include "content/public/browser/site_instance.h" |
| 79 #include "content/public/browser/web_contents.h" | 80 #include "content/public/browser/web_contents.h" |
| 80 #include "content/public/browser/web_contents_observer.h" | 81 #include "content/public/browser/web_contents_observer.h" |
| 81 #include "content/public/common/url_constants.h" | 82 #include "content/public/common/url_constants.h" |
| 82 #include "content/public/test/browser_test_utils.h" | 83 #include "content/public/test/browser_test_utils.h" |
| 83 #include "content/public/test/test_navigation_observer.h" | 84 #include "content/public/test/test_navigation_observer.h" |
| 84 #include "content/public/test/test_utils.h" | 85 #include "content/public/test/test_utils.h" |
| 85 #include "content/test/net/url_request_mock_http_job.h" | 86 #include "content/test/net/url_request_mock_http_job.h" |
| 86 #include "extensions/common/switches.h" | 87 #include "extensions/common/switches.h" |
| 87 #include "grit/generated_resources.h" | |
| 88 #include "net/base/escape.h" | 88 #include "net/base/escape.h" |
| 89 #include "net/cert/x509_certificate.h" | 89 #include "net/cert/x509_certificate.h" |
| 90 #include "net/dns/mock_host_resolver.h" | 90 #include "net/dns/mock_host_resolver.h" |
| 91 #include "net/ssl/client_cert_store.h" | 91 #include "net/ssl/client_cert_store.h" |
| 92 #include "net/ssl/ssl_cert_request_info.h" | 92 #include "net/ssl/ssl_cert_request_info.h" |
| 93 #include "net/url_request/url_request_context.h" | 93 #include "net/url_request/url_request_context.h" |
| 94 #include "net/url_request/url_request_context_getter.h" | 94 #include "net/url_request/url_request_context_getter.h" |
| 95 #include "net/url_request/url_request_filter.h" | 95 #include "net/url_request/url_request_filter.h" |
| 96 #include "net/url_request/url_request_interceptor.h" | 96 #include "net/url_request/url_request_interceptor.h" |
| 97 #include "net/url_request/url_request_job.h" | 97 #include "net/url_request/url_request_job.h" |
| (...skipping 4321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4419 | 4419 |
| 4420 // Navigate to the URL entered. | 4420 // Navigate to the URL entered. |
| 4421 omnibox_view->model()->AcceptInput(CURRENT_TAB, false); | 4421 omnibox_view->model()->AcceptInput(CURRENT_TAB, false); |
| 4422 | 4422 |
| 4423 // Prerender should be running, but abandoned. | 4423 // Prerender should be running, but abandoned. |
| 4424 EXPECT_TRUE( | 4424 EXPECT_TRUE( |
| 4425 GetAutocompleteActionPredictor()->IsPrerenderAbandonedForTesting()); | 4425 GetAutocompleteActionPredictor()->IsPrerenderAbandonedForTesting()); |
| 4426 } | 4426 } |
| 4427 | 4427 |
| 4428 } // namespace prerender | 4428 } // namespace prerender |
| OLD | NEW |