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

Side by Side Diff: chrome/browser/extensions/api/browsing_data/browsing_data_test.cc

Issue 2578723002: Reduce BrowsingDataRemover's dependencies on Chrome (Closed)
Patch Set: A new callsite appeared through rebase - fixed the compilation error. Created 3 years, 11 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 <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/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/browsing_data/browsing_data_helper.h" 13 #include "chrome/browser/browsing_data/browsing_data_helper.h"
14 #include "chrome/browser/browsing_data/browsing_data_remover.h" 14 #include "chrome/browser/browsing_data/browsing_data_remover.h"
15 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h" 15 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h"
16 #include "chrome/browser/extensions/api/browsing_data/browsing_data_api.h" 16 #include "chrome/browser/extensions/api/browsing_data/browsing_data_api.h"
17 #include "chrome/browser/extensions/extension_function_test_utils.h" 17 #include "chrome/browser/extensions/extension_function_test_utils.h"
18 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/ui/browser.h" 19 #include "chrome/browser/ui/browser.h"
20 #include "chrome/common/pref_names.h" 20 #include "chrome/common/pref_names.h"
21 #include "chrome/test/base/in_process_browser_test.h" 21 #include "chrome/test/base/in_process_browser_test.h"
22 #include "components/browsing_data/core/browsing_data_utils.h"
22 #include "components/browsing_data/core/pref_names.h" 23 #include "components/browsing_data/core/pref_names.h"
23 #include "components/prefs/pref_service.h" 24 #include "components/prefs/pref_service.h"
24 25
25 using extension_function_test_utils::RunFunctionAndReturnError; 26 using extension_function_test_utils::RunFunctionAndReturnError;
26 using extension_function_test_utils::RunFunctionAndReturnSingleResult; 27 using extension_function_test_utils::RunFunctionAndReturnSingleResult;
27 28
28 namespace { 29 namespace {
29 30
30 enum OriginTypeMask { 31 enum OriginTypeMask {
31 UNPROTECTED_WEB = BrowsingDataHelper::UNPROTECTED_WEB, 32 UNPROTECTED_WEB = BrowsingDataHelper::UNPROTECTED_WEB,
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 514
514 SetPrefsAndVerifySettings( 515 SetPrefsAndVerifySettings(
515 BrowsingDataRemover::REMOVE_COOKIES | 516 BrowsingDataRemover::REMOVE_COOKIES |
516 BrowsingDataRemover::REMOVE_HISTORY | 517 BrowsingDataRemover::REMOVE_HISTORY |
517 BrowsingDataRemover::REMOVE_DOWNLOADS, 518 BrowsingDataRemover::REMOVE_DOWNLOADS,
518 UNPROTECTED_WEB, 519 UNPROTECTED_WEB,
519 site_data_no_plugins_durable_usage | 520 site_data_no_plugins_durable_usage |
520 BrowsingDataRemover::REMOVE_HISTORY | 521 BrowsingDataRemover::REMOVE_HISTORY |
521 BrowsingDataRemover::REMOVE_DOWNLOADS); 522 BrowsingDataRemover::REMOVE_DOWNLOADS);
522 } 523 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/browsing_data/browsing_data_api.cc ('k') | chrome/browser/net/errorpage_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698