OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <set> | 5 #include <set> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/scoped_temp_dir.h" | |
12 #include "base/platform_file.h" | 11 #include "base/platform_file.h" |
| 12 #include "base/scoped_temp_dir.h" |
13 #include "base/sys_string_conversions.h" | 13 #include "base/sys_string_conversions.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "webkit/fileapi/file_system_context.h" | 15 #include "webkit/fileapi/file_system_context.h" |
16 #include "webkit/fileapi/file_system_operation_context.h" | 16 #include "webkit/fileapi/file_system_operation_context.h" |
17 #include "webkit/fileapi/obfuscated_file_system_file_util.h" | 17 #include "webkit/fileapi/obfuscated_file_system_file_util.h" |
18 | 18 |
19 using namespace fileapi; | 19 using namespace fileapi; |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 EXPECT_TRUE(ofsfu()->DirectoryExists(context.get(), src_path)); | 746 EXPECT_TRUE(ofsfu()->DirectoryExists(context.get(), src_path)); |
747 context.reset(NewContext()); | 747 context.reset(NewContext()); |
748 EXPECT_TRUE(ofsfu()->DirectoryExists(context.get(), dest_path)); | 748 EXPECT_TRUE(ofsfu()->DirectoryExists(context.get(), dest_path)); |
749 context.reset(NewContext()); | 749 context.reset(NewContext()); |
750 recursive = true; | 750 recursive = true; |
751 ASSERT_EQ(base::PLATFORM_FILE_OK, | 751 ASSERT_EQ(base::PLATFORM_FILE_OK, |
752 ofsfu()->Delete(context.get(), dest_path, recursive)); | 752 ofsfu()->Delete(context.get(), dest_path, recursive)); |
753 context.reset(NewContext()); | 753 context.reset(NewContext()); |
754 EXPECT_FALSE(ofsfu()->DirectoryExists(context.get(), dest_path)); | 754 EXPECT_FALSE(ofsfu()->DirectoryExists(context.get(), dest_path)); |
755 } | 755 } |
OLD | NEW |