| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 10 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
| 13 #include "base/time.h" | 13 #include "base/time.h" |
| 14 #include "chrome/browser/media_galleries/fileapi/media_file_system_mount_point_p
rovider.h" | 14 #include "chrome/browser/media_galleries/fileapi/media_file_system_mount_point_p
rovider.h" |
| 15 #include "chrome/browser/media_galleries/fileapi/native_media_file_util.h" | 15 #include "chrome/browser/media_galleries/fileapi/native_media_file_util.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #include "webkit/fileapi/external_mount_points.h" | 17 #include "webkit/browser/fileapi/external_mount_points.h" |
| 18 #include "webkit/fileapi/file_system_context.h" | 18 #include "webkit/browser/fileapi/file_system_context.h" |
| 19 #include "webkit/fileapi/file_system_mount_point_provider.h" | 19 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" |
| 20 #include "webkit/fileapi/file_system_operation.h" | 20 #include "webkit/browser/fileapi/file_system_operation.h" |
| 21 #include "webkit/fileapi/file_system_task_runners.h" | 21 #include "webkit/browser/fileapi/file_system_task_runners.h" |
| 22 #include "webkit/browser/fileapi/isolated_context.h" |
| 23 #include "webkit/browser/fileapi/mock_file_system_options.h" |
| 24 #include "webkit/browser/fileapi/native_file_util.h" |
| 22 #include "webkit/fileapi/file_system_url.h" | 25 #include "webkit/fileapi/file_system_url.h" |
| 23 #include "webkit/fileapi/isolated_context.h" | |
| 24 #include "webkit/fileapi/mock_file_system_options.h" | |
| 25 #include "webkit/fileapi/native_file_util.h" | |
| 26 #include "webkit/quota/mock_special_storage_policy.h" | 26 #include "webkit/quota/mock_special_storage_policy.h" |
| 27 | 27 |
| 28 #define FPL(x) FILE_PATH_LITERAL(x) | 28 #define FPL(x) FILE_PATH_LITERAL(x) |
| 29 | 29 |
| 30 using fileapi::FileSystemOperation; | 30 using fileapi::FileSystemOperation; |
| 31 using fileapi::FileSystemURL; | 31 using fileapi::FileSystemURL; |
| 32 | 32 |
| 33 namespace chrome { | 33 namespace chrome { |
| 34 | 34 |
| 35 namespace { | 35 namespace { |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 expected_error = base::PLATFORM_FILE_ERROR_SECURITY; | 644 expected_error = base::PLATFORM_FILE_ERROR_SECURITY; |
| 645 error = base::PLATFORM_FILE_ERROR_FAILED; | 645 error = base::PLATFORM_FILE_ERROR_FAILED; |
| 646 operation->CreateSnapshotFile(url, | 646 operation->CreateSnapshotFile(url, |
| 647 base::Bind(CreateSnapshotCallback, &error)); | 647 base::Bind(CreateSnapshotCallback, &error)); |
| 648 MessageLoop::current()->RunUntilIdle(); | 648 MessageLoop::current()->RunUntilIdle(); |
| 649 ASSERT_EQ(expected_error, error); | 649 ASSERT_EQ(expected_error, error); |
| 650 } | 650 } |
| 651 } | 651 } |
| 652 | 652 |
| 653 } // namespace chrome | 653 } // namespace chrome |
| OLD | NEW |