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

Unified Diff: net/http/http_network_layer.cc

Issue 4013: Port more unit tests in net/http/ (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 12 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_cache_unittest.cc ('k') | net/http/http_transaction_unittest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_layer.cc
===================================================================
--- net/http/http_network_layer.cc (revision 2439)
+++ net/http/http_network_layer.cc (working copy)
@@ -4,10 +4,14 @@
#include "net/http/http_network_layer.h"
+#include "base/basictypes.h"
#include "base/logging.h"
#include "net/base/client_socket_factory.h"
#include "net/http/http_network_session.h"
+// TODO(port): Port http_network_transaction and remove #if.
+#if defined(OS_WIN)
#include "net/http/http_network_transaction.h"
+#endif
#include "net/proxy/proxy_resolver_fixed.h"
#if defined(OS_WIN)
#include "net/http/http_transaction_winhttp.h"
@@ -63,11 +67,16 @@
}
HttpTransaction* HttpNetworkLayer::CreateTransaction() {
+#if defined(OS_WIN)
if (suspended_)
return NULL;
return new HttpNetworkTransaction(
session_, ClientSocketFactory::GetDefaultFactory());
+#else
+ NOTIMPLEMENTED();
+ return NULL;
+#endif
}
HttpCache* HttpNetworkLayer::GetCache() {
« no previous file with comments | « net/http/http_cache_unittest.cc ('k') | net/http/http_transaction_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698