Chromium Code Reviews| Index: chrome/browser/content_settings/tab_specific_content_settings_unittest.cc |
| diff --git a/chrome/browser/content_settings/tab_specific_content_settings_unittest.cc b/chrome/browser/content_settings/tab_specific_content_settings_unittest.cc |
| index d0e7553699e80136e7a276ef6ca88829a1643e51..b3d3d7f5ce94113015aad9f0e41496a502d382fa 100644 |
| --- a/chrome/browser/content_settings/tab_specific_content_settings_unittest.cc |
| +++ b/chrome/browser/content_settings/tab_specific_content_settings_unittest.cc |
| @@ -1,4 +1,4 @@ |
| -// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| @@ -78,6 +78,21 @@ TEST_F(TabSpecificContentSettingsTest, BlockedContent) { |
| EXPECT_FALSE(content_settings.IsContentBlocked(CONTENT_SETTINGS_TYPE_POPUPS)); |
| } |
| +TEST_F(TabSpecificContentSettingsTest, BlockedFileSystems) { |
| + TabSpecificContentSettings content_settings(contents()); |
| + net::CookieOptions options; |
|
jochen (gone - plz use gerrit)
2011/05/25 15:54:09
what do you need the options for?
Mike West
2011/05/25 16:55:16
Company?
I copied it down from `BlockedContent` I
|
| + |
| + // Access a file system. |
| + content_settings.OnFileSystemAccessed(GURL("http://google.com"), false); |
| + EXPECT_FALSE( |
| + content_settings.IsContentBlocked(CONTENT_SETTINGS_TYPE_COOKIES)); |
| + |
| + // Block access to a file system. |
| + content_settings.OnFileSystemAccessed(GURL("http://google.com"), true); |
| + EXPECT_TRUE( |
| + content_settings.IsContentBlocked(CONTENT_SETTINGS_TYPE_COOKIES)); |
| +} |
| + |
| TEST_F(TabSpecificContentSettingsTest, AllowedContent) { |
| TabSpecificContentSettings content_settings(contents()); |
| net::CookieOptions options; |