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 <memory> | 5 #include <memory> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/json/json_string_value_serializer.h" | 8 #include "base/json/json_string_value_serializer.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/strings/pattern.h" | 10 #include "base/strings/pattern.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 14 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
15 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 15 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
16 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h" | 16 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h" |
17 #include "chrome/browser/extensions/api/browsing_data/browsing_data_api.h" | 17 #include "chrome/browser/extensions/api/browsing_data/browsing_data_api.h" |
18 #include "chrome/browser/extensions/extension_function_test_utils.h" | 18 #include "chrome/browser/extensions/extension_function_test_utils.h" |
19 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
20 #include "chrome/browser/ui/browser.h" | 20 #include "chrome/browser/ui/browser.h" |
21 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
22 #include "chrome/test/base/in_process_browser_test.h" | 22 #include "chrome/test/base/in_process_browser_test.h" |
23 #include "components/browsing_data/pref_names.h" | 23 #include "components/browsing_data/core/pref_names.h" |
24 #include "components/prefs/pref_service.h" | 24 #include "components/prefs/pref_service.h" |
25 | 25 |
26 using extension_function_test_utils::RunFunctionAndReturnError; | 26 using extension_function_test_utils::RunFunctionAndReturnError; |
27 using extension_function_test_utils::RunFunctionAndReturnSingleResult; | 27 using extension_function_test_utils::RunFunctionAndReturnSingleResult; |
28 | 28 |
29 namespace { | 29 namespace { |
30 | 30 |
31 enum OriginTypeMask { | 31 enum OriginTypeMask { |
32 UNPROTECTED_WEB = BrowsingDataHelper::UNPROTECTED_WEB, | 32 UNPROTECTED_WEB = BrowsingDataHelper::UNPROTECTED_WEB, |
33 PROTECTED_WEB = BrowsingDataHelper::PROTECTED_WEB, | 33 PROTECTED_WEB = BrowsingDataHelper::PROTECTED_WEB, |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 | 536 |
537 SetPrefsAndVerifySettings( | 537 SetPrefsAndVerifySettings( |
538 BrowsingDataRemover::REMOVE_COOKIES | | 538 BrowsingDataRemover::REMOVE_COOKIES | |
539 BrowsingDataRemover::REMOVE_HISTORY | | 539 BrowsingDataRemover::REMOVE_HISTORY | |
540 BrowsingDataRemover::REMOVE_DOWNLOADS, | 540 BrowsingDataRemover::REMOVE_DOWNLOADS, |
541 UNPROTECTED_WEB, | 541 UNPROTECTED_WEB, |
542 site_data_no_plugins | | 542 site_data_no_plugins | |
543 BrowsingDataRemover::REMOVE_HISTORY | | 543 BrowsingDataRemover::REMOVE_HISTORY | |
544 BrowsingDataRemover::REMOVE_DOWNLOADS); | 544 BrowsingDataRemover::REMOVE_DOWNLOADS); |
545 } | 545 } |
OLD | NEW |