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

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

Issue 16703005: Use a direct include of strings headers in chrome/browser/d*/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
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 <sstream> 5 #include <sstream>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/path_service.h" 13 #include "base/path_service.h"
14 #include "base/prefs/pref_service.h" 14 #include "base/prefs/pref_service.h"
15 #include "base/stl_util.h" 15 #include "base/stl_util.h"
16 #include "base/stringprintf.h"
17 #include "base/strings/string_split.h" 16 #include "base/strings/string_split.h"
17 #include "base/strings/stringprintf.h"
18 #include "base/strings/utf_string_conversions.h" 18 #include "base/strings/utf_string_conversions.h"
19 #include "base/sys_info.h" 19 #include "base/sys_info.h"
20 #include "base/test/test_file_util.h" 20 #include "base/test/test_file_util.h"
21 #include "chrome/app/chrome_command_ids.h" 21 #include "chrome/app/chrome_command_ids.h"
22 #include "chrome/browser/browser_process.h" 22 #include "chrome/browser/browser_process.h"
23 #include "chrome/browser/common/cancelable_request.h" 23 #include "chrome/browser/common/cancelable_request.h"
24 #include "chrome/browser/download/chrome_download_manager_delegate.h" 24 #include "chrome/browser/download/chrome_download_manager_delegate.h"
25 #include "chrome/browser/download/download_crx_util.h" 25 #include "chrome/browser/download/download_crx_util.h"
26 #include "chrome/browser/download/download_history.h" 26 #include "chrome/browser/download/download_history.h"
27 #include "chrome/browser/download/download_item_model.h" 27 #include "chrome/browser/download/download_item_model.h"
(...skipping 2936 matching lines...) Expand 10 before | Expand all | Expand 10 after
2964 EXPECT_EQ(dir.value(), off_prefs->SaveFilePath().value()); 2964 EXPECT_EQ(dir.value(), off_prefs->SaveFilePath().value());
2965 2965
2966 off_prefs->SetSaveFilePath(dir.AppendASCII("off")); 2966 off_prefs->SetSaveFilePath(dir.AppendASCII("off"));
2967 EXPECT_EQ(dir.value(), on_prefs->SaveFilePath().value()); 2967 EXPECT_EQ(dir.value(), on_prefs->SaveFilePath().value());
2968 EXPECT_EQ(dir.AppendASCII("off").value(), off_prefs->SaveFilePath().value()); 2968 EXPECT_EQ(dir.AppendASCII("off").value(), off_prefs->SaveFilePath().value());
2969 2969
2970 on_prefs->SetSaveFilePath(dir.AppendASCII("on")); 2970 on_prefs->SetSaveFilePath(dir.AppendASCII("on"));
2971 EXPECT_EQ(dir.AppendASCII("on").value(), on_prefs->SaveFilePath().value()); 2971 EXPECT_EQ(dir.AppendASCII("on").value(), on_prefs->SaveFilePath().value());
2972 EXPECT_EQ(dir.AppendASCII("off").value(), off_prefs->SaveFilePath().value()); 2972 EXPECT_EQ(dir.AppendASCII("off").value(), off_prefs->SaveFilePath().value());
2973 } 2973 }
OLDNEW
« no previous file with comments | « chrome/browser/download/chrome_download_manager_delegate.cc ('k') | chrome/browser/download/download_extensions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698