Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: chrome/browser/prerender/prerender_browsertest.cc

Issue 1091253008: Fix an issue that external protocol in subframes are not handled on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698