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

Unified Diff: content/browser/download/base_file_win_unittest.cc

Issue 2381293002: misc files: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/download/quarantine_win_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/base_file_win_unittest.cc
diff --git a/content/browser/download/base_file_win_unittest.cc b/content/browser/download/base_file_win_unittest.cc
index 888c2a5bdf84d314a2ae728adc433a5ae6cbf6a4..87c304324a32af4cff280bbd4b613ccb53686a9b 100644
--- a/content/browser/download/base_file_win_unittest.cc
+++ b/content/browser/download/base_file_win_unittest.cc
@@ -49,9 +49,9 @@ TEST(BaseFileWin, AnnotateWithSourceInformation) {
base::ScopedTempDir target_directory;
ASSERT_TRUE(target_directory.CreateUniqueTempDir());
- ASSERT_EQ(6,
- base::WriteFile(target_directory.path().AppendASCII("exists.txt"),
- "Exists", 6));
+ ASSERT_EQ(
+ 6, base::WriteFile(target_directory.GetPath().AppendASCII("exists.txt"),
+ "Exists", 6));
for (const auto& test_case : kTestCases) {
GURL url(test_case.url);
@@ -61,8 +61,8 @@ TEST(BaseFileWin, AnnotateWithSourceInformation) {
if (url.SchemeIsFile()) {
base::FilePath relative_path =
base::FilePath().AppendASCII(url.path().substr(1));
- url =
- net::FilePathToFileURL(target_directory.path().Append(relative_path));
+ url = net::FilePathToFileURL(
+ target_directory.GetPath().Append(relative_path));
}
SCOPED_TRACE(::testing::Message() << "Source URL: " << url.spec()
@@ -70,13 +70,13 @@ TEST(BaseFileWin, AnnotateWithSourceInformation) {
BaseFile base_file((net::NetLogWithSource()));
ASSERT_EQ(DOWNLOAD_INTERRUPT_REASON_NONE,
- base_file.Initialize(base::FilePath(), target_directory.path(),
+ base_file.Initialize(base::FilePath(), target_directory.GetPath(),
base::File(), 0, std::string(),
std::unique_ptr<crypto::SecureHash>()));
ASSERT_FALSE(base_file.full_path().empty());
- ASSERT_EQ(
- DOWNLOAD_INTERRUPT_REASON_NONE,
- base_file.Rename(target_directory.path().AppendASCII("test_file.doc")));
+ ASSERT_EQ(DOWNLOAD_INTERRUPT_REASON_NONE,
+ base_file.Rename(
+ target_directory.GetPath().AppendASCII("test_file.doc")));
ASSERT_EQ(DOWNLOAD_INTERRUPT_REASON_NONE,
base_file.AnnotateWithSourceInformation(
"7B2CEE7C-DC81-4160-86F1-9C968597118F", url, referrer));
« no previous file with comments | « no previous file | content/browser/download/quarantine_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698