Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1108)

Side by Side Diff: chrome/browser/browsing_data/browsing_data_remover_unittest.cc

Issue 2127403002: Make browsing_data component a layered component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed output_name from components/browsing_data/content/BUILD.gn Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/browsing_data_remover.h" 5 #include "chrome/browser/browsing_data/browsing_data_remover.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "chrome/test/base/testing_browser_process.h" 45 #include "chrome/test/base/testing_browser_process.h"
46 #include "chrome/test/base/testing_profile.h" 46 #include "chrome/test/base/testing_profile.h"
47 #include "components/autofill/core/browser/autofill_profile.h" 47 #include "components/autofill/core/browser/autofill_profile.h"
48 #include "components/autofill/core/browser/autofill_test_utils.h" 48 #include "components/autofill/core/browser/autofill_test_utils.h"
49 #include "components/autofill/core/browser/credit_card.h" 49 #include "components/autofill/core/browser/credit_card.h"
50 #include "components/autofill/core/browser/personal_data_manager.h" 50 #include "components/autofill/core/browser/personal_data_manager.h"
51 #include "components/autofill/core/browser/personal_data_manager_observer.h" 51 #include "components/autofill/core/browser/personal_data_manager_observer.h"
52 #include "components/autofill/core/common/autofill_constants.h" 52 #include "components/autofill/core/common/autofill_constants.h"
53 #include "components/bookmarks/browser/bookmark_model.h" 53 #include "components/bookmarks/browser/bookmark_model.h"
54 #include "components/bookmarks/test/bookmark_test_helpers.h" 54 #include "components/bookmarks/test/bookmark_test_helpers.h"
55 #include "components/browsing_data/browsing_data_utils.h" 55 #include "components/browsing_data/core/browsing_data_utils.h"
56 #include "components/content_settings/core/browser/host_content_settings_map.h" 56 #include "components/content_settings/core/browser/host_content_settings_map.h"
57 #include "components/content_settings/core/common/content_settings.h" 57 #include "components/content_settings/core/common/content_settings.h"
58 #include "components/content_settings/core/common/content_settings_pattern.h" 58 #include "components/content_settings/core/common/content_settings_pattern.h"
59 #include "components/domain_reliability/clear_mode.h" 59 #include "components/domain_reliability/clear_mode.h"
60 #include "components/domain_reliability/monitor.h" 60 #include "components/domain_reliability/monitor.h"
61 #include "components/domain_reliability/service.h" 61 #include "components/domain_reliability/service.h"
62 #include "components/favicon/core/favicon_service.h" 62 #include "components/favicon/core/favicon_service.h"
63 #include "components/history/core/browser/history_service.h" 63 #include "components/history/core/browser/history_service.h"
64 #include "components/omnibox/browser/omnibox_pref_names.h" 64 #include "components/omnibox/browser/omnibox_pref_names.h"
65 #include "components/os_crypt/os_crypt_mocker.h" 65 #include "components/os_crypt/os_crypt_mocker.h"
(...skipping 2470 matching lines...) Expand 10 before | Expand all | Expand 10 after
2536 BrowsingDataRemover::ClearSettingsForOneTypeWithPredicate( 2536 BrowsingDataRemover::ClearSettingsForOneTypeWithPredicate(
2537 host_content_settings_map, CONTENT_SETTINGS_TYPE_SITE_ENGAGEMENT, 2537 host_content_settings_map, CONTENT_SETTINGS_TYPE_SITE_ENGAGEMENT,
2538 base::Bind(&MatchPrimaryPattern, http_pattern)); 2538 base::Bind(&MatchPrimaryPattern, http_pattern));
2539 // Verify we only have one, and it's url1. 2539 // Verify we only have one, and it's url1.
2540 host_content_settings_map->GetSettingsForOneType( 2540 host_content_settings_map->GetSettingsForOneType(
2541 CONTENT_SETTINGS_TYPE_SITE_ENGAGEMENT, std::string(), &host_settings); 2541 CONTENT_SETTINGS_TYPE_SITE_ENGAGEMENT, std::string(), &host_settings);
2542 EXPECT_EQ(1u, host_settings.size()); 2542 EXPECT_EQ(1u, host_settings.size());
2543 EXPECT_EQ(ContentSettingsPattern::FromURLNoWildcard(url1), 2543 EXPECT_EQ(ContentSettingsPattern::FromURLNoWildcard(url1),
2544 host_settings[0].primary_pattern); 2544 host_settings[0].primary_pattern);
2545 } 2545 }
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_remover_browsertest.cc ('k') | chrome/browser/browsing_data/cache_counter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698