OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <stack> |
| 6 #include <utility> |
| 7 |
5 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
6 #include "base/pickle.h" | 9 #include "base/pickle.h" |
7 #include "base/thread.h" | 10 #include "base/thread.h" |
8 #include "base/waitable_event.h" | 11 #include "base/waitable_event.h" |
9 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
10 #include "net/url_request/url_request.h" | 13 #include "net/url_request/url_request.h" |
11 #include "net/url_request/url_request_error_job.h" | 14 #include "net/url_request/url_request_error_job.h" |
12 #include "net/base/io_buffer.h" | 15 #include "net/base/io_buffer.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "webkit/appcache/appcache_response.h" | 17 #include "webkit/appcache/appcache_response.h" |
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 | 808 |
806 TEST_F(AppCacheURLRequestJobTest, CancelRequestWithIOPending) { | 809 TEST_F(AppCacheURLRequestJobTest, CancelRequestWithIOPending) { |
807 RunTestOnIOThread(&AppCacheURLRequestJobTest::CancelRequestWithIOPending); | 810 RunTestOnIOThread(&AppCacheURLRequestJobTest::CancelRequestWithIOPending); |
808 } | 811 } |
809 | 812 |
810 } // namespace appcache | 813 } // namespace appcache |
811 | 814 |
812 // AppCacheURLRequestJobTest is expected to always live longer than the | 815 // AppCacheURLRequestJobTest is expected to always live longer than the |
813 // runnable methods. This lets us call NewRunnableMethod on its instances. | 816 // runnable methods. This lets us call NewRunnableMethod on its instances. |
814 DISABLE_RUNNABLE_METHOD_REFCOUNT(appcache::AppCacheURLRequestJobTest); | 817 DISABLE_RUNNABLE_METHOD_REFCOUNT(appcache::AppCacheURLRequestJobTest); |
OLD | NEW |