| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/files/file.h" | 9 #include "base/files/file.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
| 12 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" |
| 14 #include "storage/browser/fileapi/native_file_util.h" | 15 #include "storage/browser/fileapi/native_file_util.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 17 |
| 17 using storage::FileSystemFileUtil; | 18 using storage::FileSystemFileUtil; |
| 18 using storage::FileSystemOperation; | 19 using storage::FileSystemOperation; |
| 19 using storage::NativeFileUtil; | 20 using storage::NativeFileUtil; |
| 20 | 21 |
| 21 namespace content { | 22 namespace content { |
| 22 | 23 |
| 23 class NativeFileUtilTest : public testing::Test { | 24 class NativeFileUtilTest : public testing::Test { |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 FileSystemOperation::OPTION_PRESERVE_LAST_MODIFIED, | 402 FileSystemOperation::OPTION_PRESERVE_LAST_MODIFIED, |
| 402 NativeFileUtil::MOVE)); | 403 NativeFileUtil::MOVE)); |
| 403 | 404 |
| 404 ASSERT_TRUE(FileExists(to_file3)); | 405 ASSERT_TRUE(FileExists(to_file3)); |
| 405 ASSERT_EQ(base::File::FILE_OK, | 406 ASSERT_EQ(base::File::FILE_OK, |
| 406 NativeFileUtil::GetFileInfo(to_file2, &file_info2)); | 407 NativeFileUtil::GetFileInfo(to_file2, &file_info2)); |
| 407 EXPECT_EQ(file_info1.last_modified, file_info2.last_modified); | 408 EXPECT_EQ(file_info1.last_modified, file_info2.last_modified); |
| 408 } | 409 } |
| 409 | 410 |
| 410 } // namespace content | 411 } // namespace content |
| OLD | NEW |