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/content_settings/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" |
11 #include "chrome/browser/mock_browsing_data_database_helper.h" | 11 #include "chrome/browser/mock_browsing_data_database_helper.h" |
12 #include "chrome/browser/mock_browsing_data_indexed_db_helper.h" | 12 #include "chrome/browser/mock_browsing_data_indexed_db_helper.h" |
13 #include "chrome/browser/mock_browsing_data_local_storage_helper.h" | 13 #include "chrome/browser/mock_browsing_data_local_storage_helper.h" |
14 #include "chrome/common/net/url_request_context_getter.h" | 14 #include "chrome/common/net/url_request_context_getter.h" |
15 #include "chrome/common/notification_details.h" | 15 #include "chrome/common/notification_details.h" |
16 #include "chrome/common/notification_service.h" | 16 #include "chrome/common/notification_service.h" |
17 #include "chrome/common/notification_type.h" | 17 #include "chrome/common/notification_type.h" |
18 #include "chrome/test/testing_profile.h" | 18 #include "chrome/test/testing_profile.h" |
19 #include "net/url_request/url_request_context.h" | 19 #include "net/url_request/url_request_context.h" |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 content_settings, CONTENT_SETTING_SESSION_ONLY); | 696 content_settings, CONTENT_SETTING_SESSION_ONLY); |
697 | 697 |
698 EXPECT_EQ(2, observer.counter); | 698 EXPECT_EQ(2, observer.counter); |
699 EXPECT_EQ(pattern, observer.last_pattern); | 699 EXPECT_EQ(pattern, observer.last_pattern); |
700 EXPECT_EQ(CONTENT_SETTING_SESSION_ONLY, | 700 EXPECT_EQ(CONTENT_SETTING_SESSION_ONLY, |
701 content_settings->GetContentSetting( | 701 content_settings->GetContentSetting( |
702 host, CONTENT_SETTINGS_TYPE_COOKIES, "")); | 702 host, CONTENT_SETTINGS_TYPE_COOKIES, "")); |
703 } | 703 } |
704 | 704 |
705 } // namespace | 705 } // namespace |
OLD | NEW |