| 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 // NOTE: These tests are run as part of "unit_tests" (in chrome/test/unit) | 5 // NOTE: These tests are run as part of "unit_tests" (in chrome/test/unit) |
| 6 // rather than as part of test_shell_tests because they rely on being able | 6 // rather than as part of test_shell_tests because they rely on being able |
| 7 // to instantiate a MessageLoop of type TYPE_IO. test_shell_tests uses | 7 // to instantiate a MessageLoop of type TYPE_IO. test_shell_tests uses |
| 8 // TYPE_UI, which URLRequest doesn't allow. | 8 // TYPE_UI, which URLRequest doesn't allow. |
| 9 // | 9 // |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "base/bind.h" | 15 #include "base/bind.h" |
| 16 #include "base/file_util_proxy.h" | 16 #include "base/file_util_proxy.h" |
| 17 #include "base/message_loop.h" | 17 #include "base/message_loop.h" |
| 18 #include "base/scoped_temp_dir.h" | 18 #include "base/scoped_temp_dir.h" |
| 19 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
| 20 #include "net/base/io_buffer.h" | 20 #include "net/base/io_buffer.h" |
| 21 #include "net/url_request/url_request.h" | 21 #include "net/url_request/url_request.h" |
| 22 #include "net/url_request/url_request_job.h" | 22 #include "net/url_request/url_request_job.h" |
| 23 #include "net/url_request/url_request_status.h" | 23 #include "net/url_request/url_request_status.h" |
| 24 #include "testing/platform_test.h" | 24 #include "testing/platform_test.h" |
| 25 #include "webkit/fileapi/file_system_callback_dispatcher.h" | 25 #include "webkit/fileapi/file_system_callback_dispatcher.h" |
| 26 #include "webkit/fileapi/file_system_context.h" | 26 #include "webkit/fileapi/file_system_context.h" |
| 27 #include "webkit/fileapi/file_system_operation.h" | 27 #include "webkit/fileapi/file_system_operation.h" |
| 28 #include "webkit/fileapi/file_system_operation_context.h" | 28 #include "webkit/fileapi/file_system_operation_context.h" |
| 29 #include "webkit/fileapi/file_system_path_manager.h" | |
| 30 #include "webkit/fileapi/file_system_test_helper.h" | 29 #include "webkit/fileapi/file_system_test_helper.h" |
| 31 #include "webkit/fileapi/file_system_usage_cache.h" | 30 #include "webkit/fileapi/file_system_usage_cache.h" |
| 32 #include "webkit/fileapi/file_writer_delegate.h" | 31 #include "webkit/fileapi/file_writer_delegate.h" |
| 33 #include "webkit/fileapi/quota_file_util.h" | 32 #include "webkit/fileapi/quota_file_util.h" |
| 34 #include "webkit/fileapi/sandbox_mount_point_provider.h" | 33 #include "webkit/fileapi/sandbox_mount_point_provider.h" |
| 35 | 34 |
| 36 namespace fileapi { | 35 namespace fileapi { |
| 37 | 36 |
| 38 namespace { | 37 namespace { |
| 39 | 38 |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 EXPECT_EQ(base::PLATFORM_FILE_ERROR_NO_SPACE, result_->status()); | 450 EXPECT_EQ(base::PLATFORM_FILE_ERROR_NO_SPACE, result_->status()); |
| 452 EXPECT_TRUE(result_->complete()); | 451 EXPECT_TRUE(result_->complete()); |
| 453 } | 452 } |
| 454 | 453 |
| 455 class FileWriterDelegateUnlimitedTest : public FileWriterDelegateTest { | 454 class FileWriterDelegateUnlimitedTest : public FileWriterDelegateTest { |
| 456 protected: | 455 protected: |
| 457 virtual void SetUpTestHelper(const FilePath& path) OVERRIDE; | 456 virtual void SetUpTestHelper(const FilePath& path) OVERRIDE; |
| 458 }; | 457 }; |
| 459 | 458 |
| 460 } // namespace fileapi | 459 } // namespace fileapi |
| OLD | NEW |