OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/platform_file.h" | |
11 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
12 #include "content/public/test/test_file_system_context.h" | 11 #include "content/public/test/test_file_system_context.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "webkit/browser/fileapi/file_system_context.h" | 13 #include "webkit/browser/fileapi/file_system_context.h" |
15 #include "webkit/browser/fileapi/file_system_operation_context.h" | 14 #include "webkit/browser/fileapi/file_system_operation_context.h" |
16 #include "webkit/browser/fileapi/isolated_context.h" | 15 #include "webkit/browser/fileapi/isolated_context.h" |
17 #include "webkit/browser/fileapi/transient_file_util.h" | 16 #include "webkit/browser/fileapi/transient_file_util.h" |
18 #include "webkit/common/blob/scoped_file.h" | 17 #include "webkit/common/blob/scoped_file.h" |
19 | 18 |
20 using fileapi::FileSystemURL; | 19 using fileapi::FileSystemURL; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 base::RunLoop().RunUntilIdle(); | 116 base::RunLoop().RunUntilIdle(); |
118 | 117 |
119 // Now the temporary file and the transient filesystem must be gone too. | 118 // Now the temporary file and the transient filesystem must be gone too. |
120 ASSERT_FALSE(base::PathExists(temp_path)); | 119 ASSERT_FALSE(base::PathExists(temp_path)); |
121 ASSERT_EQ(base::File::FILE_ERROR_NOT_FOUND, | 120 ASSERT_EQ(base::File::FILE_ERROR_NOT_FOUND, |
122 file_util()->GetFileInfo(NewOperationContext().get(), | 121 file_util()->GetFileInfo(NewOperationContext().get(), |
123 temp_url, &file_info, &path)); | 122 temp_url, &file_info, &path)); |
124 } | 123 } |
125 | 124 |
126 } // namespace content | 125 } // namespace content |
OLD | NEW |