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

Side by Side Diff: chrome/browser/net/cookie_policy_browsertest.cc

Issue 414046: Merge 32257 - Add browser tests for the BLOCK_THIRD_PARTY_COOKIES policy... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/249/src/
Patch Set: Created 11 years, 1 month 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.gyp » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/browser/browser.h" 5 #include "chrome/browser/browser.h"
6 #include "chrome/browser/net/url_request_context_getter.h" 6 #include "chrome/browser/net/url_request_context_getter.h"
7 #include "chrome/browser/profile.h" 7 #include "chrome/browser/profile.h"
8 #include "chrome/common/pref_names.h" 8 #include "chrome/common/pref_names.h"
9 #include "chrome/common/pref_service.h" 9 #include "chrome/common/pref_service.h"
10 #include "chrome/test/in_process_browser_test.h" 10 #include "chrome/test/in_process_browser_test.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 ASSERT_EQ("", cookie); 78 ASSERT_EQ("", cookie);
79 79
80 host_resolver()->AddRule("www.example.com", "127.0.0.1"); 80 host_resolver()->AddRule("www.example.com", "127.0.0.1");
81 81
82 ui_test_utils::NavigateToURL(browser(), 82 ui_test_utils::NavigateToURL(browser(),
83 GURL(url.spec() + redirected_url.spec())); 83 GURL(url.spec() + redirected_url.spec()));
84 84
85 cookie = cookie_store->GetCookies(redirected_url); 85 cookie = cookie_store->GetCookies(redirected_url);
86 EXPECT_EQ("cookie2", cookie); 86 EXPECT_EQ("cookie2", cookie);
87 } 87 }
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698