| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/host_content_settings_map.h" | 9 #include "chrome/browser/host_content_settings_map.h" |
| 10 #include "chrome/browser/mock_browsing_data_appcache_helper.h" | 10 #include "chrome/browser/mock_browsing_data_appcache_helper.h" |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 CookieTreeOriginNode* origin = root->GetOrCreateOriginNode(host); | 531 CookieTreeOriginNode* origin = root->GetOrCreateOriginNode(host); |
| 532 | 532 |
| 533 EXPECT_EQ(1, origin->GetChildCount()); | 533 EXPECT_EQ(1, origin->GetChildCount()); |
| 534 EXPECT_TRUE(origin->CanCreateContentException()); | 534 EXPECT_TRUE(origin->CanCreateContentException()); |
| 535 origin->CreateContentException( | 535 origin->CreateContentException( |
| 536 content_settings, CONTENT_SETTING_SESSION_ONLY); | 536 content_settings, CONTENT_SETTING_SESSION_ONLY); |
| 537 | 537 |
| 538 EXPECT_EQ(2, observer.counter); | 538 EXPECT_EQ(2, observer.counter); |
| 539 EXPECT_EQ(pattern, observer.last_pattern); | 539 EXPECT_EQ(pattern, observer.last_pattern); |
| 540 EXPECT_EQ(CONTENT_SETTING_SESSION_ONLY, | 540 EXPECT_EQ(CONTENT_SETTING_SESSION_ONLY, |
| 541 content_settings->GetContentSetting(host, CONTENT_SETTINGS_TYPE_COOKIES)); | 541 content_settings->GetContentSetting( |
| 542 host, CONTENT_SETTINGS_TYPE_COOKIES, "")); |
| 542 } | 543 } |
| 543 | 544 |
| 544 } // namespace | 545 } // namespace |
| OLD | NEW |