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

Side by Side Diff: chrome/browser/referrer_policy_browsertest.cc

Issue 8852004: Merge 113307 - Test for referrer policy (Closed) Base URL: svn://svn.chromium.org/chrome/branches/963/src/
Patch Set: Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698