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