| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browsing_data/cookies_tree_model.h" | 5 #include "chrome/browser/browsing_data/cookies_tree_model.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 new MockBrowsingDataCookieHelper(profile_->GetRequestContext()); | 51 new MockBrowsingDataCookieHelper(profile_->GetRequestContext()); |
| 52 mock_browsing_data_database_helper_ = | 52 mock_browsing_data_database_helper_ = |
| 53 new MockBrowsingDataDatabaseHelper(profile_.get()); | 53 new MockBrowsingDataDatabaseHelper(profile_.get()); |
| 54 mock_browsing_data_local_storage_helper_ = | 54 mock_browsing_data_local_storage_helper_ = |
| 55 new MockBrowsingDataLocalStorageHelper(profile_.get()); | 55 new MockBrowsingDataLocalStorageHelper(profile_.get()); |
| 56 mock_browsing_data_session_storage_helper_ = | 56 mock_browsing_data_session_storage_helper_ = |
| 57 new MockBrowsingDataLocalStorageHelper(profile_.get()); | 57 new MockBrowsingDataLocalStorageHelper(profile_.get()); |
| 58 mock_browsing_data_appcache_helper_ = | 58 mock_browsing_data_appcache_helper_ = |
| 59 new MockBrowsingDataAppCacheHelper(profile_.get()); | 59 new MockBrowsingDataAppCacheHelper(profile_.get()); |
| 60 mock_browsing_data_indexed_db_helper_ = | 60 mock_browsing_data_indexed_db_helper_ = |
| 61 new MockBrowsingDataIndexedDBHelper(); | 61 new MockBrowsingDataIndexedDBHelper(profile_.get()); |
| 62 mock_browsing_data_file_system_helper_ = | 62 mock_browsing_data_file_system_helper_ = |
| 63 new MockBrowsingDataFileSystemHelper(profile_.get()); | 63 new MockBrowsingDataFileSystemHelper(profile_.get()); |
| 64 mock_browsing_data_quota_helper_ = | 64 mock_browsing_data_quota_helper_ = |
| 65 new MockBrowsingDataQuotaHelper(profile_.get()); | 65 new MockBrowsingDataQuotaHelper(profile_.get()); |
| 66 mock_browsing_data_server_bound_cert_helper_ = | 66 mock_browsing_data_server_bound_cert_helper_ = |
| 67 new MockBrowsingDataServerBoundCertHelper(); | 67 new MockBrowsingDataServerBoundCertHelper(); |
| 68 mock_browsing_data_flash_lso_helper_ = | 68 mock_browsing_data_flash_lso_helper_ = |
| 69 new MockBrowsingDataFlashLSOHelper(profile_.get()); | 69 new MockBrowsingDataFlashLSOHelper(profile_.get()); |
| 70 | 70 |
| 71 scoped_refptr<CookieSettings> cookie_settings = | 71 scoped_refptr<CookieSettings> cookie_settings = |
| (...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 EXPECT_EQ("A,C", GetDisplayedCookies(&cookies_model)); | 1185 EXPECT_EQ("A,C", GetDisplayedCookies(&cookies_model)); |
| 1186 | 1186 |
| 1187 cookies_model.UpdateSearchResults(base::string16(base::ASCIIToUTF16("foo3"))); | 1187 cookies_model.UpdateSearchResults(base::string16(base::ASCIIToUTF16("foo3"))); |
| 1188 EXPECT_EQ("D", GetDisplayedCookies(&cookies_model)); | 1188 EXPECT_EQ("D", GetDisplayedCookies(&cookies_model)); |
| 1189 | 1189 |
| 1190 cookies_model.UpdateSearchResults(base::string16()); | 1190 cookies_model.UpdateSearchResults(base::string16()); |
| 1191 EXPECT_EQ("A,B,C,D", GetDisplayedCookies(&cookies_model)); | 1191 EXPECT_EQ("A,B,C,D", GetDisplayedCookies(&cookies_model)); |
| 1192 } | 1192 } |
| 1193 | 1193 |
| 1194 } // namespace | 1194 } // namespace |
| OLD | NEW |