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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/bind_helpers.h" 15 #include "base/bind_helpers.h"
16 #include "base/files/file_path.h" 16 #include "base/files/file_path.h"
17 #include "base/files/file_util.h" 17 #include "base/files/file_util.h"
18 #include "base/guid.h" 18 #include "base/guid.h"
19 #include "base/macros.h" 19 #include "base/macros.h"
20 #include "base/memory/scoped_ptr.h" 20 #include "base/memory/scoped_ptr.h"
21 #include "base/message_loop/message_loop.h" 21 #include "base/message_loop/message_loop.h"
22 #include "base/prefs/testing_pref_service.h"
23 #include "base/run_loop.h" 22 #include "base/run_loop.h"
24 #include "base/strings/utf_string_conversions.h" 23 #include "base/strings/utf_string_conversions.h"
25 #include "base/task/cancelable_task_tracker.h" 24 #include "base/task/cancelable_task_tracker.h"
26 #include "build/build_config.h" 25 #include "build/build_config.h"
27 #include "chrome/browser/autofill/personal_data_manager_factory.h" 26 #include "chrome/browser/autofill/personal_data_manager_factory.h"
28 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 27 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
29 #include "chrome/browser/browsing_data/browsing_data_helper.h" 28 #include "chrome/browser/browsing_data/browsing_data_helper.h"
30 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h" 29 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h"
31 #include "chrome/browser/browsing_data/browsing_data_remover_test_util.h" 30 #include "chrome/browser/browsing_data/browsing_data_remover_test_util.h"
32 #include "chrome/browser/domain_reliability/service_factory.h" 31 #include "chrome/browser/domain_reliability/service_factory.h"
(...skipping 14 matching lines...) Expand all
47 #include "components/bookmarks/test/bookmark_test_helpers.h" 46 #include "components/bookmarks/test/bookmark_test_helpers.h"
48 #include "components/domain_reliability/clear_mode.h" 47 #include "components/domain_reliability/clear_mode.h"
49 #include "components/domain_reliability/monitor.h" 48 #include "components/domain_reliability/monitor.h"
50 #include "components/domain_reliability/service.h" 49 #include "components/domain_reliability/service.h"
51 #include "components/favicon/core/favicon_service.h" 50 #include "components/favicon/core/favicon_service.h"
52 #include "components/history/core/browser/history_service.h" 51 #include "components/history/core/browser/history_service.h"
53 #include "components/omnibox/browser/omnibox_pref_names.h" 52 #include "components/omnibox/browser/omnibox_pref_names.h"
54 #include "components/password_manager/core/browser/mock_password_store.h" 53 #include "components/password_manager/core/browser/mock_password_store.h"
55 #include "components/password_manager/core/browser/password_manager_test_utils.h " 54 #include "components/password_manager/core/browser/password_manager_test_utils.h "
56 #include "components/password_manager/core/browser/password_store_consumer.h" 55 #include "components/password_manager/core/browser/password_store_consumer.h"
56 #include "components/prefs/testing_pref_service.h"
57 #include "content/public/browser/browser_context.h" 57 #include "content/public/browser/browser_context.h"
58 #include "content/public/browser/cookie_store_factory.h" 58 #include "content/public/browser/cookie_store_factory.h"
59 #include "content/public/browser/dom_storage_context.h" 59 #include "content/public/browser/dom_storage_context.h"
60 #include "content/public/browser/local_storage_usage_info.h" 60 #include "content/public/browser/local_storage_usage_info.h"
61 #include "content/public/browser/storage_partition.h" 61 #include "content/public/browser/storage_partition.h"
62 #include "content/public/test/mock_download_manager.h" 62 #include "content/public/test/mock_download_manager.h"
63 #include "content/public/test/test_browser_thread.h" 63 #include "content/public/test/test_browser_thread.h"
64 #include "content/public/test/test_browser_thread_bundle.h" 64 #include "content/public/test/test_browser_thread_bundle.h"
65 #include "content/public/test/test_utils.h" 65 #include "content/public/test/test_utils.h"
66 #include "net/cookies/cookie_store.h" 66 #include "net/cookies/cookie_store.h"
(...skipping 2098 matching lines...) Expand 10 before | Expand all | Expand 10 after
2165 static_cast<password_manager::MockPasswordStore*>( 2165 static_cast<password_manager::MockPasswordStore*>(
2166 PasswordStoreFactory::GetInstance() 2166 PasswordStoreFactory::GetInstance()
2167 ->GetForProfile(GetProfile(), ServiceAccessType::EXPLICIT_ACCESS) 2167 ->GetForProfile(GetProfile(), ServiceAccessType::EXPLICIT_ACCESS)
2168 .get()); 2168 .get());
2169 EXPECT_CALL(*store, RemoveStatisticsCreatedBetweenImpl(base::Time(), 2169 EXPECT_CALL(*store, RemoveStatisticsCreatedBetweenImpl(base::Time(),
2170 base::Time::Max())); 2170 base::Time::Max()));
2171 BlockUntilBrowsingDataRemoved( 2171 BlockUntilBrowsingDataRemoved(
2172 BrowsingDataRemover::EVERYTHING, 2172 BrowsingDataRemover::EVERYTHING,
2173 BrowsingDataRemover::REMOVE_HISTORY, false); 2173 BrowsingDataRemover::REMOVE_HISTORY, false);
2174 } 2174 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698