Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(511)

Side by Side Diff: content/browser/appcache/appcache_url_request_job_unittest.cc

Issue 344493002: Move all remaining appcache-related code to content namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <stack> 5 #include <stack>
6 #include <utility> 6 #include <utility>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/pickle.h" 12 #include "base/pickle.h"
13 #include "base/synchronization/waitable_event.h" 13 #include "base/synchronization/waitable_event.h"
14 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
15 #include "content/browser/appcache/appcache_response.h"
16 #include "content/browser/appcache/appcache_url_request_job.h"
15 #include "content/browser/appcache/mock_appcache_service.h" 17 #include "content/browser/appcache/mock_appcache_service.h"
16 #include "net/base/io_buffer.h" 18 #include "net/base/io_buffer.h"
17 #include "net/base/net_errors.h" 19 #include "net/base/net_errors.h"
18 #include "net/base/request_priority.h" 20 #include "net/base/request_priority.h"
19 #include "net/http/http_response_headers.h" 21 #include "net/http/http_response_headers.h"
20 #include "net/url_request/url_request.h" 22 #include "net/url_request/url_request.h"
21 #include "net/url_request/url_request_context.h" 23 #include "net/url_request/url_request_context.h"
22 #include "net/url_request/url_request_error_job.h" 24 #include "net/url_request/url_request_error_job.h"
23 #include "net/url_request/url_request_job_factory.h" 25 #include "net/url_request/url_request_job_factory.h"
24 #include "testing/gtest/include/gtest/gtest.h" 26 #include "testing/gtest/include/gtest/gtest.h"
25 #include "webkit/browser/appcache/appcache_response.h"
26 #include "webkit/browser/appcache/appcache_url_request_job.h"
27 27
28 using appcache::AppCacheEntry;
29 using appcache::AppCacheStorage;
30 using appcache::AppCacheResponseInfo;
31 using appcache::AppCacheResponseReader;
32 using appcache::AppCacheResponseWriter;
33 using appcache::AppCacheURLRequestJob;
34 using appcache::HttpResponseInfoIOBuffer;
35 using appcache::kAppCacheNoCacheId;
36 using net::IOBuffer; 28 using net::IOBuffer;
37 using net::WrappedIOBuffer; 29 using net::WrappedIOBuffer;
38 30
39 namespace content { 31 namespace content {
40 32
41 namespace { 33 namespace {
42 34
43 const char kHttpBasicHeaders[] = "HTTP/1.0 200 OK\0Content-Length: 5\0\0"; 35 const char kHttpBasicHeaders[] = "HTTP/1.0 200 OK\0Content-Length: 5\0\0";
44 const char kHttpBasicBody[] = "Hello"; 36 const char kHttpBasicBody[] = "Hello";
45 37
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 RunTestOnIOThread(&AppCacheURLRequestJobTest::CancelRequest); 852 RunTestOnIOThread(&AppCacheURLRequestJobTest::CancelRequest);
861 } 853 }
862 854
863 TEST_F(AppCacheURLRequestJobTest, CancelRequestWithIOPending) { 855 TEST_F(AppCacheURLRequestJobTest, CancelRequestWithIOPending) {
864 RunTestOnIOThread(&AppCacheURLRequestJobTest::CancelRequestWithIOPending); 856 RunTestOnIOThread(&AppCacheURLRequestJobTest::CancelRequestWithIOPending);
865 } 857 }
866 858
867 } // namespace 859 } // namespace
868 860
869 } // namespace content 861 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698