| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/string_number_conversions.h" | 6 #include "base/string_number_conversions.h" |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 9 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 10 #include "chrome/test/base/in_process_browser_test.h" | 10 #include "chrome/test/base/in_process_browser_test.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 net::TestServer ssl_test_server(net::TestServer::TYPE_HTTPS, | 117 net::TestServer ssl_test_server(net::TestServer::TYPE_HTTPS, |
| 118 FilePath(kDocRoot)); | 118 FilePath(kDocRoot)); |
| 119 ASSERT_TRUE(ssl_test_server.Start()); | 119 ASSERT_TRUE(ssl_test_server.Start()); |
| 120 GURL start_url = test_server.GetURL( | 120 GURL start_url = test_server.GetURL( |
| 121 std::string("files/referrer-policy-redirect.html?") + | 121 std::string("files/referrer-policy-redirect.html?") + |
| 122 "ssl_port=" + base::IntToString(ssl_test_server.host_port_pair().port()) + | 122 "ssl_port=" + base::IntToString(ssl_test_server.host_port_pair().port()) + |
| 123 "&port=" + base::IntToString(test_server.host_port_pair().port())); | 123 "&port=" + base::IntToString(test_server.host_port_pair().port())); |
| 124 std::string referrer = "Referrer is " + start_url.GetWithEmptyPath().spec(); | 124 std::string referrer = "Referrer is " + start_url.GetWithEmptyPath().spec(); |
| 125 NavigateToURLAndWaitForTitle(start_url, referrer, 2); | 125 NavigateToURLAndWaitForTitle(start_url, referrer, 2); |
| 126 } | 126 } |
| OLD | NEW |