| 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 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 class TestSpecialStoragePolicy : public quota::SpecialStoragePolicy { | 63 class TestSpecialStoragePolicy : public quota::SpecialStoragePolicy { |
| 64 public: | 64 public: |
| 65 virtual bool IsStorageProtected(const GURL& origin) { | 65 virtual bool IsStorageProtected(const GURL& origin) { |
| 66 return false; | 66 return false; |
| 67 } | 67 } |
| 68 | 68 |
| 69 virtual bool IsStorageUnlimited(const GURL& origin) { | 69 virtual bool IsStorageUnlimited(const GURL& origin) { |
| 70 return true; | 70 return true; |
| 71 } | 71 } |
| 72 | 72 |
| 73 virtual bool IsStorageSessionOnly(const GURL& origin) { |
| 74 return false; |
| 75 } |
| 76 |
| 73 virtual bool IsFileHandler(const std::string& extension_id) { | 77 virtual bool IsFileHandler(const std::string& extension_id) { |
| 74 return true; | 78 return true; |
| 75 } | 79 } |
| 76 }; | 80 }; |
| 77 | 81 |
| 78 } // namespace | 82 } // namespace |
| 79 | 83 |
| 80 class FileSystemURLRequestJobTest : public testing::Test { | 84 class FileSystemURLRequestJobTest : public testing::Test { |
| 81 protected: | 85 protected: |
| 82 FileSystemURLRequestJobTest() | 86 FileSystemURLRequestJobTest() |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 | 387 |
| 384 TestRequest(CreateFileSystemURL(kFilename)); | 388 TestRequest(CreateFileSystemURL(kFilename)); |
| 385 | 389 |
| 386 std::string mime_type_from_job; | 390 std::string mime_type_from_job; |
| 387 request_->GetMimeType(&mime_type_from_job); | 391 request_->GetMimeType(&mime_type_from_job); |
| 388 EXPECT_EQ(mime_type_direct, mime_type_from_job); | 392 EXPECT_EQ(mime_type_direct, mime_type_from_job); |
| 389 } | 393 } |
| 390 | 394 |
| 391 } // namespace (anonymous) | 395 } // namespace (anonymous) |
| 392 } // namespace fileapi | 396 } // namespace fileapi |
| OLD | NEW |