| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "base/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/files/file_path.h" | 6 #include "base/files/file_path.h" |
| 7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
| 8 #include "base/platform_file.h" | 8 #include "base/platform_file.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 #include "webkit/fileapi/native_file_util.h" | 10 #include "webkit/browser/fileapi/native_file_util.h" |
| 11 | 11 |
| 12 namespace fileapi { | 12 namespace fileapi { |
| 13 | 13 |
| 14 class NativeFileUtilTest : public testing::Test { | 14 class NativeFileUtilTest : public testing::Test { |
| 15 public: | 15 public: |
| 16 NativeFileUtilTest() {} | 16 NativeFileUtilTest() {} |
| 17 | 17 |
| 18 virtual void SetUp() { | 18 virtual void SetUp() { |
| 19 ASSERT_TRUE(data_dir_.CreateUniqueTempDir()); | 19 ASSERT_TRUE(data_dir_.CreateUniqueTempDir()); |
| 20 } | 20 } |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 Path("nodir").AppendASCII("file"), | 332 Path("nodir").AppendASCII("file"), |
| 333 false)); | 333 false)); |
| 334 // Destination's parent is a file. | 334 // Destination's parent is a file. |
| 335 EXPECT_EQ(base::PLATFORM_FILE_ERROR_NOT_FOUND, | 335 EXPECT_EQ(base::PLATFORM_FILE_ERROR_NOT_FOUND, |
| 336 NativeFileUtil::CopyOrMoveFile(from_file, | 336 NativeFileUtil::CopyOrMoveFile(from_file, |
| 337 Path("tofile1").AppendASCII("file"), | 337 Path("tofile1").AppendASCII("file"), |
| 338 false)); | 338 false)); |
| 339 } | 339 } |
| 340 | 340 |
| 341 } // namespace fileapi | 341 } // namespace fileapi |
| OLD | NEW |