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

Side by Side Diff: chrome/browser/download/download_target_determiner_unittest.cc

Issue 2459823002: [Sync] Rename syncable_prefs to sync_preferences. (Closed)
Patch Set: Created 4 years, 1 month 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 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include "base/at_exit.h" 8 #include "base/at_exit.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/download/download_target_determiner.h" 23 #include "chrome/browser/download/download_target_determiner.h"
24 #include "chrome/browser/download/download_target_info.h" 24 #include "chrome/browser/download/download_target_info.h"
25 #include "chrome/browser/history/history_service_factory.h" 25 #include "chrome/browser/history/history_service_factory.h"
26 #include "chrome/common/pref_names.h" 26 #include "chrome/common/pref_names.h"
27 #include "chrome/common/safe_browsing/file_type_policies.h" 27 #include "chrome/common/safe_browsing/file_type_policies.h"
28 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 28 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
29 #include "chrome/test/base/testing_profile.h" 29 #include "chrome/test/base/testing_profile.h"
30 #include "components/history/core/browser/history_service.h" 30 #include "components/history/core/browser/history_service.h"
31 #include "components/history/core/browser/history_types.h" 31 #include "components/history/core/browser/history_types.h"
32 #include "components/prefs/pref_service.h" 32 #include "components/prefs/pref_service.h"
33 #include "components/syncable_prefs/testing_pref_service_syncable.h" 33 #include "components/sync_preferences/testing_pref_service_syncable.h"
34 #include "content/public/browser/download_interrupt_reasons.h" 34 #include "content/public/browser/download_interrupt_reasons.h"
35 #include "content/public/browser/render_process_host.h" 35 #include "content/public/browser/render_process_host.h"
36 #include "content/public/browser/web_contents.h" 36 #include "content/public/browser/web_contents.h"
37 #include "content/public/browser/web_contents_delegate.h" 37 #include "content/public/browser/web_contents_delegate.h"
38 #include "content/public/test/mock_download_item.h" 38 #include "content/public/test/mock_download_item.h"
39 #include "content/public/test/test_renderer_host.h" 39 #include "content/public/test/test_renderer_host.h"
40 #include "content/public/test/web_contents_tester.h" 40 #include "content/public/test/web_contents_tester.h"
41 #include "net/base/mime_util.h" 41 #include "net/base/mime_util.h"
42 #include "testing/gmock/include/gmock/gmock.h" 42 #include "testing/gmock/include/gmock/gmock.h"
43 #include "testing/gtest/include/gtest/gtest.h" 43 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 2121 matching lines...) Expand 10 before | Expand all | Expand 10 after
2165 EXPECT_CALL(mock_plugin_filter_, MockPluginAvailable(browser_plugin.path())) 2165 EXPECT_CALL(mock_plugin_filter_, MockPluginAvailable(browser_plugin.path()))
2166 .WillRepeatedly(Return(false)); 2166 .WillRepeatedly(Return(false));
2167 target_info = RunDownloadTargetDeterminer( 2167 target_info = RunDownloadTargetDeterminer(
2168 GetPathInDownloadDir(kInitialPath), item.get()); 2168 GetPathInDownloadDir(kInitialPath), item.get());
2169 EXPECT_FALSE(target_info->is_filetype_handled_safely); 2169 EXPECT_FALSE(target_info->is_filetype_handled_safely);
2170 } 2170 }
2171 2171
2172 #endif // defined(ENABLE_PLUGINS) 2172 #endif // defined(ENABLE_PLUGINS)
2173 2173
2174 } // namespace 2174 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/download/chrome_download_manager_delegate_unittest.cc ('k') | chrome/browser/extensions/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698