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

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

Issue 7008025: Apply third party cookie blocking to all kinds of cookies (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 7 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 | Annotate | Revision Log
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 "chrome/browser/cookies_tree_model.h" 5 #include "chrome/browser/cookies_tree_model.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "chrome/browser/content_settings/host_content_settings_map.h" 9 #include "chrome/browser/content_settings/host_content_settings_map.h"
10 #include "chrome/browser/content_settings/stub_settings_observer.h" 10 #include "chrome/browser/content_settings/stub_settings_observer.h"
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 CookieTreeOriginNode* origin = root->GetOrCreateOriginNode(host); 674 CookieTreeOriginNode* origin = root->GetOrCreateOriginNode(host);
675 675
676 EXPECT_EQ(1, origin->child_count()); 676 EXPECT_EQ(1, origin->child_count());
677 EXPECT_TRUE(origin->CanCreateContentException()); 677 EXPECT_TRUE(origin->CanCreateContentException());
678 origin->CreateContentException( 678 origin->CreateContentException(
679 content_settings, CONTENT_SETTING_SESSION_ONLY); 679 content_settings, CONTENT_SETTING_SESSION_ONLY);
680 680
681 EXPECT_EQ(2, observer.counter); 681 EXPECT_EQ(2, observer.counter);
682 EXPECT_EQ(pattern, observer.last_pattern); 682 EXPECT_EQ(pattern, observer.last_pattern);
683 EXPECT_EQ(CONTENT_SETTING_SESSION_ONLY, 683 EXPECT_EQ(CONTENT_SETTING_SESSION_ONLY,
684 content_settings->GetContentSetting( 684 content_settings->GetCookieContentSetting(host, host, true));
685 host, CONTENT_SETTINGS_TYPE_COOKIES, ""));
686 } 685 }
687 686
688 } // namespace 687 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698