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 "webkit/fileapi/file_system_dir_url_request_job.h" | 11 #include "webkit/fileapi/file_system_dir_url_request_job.h" |
12 | 12 |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 | 14 |
15 #include <string> | 15 #include <string> |
16 | 16 |
17 #include "base/file_path.h" | 17 #include "base/file_path.h" |
18 #include "base/file_util.h" | 18 #include "base/file_util.h" |
19 #include "base/format_macros.h" | 19 #include "base/format_macros.h" |
20 #include "base/memory/scoped_temp_dir.h" | |
21 #include "base/message_loop.h" | 20 #include "base/message_loop.h" |
22 #include "base/platform_file.h" | 21 #include "base/platform_file.h" |
| 22 #include "base/scoped_temp_dir.h" |
23 #include "base/string_piece.h" | 23 #include "base/string_piece.h" |
24 #include "net/base/net_errors.h" | 24 #include "net/base/net_errors.h" |
25 #include "net/base/net_util.h" | 25 #include "net/base/net_util.h" |
26 #include "net/http/http_request_headers.h" | 26 #include "net/http/http_request_headers.h" |
27 #include "net/url_request/url_request.h" | 27 #include "net/url_request/url_request.h" |
28 #include "net/url_request/url_request_test_util.h" | 28 #include "net/url_request/url_request_test_util.h" |
29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
30 #include "webkit/fileapi/file_system_context.h" | 30 #include "webkit/fileapi/file_system_context.h" |
31 #include "webkit/fileapi/file_system_path_manager.h" | 31 #include "webkit/fileapi/file_system_path_manager.h" |
32 | 32 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 MessageLoop::current()->PostTask(FROM_HERE, new QuitNowTask); | 207 MessageLoop::current()->PostTask(FROM_HERE, new QuitNowTask); |
208 MessageLoop::current()->Run(); | 208 MessageLoop::current()->Run(); |
209 | 209 |
210 request_.reset(); | 210 request_.reset(); |
211 MessageLoop::current()->RunAllPending(); | 211 MessageLoop::current()->RunAllPending(); |
212 // If we get here, success! we didn't crash! | 212 // If we get here, success! we didn't crash! |
213 } | 213 } |
214 | 214 |
215 } // namespace (anonymous) | 215 } // namespace (anonymous) |
216 } // namespace fileapi | 216 } // namespace fileapi |
OLD | NEW |