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

Side by Side Diff: chrome_frame/test/net/fake_external_tab.cc

Issue 10911151: URLRequestHttpJob::StartTransaction should honour network delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove code duplication + disable *CancelRequest* tests in Chrome Frame Created 8 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome_frame/test/net/fake_external_tab.h" 5 #include "chrome_frame/test/net/fake_external_tab.h"
6 6
7 #include <atlbase.h> 7 #include <atlbase.h>
8 #include <atlcom.h> 8 #include <atlcom.h>
9 #include <exdisp.h> 9 #include <exdisp.h>
10 #include <Winsock2.h> 10 #include <Winsock2.h>
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
202 // Tests chrome's network stack's cache (might not apply to CF). 202 // Tests chrome's network stack's cache (might not apply to CF).
203 "URLRequestTestHTTP.VaryHeader", 203 "URLRequestTestHTTP.VaryHeader",
204 "URLRequestTestHTTP.GetZippedTest", 204 "URLRequestTestHTTP.GetZippedTest",
205 205
206 // Tests that requests can be blocked asynchronously in states 206 // Tests that requests can be blocked asynchronously in states
207 // OnBeforeURLRequest, OnBeforeSendHeaders and OnHeadersReceived. At least 207 // OnBeforeURLRequest, OnBeforeSendHeaders and OnHeadersReceived. At least
208 // the second state is not supported by CF. 208 // the second state is not supported by CF.
209 "URLRequestTestHTTP.NetworkDelegateBlockAsynchronously", 209 "URLRequestTestHTTP.NetworkDelegateBlockAsynchronously",
210 210
211 // Tests for cancelling requests in states OnBeforeURLRequest,
212 // OnBeforeSendHeaders and OnHeadersReceived. At least the second state is
213 // not supported by CF.
214 "URLRequestTestHTTP.NetworkDelegateCancelRequestSynchronously",
215 "URLRequestTestHTTP.NetworkDelegateCancelRequestAsynchronously",
216
211 // Tests that requests can be cancelled while blocking in 217 // Tests that requests can be cancelled while blocking in
212 // OnBeforeSendHeaders state. But this state is not supported by CF. 218 // OnBeforeSendHeaders state. But this state is not supported by CF.
213 "URLRequestTestHTTP.NetworkDelegateCancelWhileWaiting2", 219 "URLRequestTestHTTP.NetworkDelegateCancelWhileWaiting2",
214 220
215 // Tests that requests can be cancelled while blocking in 221 // Tests that requests can be cancelled while blocking in
216 // OnHeadersRecevied state. At first glance, this state does not appear to 222 // OnHeadersRecevied state. At first glance, this state does not appear to
217 // be supported by CF. 223 // be supported by CF.
218 "URLRequestTestHTTP.NetworkDelegateCancelWhileWaiting3", 224 "URLRequestTestHTTP.NetworkDelegateCancelWhileWaiting3",
219 225
220 // Tests that requests can be cancelled while blocking in OnAuthRequired 226 // Tests that requests can be cancelled while blocking in OnAuthRequired
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 // content::InitializeSandboxInfo(&sandbox_info); 938 // content::InitializeSandboxInfo(&sandbox_info);
933 FakeMainDelegate delegate; 939 FakeMainDelegate delegate;
934 content::ContentMain( 940 content::ContentMain(
935 reinterpret_cast<HINSTANCE>(GetModuleHandle(NULL)), 941 reinterpret_cast<HINSTANCE>(GetModuleHandle(NULL)),
936 &sandbox_info, 942 &sandbox_info,
937 &delegate); 943 &delegate);
938 944
939 // Note: In debug builds, we ExitProcess during PostDestroyThreads. 945 // Note: In debug builds, we ExitProcess during PostDestroyThreads.
940 return g_test_suite->test_result(); 946 return g_test_suite->test_result();
941 } 947 }
OLDNEW
« no previous file with comments | « no previous file | net/url_request/url_request_http_job.h » ('j') | net/url_request/url_request_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698