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> | 5 #include <stack> |
6 #include <utility> | 6 #include <utility> |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/pickle.h" | 9 #include "base/pickle.h" |
10 #include "base/thread.h" | 10 #include "base/threading/thread.h" |
11 #include "base/waitable_event.h" | 11 #include "base/waitable_event.h" |
12 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
13 #include "net/http/http_response_headers.h" | 13 #include "net/http/http_response_headers.h" |
14 #include "net/url_request/url_request.h" | 14 #include "net/url_request/url_request.h" |
15 #include "net/url_request/url_request_error_job.h" | 15 #include "net/url_request/url_request_error_job.h" |
16 #include "net/base/io_buffer.h" | 16 #include "net/base/io_buffer.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 #include "webkit/appcache/appcache_response.h" | 18 #include "webkit/appcache/appcache_response.h" |
19 #include "webkit/appcache/appcache_url_request_job.h" | 19 #include "webkit/appcache/appcache_url_request_job.h" |
20 #include "webkit/appcache/mock_appcache_service.h" | 20 #include "webkit/appcache/mock_appcache_service.h" |
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 | 813 |
814 TEST_F(AppCacheURLRequestJobTest, CancelRequestWithIOPending) { | 814 TEST_F(AppCacheURLRequestJobTest, CancelRequestWithIOPending) { |
815 RunTestOnIOThread(&AppCacheURLRequestJobTest::CancelRequestWithIOPending); | 815 RunTestOnIOThread(&AppCacheURLRequestJobTest::CancelRequestWithIOPending); |
816 } | 816 } |
817 | 817 |
818 } // namespace appcache | 818 } // namespace appcache |
819 | 819 |
820 // AppCacheURLRequestJobTest is expected to always live longer than the | 820 // AppCacheURLRequestJobTest is expected to always live longer than the |
821 // runnable methods. This lets us call NewRunnableMethod on its instances. | 821 // runnable methods. This lets us call NewRunnableMethod on its instances. |
822 DISABLE_RUNNABLE_METHOD_REFCOUNT(appcache::AppCacheURLRequestJobTest); | 822 DISABLE_RUNNABLE_METHOD_REFCOUNT(appcache::AppCacheURLRequestJobTest); |
OLD | NEW |