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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 class TestSpecialStoragePolicy : public quota::SpecialStoragePolicy { | 44 class TestSpecialStoragePolicy : public quota::SpecialStoragePolicy { |
45 public: | 45 public: |
46 virtual bool IsStorageProtected(const GURL& origin) { | 46 virtual bool IsStorageProtected(const GURL& origin) { |
47 return false; | 47 return false; |
48 } | 48 } |
49 | 49 |
50 virtual bool IsStorageUnlimited(const GURL& origin) { | 50 virtual bool IsStorageUnlimited(const GURL& origin) { |
51 return true; | 51 return true; |
52 } | 52 } |
53 | 53 |
| 54 virtual bool IsStorageSessionOnly(const GURL& origin) { |
| 55 return false; |
| 56 } |
| 57 |
54 virtual bool IsFileHandler(const std::string& extension_id) { | 58 virtual bool IsFileHandler(const std::string& extension_id) { |
55 return true; | 59 return true; |
56 } | 60 } |
57 }; | 61 }; |
58 | 62 |
59 } // namespace | 63 } // namespace |
60 | 64 |
61 class FileSystemDirURLRequestJobTest : public testing::Test { | 65 class FileSystemDirURLRequestJobTest : public testing::Test { |
62 protected: | 66 protected: |
63 FileSystemDirURLRequestJobTest() | 67 FileSystemDirURLRequestJobTest() |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 MessageLoop::current()->PostTask(FROM_HERE, new QuitNowTask); | 314 MessageLoop::current()->PostTask(FROM_HERE, new QuitNowTask); |
311 MessageLoop::current()->Run(); | 315 MessageLoop::current()->Run(); |
312 | 316 |
313 request_.reset(); | 317 request_.reset(); |
314 MessageLoop::current()->RunAllPending(); | 318 MessageLoop::current()->RunAllPending(); |
315 // If we get here, success! we didn't crash! | 319 // If we get here, success! we didn't crash! |
316 } | 320 } |
317 | 321 |
318 } // namespace (anonymous) | 322 } // namespace (anonymous) |
319 } // namespace fileapi | 323 } // namespace fileapi |
OLD | NEW |