| 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 <memory> | 5 #include <memory> |
| 6 | 6 |
| 7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
| 8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "content/public/test/async_file_test_helper.h" | |
| 12 #include "content/public/test/test_file_system_context.h" | |
| 13 #include "content/public/test/test_file_system_options.h" | |
| 14 #include "storage/browser/fileapi/file_system_context.h" | 11 #include "storage/browser/fileapi/file_system_context.h" |
| 15 #include "storage/browser/fileapi/isolated_context.h" | 12 #include "storage/browser/fileapi/isolated_context.h" |
| 16 #include "storage/browser/fileapi/obfuscated_file_util.h" | 13 #include "storage/browser/fileapi/obfuscated_file_util.h" |
| 17 #include "storage/browser/fileapi/plugin_private_file_system_backend.h" | 14 #include "storage/browser/fileapi/plugin_private_file_system_backend.h" |
| 15 #include "storage/browser/test/async_file_test_helper.h" |
| 16 #include "storage/browser/test/test_file_system_context.h" |
| 17 #include "storage/browser/test/test_file_system_options.h" |
| 18 #include "storage/common/fileapi/file_system_util.h" | 18 #include "storage/common/fileapi/file_system_util.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 20 | 20 |
| 21 using content::AsyncFileTestHelper; | 21 using content::AsyncFileTestHelper; |
| 22 using storage::FileSystemContext; | 22 using storage::FileSystemContext; |
| 23 using storage::FileSystemURL; | 23 using storage::FileSystemURL; |
| 24 using storage::IsolatedContext; | 24 using storage::IsolatedContext; |
| 25 | 25 |
| 26 namespace content { | 26 namespace content { |
| 27 | 27 |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 AsyncFileTestHelper::CreateFile(context_.get(), file3)); | 279 AsyncFileTestHelper::CreateFile(context_.get(), file3)); |
| 280 EXPECT_TRUE(AsyncFileTestHelper::FileExists( | 280 EXPECT_TRUE(AsyncFileTestHelper::FileExists( |
| 281 context_.get(), file3, AsyncFileTestHelper::kDontCheckSize)); | 281 context_.get(), file3, AsyncFileTestHelper::kDontCheckSize)); |
| 282 | 282 |
| 283 // Confirm 'foo' in kOrigin1 is re-created. | 283 // Confirm 'foo' in kOrigin1 is re-created. |
| 284 EXPECT_TRUE(AsyncFileTestHelper::FileExists( | 284 EXPECT_TRUE(AsyncFileTestHelper::FileExists( |
| 285 context_.get(), file3, AsyncFileTestHelper::kDontCheckSize)); | 285 context_.get(), file3, AsyncFileTestHelper::kDontCheckSize)); |
| 286 } | 286 } |
| 287 | 287 |
| 288 } // namespace content | 288 } // namespace content |
| OLD | NEW |