| 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/browsing_data_remover.h" | 5 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
| 13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/guid.h" | 14 #include "base/guid.h" |
| 15 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
| 16 #include "base/platform_file.h" | |
| 17 #include "base/prefs/testing_pref_service.h" | 16 #include "base/prefs/testing_pref_service.h" |
| 18 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 19 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 18 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
| 20 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 19 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
| 21 #include "chrome/browser/browsing_data/browsing_data_remover_test_util.h" | 20 #include "chrome/browser/browsing_data/browsing_data_remover_test_util.h" |
| 22 #include "chrome/browser/chrome_notification_types.h" | 21 #include "chrome/browser/chrome_notification_types.h" |
| 23 #if defined(OS_CHROMEOS) | 22 #if defined(OS_CHROMEOS) |
| 24 #include "chrome/browser/chromeos/login/mock_user_manager.h" | 23 #include "chrome/browser/chromeos/login/mock_user_manager.h" |
| 25 #include "chrome/browser/chromeos/login/user_manager.h" | 24 #include "chrome/browser/chromeos/login/user_manager.h" |
| 26 #include "chrome/browser/chromeos/settings/cros_settings.h" | 25 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| (...skipping 1661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1688 } | 1687 } |
| 1689 | 1688 |
| 1690 TEST_F(BrowsingDataRemoverTest, DomainReliability_Contexts_ProtectedOrigins) { | 1689 TEST_F(BrowsingDataRemoverTest, DomainReliability_Contexts_ProtectedOrigins) { |
| 1691 DomainReliabilityMonitor* monitor = UseProfileWithDomainReliabilityMonitor(); | 1690 DomainReliabilityMonitor* monitor = UseProfileWithDomainReliabilityMonitor(); |
| 1692 BlockUntilBrowsingDataRemoved( | 1691 BlockUntilBrowsingDataRemoved( |
| 1693 BrowsingDataRemover::EVERYTHING, | 1692 BrowsingDataRemover::EVERYTHING, |
| 1694 BrowsingDataRemover::REMOVE_COOKIES, true); | 1693 BrowsingDataRemover::REMOVE_COOKIES, true); |
| 1695 EXPECT_TRUE(monitor->was_cleared_for_testing()); | 1694 EXPECT_TRUE(monitor->was_cleared_for_testing()); |
| 1696 EXPECT_EQ(CLEAR_CONTEXTS, monitor->cleared_mode_for_testing()); | 1695 EXPECT_EQ(CLEAR_CONTEXTS, monitor->cleared_mode_for_testing()); |
| 1697 } | 1696 } |
| OLD | NEW |