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 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1049 } | 1049 } |
1050 ExternalProtocolHandler::BlockState GetBlockState( | 1050 ExternalProtocolHandler::BlockState GetBlockState( |
1051 const std::string& scheme) override { | 1051 const std::string& scheme) override { |
1052 // Block everything and fail the test. | 1052 // Block everything and fail the test. |
1053 ADD_FAILURE(); | 1053 ADD_FAILURE(); |
1054 return ExternalProtocolHandler::BLOCK; | 1054 return ExternalProtocolHandler::BLOCK; |
1055 } | 1055 } |
1056 void BlockRequest() override {} | 1056 void BlockRequest() override {} |
1057 void RunExternalProtocolDialog(const GURL& url, | 1057 void RunExternalProtocolDialog(const GURL& url, |
1058 int render_process_host_id, | 1058 int render_process_host_id, |
1059 int routing_id) override { | 1059 int routing_id, |
| 1060 ui::PageTransition page_transition) override { |
1060 NOTREACHED(); | 1061 NOTREACHED(); |
1061 } | 1062 } |
1062 void LaunchUrlWithoutSecurityCheck(const GURL& url) override { NOTREACHED(); } | 1063 void LaunchUrlWithoutSecurityCheck(const GURL& url) override { NOTREACHED(); } |
1063 void FinishedProcessingCheck() override { NOTREACHED(); } | 1064 void FinishedProcessingCheck() override { NOTREACHED(); } |
1064 }; | 1065 }; |
1065 | 1066 |
1066 base::FilePath GetTestPath(const std::string& file_name) { | 1067 base::FilePath GetTestPath(const std::string& file_name) { |
1067 return ui_test_utils::GetTestFilePath( | 1068 return ui_test_utils::GetTestFilePath( |
1068 base::FilePath(FILE_PATH_LITERAL("prerender")), | 1069 base::FilePath(FILE_PATH_LITERAL("prerender")), |
1069 base::FilePath().AppendASCII(file_name)); | 1070 base::FilePath().AppendASCII(file_name)); |
(...skipping 2980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4050 | 4051 |
4051 // Navigate to the URL entered. | 4052 // Navigate to the URL entered. |
4052 omnibox_view->model()->AcceptInput(CURRENT_TAB, false); | 4053 omnibox_view->model()->AcceptInput(CURRENT_TAB, false); |
4053 | 4054 |
4054 // Prerender should be running, but abandoned. | 4055 // Prerender should be running, but abandoned. |
4055 EXPECT_TRUE( | 4056 EXPECT_TRUE( |
4056 GetAutocompleteActionPredictor()->IsPrerenderAbandonedForTesting()); | 4057 GetAutocompleteActionPredictor()->IsPrerenderAbandonedForTesting()); |
4057 } | 4058 } |
4058 | 4059 |
4059 } // namespace prerender | 4060 } // namespace prerender |
OLD | NEW |