Index: chrome/browser/tab_contents/tab_specific_content_settings_unittest.cc |
diff --git a/chrome/browser/tab_contents/tab_specific_content_settings_unittest.cc b/chrome/browser/tab_contents/tab_specific_content_settings_unittest.cc |
index d23d877a62eafa2c28711e53e56690d9c50eef50..61fdcfe8f30da5c0a30fc555c01f1b5102c9eaaf 100644 |
--- a/chrome/browser/tab_contents/tab_specific_content_settings_unittest.cc |
+++ b/chrome/browser/tab_contents/tab_specific_content_settings_unittest.cc |
@@ -5,7 +5,7 @@ |
#include "chrome/browser/tab_contents/tab_specific_content_settings.h" |
#include "chrome/test/testing_profile.h" |
-#include "net/base/cookie_options.h" |
+#include "net/base/cookie_monster.h" |
#include "testing/gtest/include/gtest/gtest.h" |
namespace { |
@@ -137,3 +137,20 @@ TEST(TabSpecificContentSettingsTest, AllowedContent) { |
ASSERT_TRUE( |
content_settings.IsContentBlocked(CONTENT_SETTINGS_TYPE_COOKIES)); |
} |
+ |
+TEST(TabSpecificContentSettingsTest, EmptyCookieList) { |
+ TestContentSettingsDelegate test_delegate; |
+ TestingProfile profile; |
+ TabSpecificContentSettings content_settings(&test_delegate, &profile); |
+ |
+ ASSERT_FALSE( |
+ content_settings.IsContentAccessed(CONTENT_SETTINGS_TYPE_COOKIES)); |
+ ASSERT_FALSE( |
+ content_settings.IsContentBlocked(CONTENT_SETTINGS_TYPE_COOKIES)); |
+ content_settings.OnCookiesRead( |
+ GURL("http://google.com"), net::CookieList(), true); |
+ ASSERT_FALSE( |
+ content_settings.IsContentAccessed(CONTENT_SETTINGS_TYPE_COOKIES)); |
+ ASSERT_FALSE( |
+ content_settings.IsContentBlocked(CONTENT_SETTINGS_TYPE_COOKIES)); |
+} |