| 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/message_loop.h" |
| 5 #include "base/values.h" | 6 #include "base/values.h" |
| 6 #include "chrome/browser/content_settings/cookie_settings.h" | 7 #include "chrome/browser/content_settings/cookie_settings.h" |
| 7 #include "chrome/browser/extensions/extension_special_storage_policy.h" | 8 #include "chrome/browser/extensions/extension_special_storage_policy.h" |
| 8 #include "chrome/common/content_settings.h" | 9 #include "chrome/common/content_settings.h" |
| 9 #include "chrome/common/content_settings_types.h" | 10 #include "chrome/common/content_settings_types.h" |
| 10 #include "chrome/common/extensions/extension.h" | 11 #include "chrome/common/extensions/extension.h" |
| 11 #include "chrome/common/extensions/extension_constants.h" | 12 #include "chrome/common/extensions/extension_constants.h" |
| 12 #include "chrome/test/base/testing_profile.h" | 13 #include "chrome/test/base/testing_profile.h" |
| 13 #include "content/test/test_browser_thread.h" | 14 #include "content/test/test_browser_thread.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 CONTENT_SETTING_SESSION_ONLY); | 246 CONTENT_SETTING_SESSION_ONLY); |
| 246 | 247 |
| 247 EXPECT_TRUE(policy->HasSessionOnlyOrigins()); | 248 EXPECT_TRUE(policy->HasSessionOnlyOrigins()); |
| 248 | 249 |
| 249 // Clearing an origin-spesific rule. | 250 // Clearing an origin-spesific rule. |
| 250 cookie_settings->ResetCookieSetting(pattern, | 251 cookie_settings->ResetCookieSetting(pattern, |
| 251 ContentSettingsPattern::Wildcard()); | 252 ContentSettingsPattern::Wildcard()); |
| 252 | 253 |
| 253 EXPECT_FALSE(policy->HasSessionOnlyOrigins()); | 254 EXPECT_FALSE(policy->HasSessionOnlyOrigins()); |
| 254 } | 255 } |
| OLD | NEW |