OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/browser/appcache/appcache_url_request_job.h" | 5 #include "content/browser/appcache/appcache_url_request_job.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <stack> | 11 #include <stack> |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/bind_helpers.h" | 15 #include "base/bind_helpers.h" |
16 #include "base/callback.h" | 16 #include "base/callback.h" |
17 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
18 #include "base/location.h" | 18 #include "base/location.h" |
19 #include "base/logging.h" | 19 #include "base/logging.h" |
20 #include "base/macros.h" | 20 #include "base/macros.h" |
21 #include "base/memory/weak_ptr.h" | 21 #include "base/memory/weak_ptr.h" |
| 22 #include "base/message_loop/message_loop.h" |
22 #include "base/pickle.h" | 23 #include "base/pickle.h" |
23 #include "base/single_thread_task_runner.h" | 24 #include "base/single_thread_task_runner.h" |
24 #include "base/synchronization/waitable_event.h" | 25 #include "base/synchronization/waitable_event.h" |
25 #include "base/threading/thread.h" | 26 #include "base/threading/thread.h" |
26 #include "base/threading/thread_task_runner_handle.h" | 27 #include "base/threading/thread_task_runner_handle.h" |
27 #include "content/browser/appcache/appcache_response.h" | 28 #include "content/browser/appcache/appcache_response.h" |
28 #include "content/browser/appcache/mock_appcache_service.h" | 29 #include "content/browser/appcache/mock_appcache_service.h" |
29 #include "net/base/io_buffer.h" | 30 #include "net/base/io_buffer.h" |
30 #include "net/base/net_errors.h" | 31 #include "net/base/net_errors.h" |
31 #include "net/base/request_priority.h" | 32 #include "net/base/request_priority.h" |
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
895 | 896 |
896 TEST_F(AppCacheURLRequestJobTest, CancelRequest) { | 897 TEST_F(AppCacheURLRequestJobTest, CancelRequest) { |
897 RunTestOnIOThread(&AppCacheURLRequestJobTest::CancelRequest); | 898 RunTestOnIOThread(&AppCacheURLRequestJobTest::CancelRequest); |
898 } | 899 } |
899 | 900 |
900 TEST_F(AppCacheURLRequestJobTest, CancelRequestWithIOPending) { | 901 TEST_F(AppCacheURLRequestJobTest, CancelRequestWithIOPending) { |
901 RunTestOnIOThread(&AppCacheURLRequestJobTest::CancelRequestWithIOPending); | 902 RunTestOnIOThread(&AppCacheURLRequestJobTest::CancelRequestWithIOPending); |
902 } | 903 } |
903 | 904 |
904 } // namespace content | 905 } // namespace content |
OLD | NEW |