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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_remover_browsertest.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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/prefs/pref_service.h"
10 #include "chrome/browser/browsing_data/browsing_data_helper.h" 9 #include "chrome/browser/browsing_data/browsing_data_helper.h"
11 #include "chrome/browser/browsing_data/browsing_data_remover.h" 10 #include "chrome/browser/browsing_data/browsing_data_remover.h"
12 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h" 11 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h"
13 #include "chrome/browser/browsing_data/browsing_data_remover_test_util.h" 12 #include "chrome/browser/browsing_data/browsing_data_remover_test_util.h"
14 #include "chrome/browser/chrome_notification_types.h" 13 #include "chrome/browser/chrome_notification_types.h"
15 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/ui/browser.h" 15 #include "chrome/browser/ui/browser.h"
17 #include "chrome/browser/ui/tabs/tab_strip_model.h" 16 #include "chrome/browser/ui/tabs/tab_strip_model.h"
18 #include "chrome/common/pref_names.h" 17 #include "chrome/common/pref_names.h"
19 #include "chrome/test/base/in_process_browser_test.h" 18 #include "chrome/test/base/in_process_browser_test.h"
20 #include "chrome/test/base/ui_test_utils.h" 19 #include "chrome/test/base/ui_test_utils.h"
20 #include "components/prefs/pref_service.h"
21 #include "content/public/browser/browser_context.h" 21 #include "content/public/browser/browser_context.h"
22 #include "content/public/browser/browser_thread.h" 22 #include "content/public/browser/browser_thread.h"
23 #include "content/public/browser/download_manager.h" 23 #include "content/public/browser/download_manager.h"
24 #include "content/public/browser/web_contents.h" 24 #include "content/public/browser/web_contents.h"
25 #include "content/public/common/content_paths.h" 25 #include "content/public/common/content_paths.h"
26 #include "content/public/test/browser_test_utils.h" 26 #include "content/public/test/browser_test_utils.h"
27 #include "content/public/test/download_test_observer.h" 27 #include "content/public/test/download_test_observer.h"
28 #include "net/test/url_request/url_request_mock_http_job.h" 28 #include "net/test/url_request/url_request_mock_http_job.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 30
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 ui_test_utils::NavigateToURL(browser(), url); 133 ui_test_utils::NavigateToURL(browser(), url);
134 RunScriptAndCheckResult("createTable()", "done"); 134 RunScriptAndCheckResult("createTable()", "done");
135 RunScriptAndCheckResult("insertRecord('text2')", "done"); 135 RunScriptAndCheckResult("insertRecord('text2')", "done");
136 RunScriptAndCheckResult("getRecords()", "text2"); 136 RunScriptAndCheckResult("getRecords()", "text2");
137 } 137 }
138 138
139 // Profile::ClearNetworkingHistorySince should be exercised here too see whether 139 // Profile::ClearNetworkingHistorySince should be exercised here too see whether
140 // the call gets delegated through ProfileIO[Impl]Data properly, which is hard 140 // the call gets delegated through ProfileIO[Impl]Data properly, which is hard
141 // to write unit-tests for. Currently this is done by both of the above tests. 141 // to write unit-tests for. Currently this is done by both of the above tests.
142 // Add standalone test if this changes. 142 // Add standalone test if this changes.
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_remover.cc ('k') | chrome/browser/browsing_data/browsing_data_remover_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698