| 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 bool is_main_frame, |
| 1061 ui::PageTransition page_transition, |
| 1062 bool has_user_gesture) override { |
| 1060 NOTREACHED(); | 1063 NOTREACHED(); |
| 1061 } | 1064 } |
| 1062 void LaunchUrlWithoutSecurityCheck(const GURL& url) override { NOTREACHED(); } | 1065 void LaunchUrlWithoutSecurityCheck(const GURL& url) override { NOTREACHED(); } |
| 1063 void FinishedProcessingCheck() override { NOTREACHED(); } | 1066 void FinishedProcessingCheck() override { NOTREACHED(); } |
| 1064 }; | 1067 }; |
| 1065 | 1068 |
| 1066 base::FilePath GetTestPath(const std::string& file_name) { | 1069 base::FilePath GetTestPath(const std::string& file_name) { |
| 1067 return ui_test_utils::GetTestFilePath( | 1070 return ui_test_utils::GetTestFilePath( |
| 1068 base::FilePath(FILE_PATH_LITERAL("prerender")), | 1071 base::FilePath(FILE_PATH_LITERAL("prerender")), |
| 1069 base::FilePath().AppendASCII(file_name)); | 1072 base::FilePath().AppendASCII(file_name)); |
| (...skipping 2983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4053 browser()->tab_strip_model()->GetActiveWebContents(); | 4056 browser()->tab_strip_model()->GetActiveWebContents(); |
| 4054 bool display_test_result = false; | 4057 bool display_test_result = false; |
| 4055 ASSERT_TRUE(content::ExecuteScriptAndExtractBool(web_contents, | 4058 ASSERT_TRUE(content::ExecuteScriptAndExtractBool(web_contents, |
| 4056 "DidDisplayReallyPass()", | 4059 "DidDisplayReallyPass()", |
| 4057 &display_test_result)); | 4060 &display_test_result)); |
| 4058 ASSERT_TRUE(display_test_result); | 4061 ASSERT_TRUE(display_test_result); |
| 4059 } | 4062 } |
| 4060 #endif // !defined(DISABLE_NACL) | 4063 #endif // !defined(DISABLE_NACL) |
| 4061 | 4064 |
| 4062 } // namespace prerender | 4065 } // namespace prerender |
| OLD | NEW |