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

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

Issue 2457923002: Remove stl_util's deletion function use and ScopedVector from chrome/browser/download/. (Closed)
Patch Set: sky 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"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "base/run_loop.h" 14 #include "base/run_loop.h"
15 #include "base/single_thread_task_runner.h" 15 #include "base/single_thread_task_runner.h"
16 #include "base/stl_util.h"
17 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
18 #include "base/threading/thread_task_runner_handle.h" 17 #include "base/threading/thread_task_runner_handle.h"
19 #include "base/value_conversions.h" 18 #include "base/value_conversions.h"
20 #include "build/build_config.h" 19 #include "build/build_config.h"
21 #include "chrome/browser/download/chrome_download_manager_delegate.h" 20 #include "chrome/browser/download/chrome_download_manager_delegate.h"
22 #include "chrome/browser/download/download_prefs.h" 21 #include "chrome/browser/download/download_prefs.h"
23 #include "chrome/browser/download/download_target_determiner.h" 22 #include "chrome/browser/download/download_target_determiner.h"
24 #include "chrome/browser/download/download_target_info.h" 23 #include "chrome/browser/download/download_target_info.h"
25 #include "chrome/browser/history/history_service_factory.h" 24 #include "chrome/browser/history/history_service_factory.h"
26 #include "chrome/common/pref_names.h" 25 #include "chrome/common/pref_names.h"
(...skipping 2138 matching lines...) Expand 10 before | Expand all | Expand 10 after
2165 EXPECT_CALL(mock_plugin_filter_, MockPluginAvailable(browser_plugin.path())) 2164 EXPECT_CALL(mock_plugin_filter_, MockPluginAvailable(browser_plugin.path()))
2166 .WillRepeatedly(Return(false)); 2165 .WillRepeatedly(Return(false));
2167 target_info = RunDownloadTargetDeterminer( 2166 target_info = RunDownloadTargetDeterminer(
2168 GetPathInDownloadDir(kInitialPath), item.get()); 2167 GetPathInDownloadDir(kInitialPath), item.get());
2169 EXPECT_FALSE(target_info->is_filetype_handled_safely); 2168 EXPECT_FALSE(target_info->is_filetype_handled_safely);
2170 } 2169 }
2171 2170
2172 #endif // defined(ENABLE_PLUGINS) 2171 #endif // defined(ENABLE_PLUGINS)
2173 2172
2174 } // namespace 2173 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/download/download_status_updater_unittest.cc ('k') | chrome/browser/download/download_ui_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698