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

Unified Diff: net/http/http_transaction_winhttp_unittest.cc

Issue 13701: Use automatic memory management for URLRequestContext's members.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years 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_transaction_winhttp.cc ('k') | net/net.xcodeproj/project.pbxproj » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_transaction_winhttp_unittest.cc
===================================================================
--- net/http/http_transaction_winhttp_unittest.cc (revision 6881)
+++ net/http/http_transaction_winhttp_unittest.cc (working copy)
@@ -4,19 +4,16 @@
#include "net/http/http_transaction_winhttp.h"
#include "net/http/http_transaction_unittest.h"
-#include "net/proxy/proxy_resolver_null.h"
#include "testing/gtest/include/gtest/gtest.h"
TEST(HttpTransactionWinHttp, CreateAndDestroy) {
- net::ProxyService proxy_service(new net::ProxyResolverNull);
- net::HttpTransactionWinHttp::Factory factory(&proxy_service);
+ net::HttpTransactionWinHttp::Factory factory(net::ProxyService::CreateNull());
scoped_ptr<net::HttpTransaction> trans(factory.CreateTransaction());
}
TEST(HttpTransactionWinHttp, Suspend) {
- net::ProxyService proxy_service(new net::ProxyResolverNull);
- net::HttpTransactionWinHttp::Factory factory(&proxy_service);
+ net::HttpTransactionWinHttp::Factory factory(net::ProxyService::CreateNull());
scoped_ptr<net::HttpTransaction> trans(factory.CreateTransaction());
trans.reset();
@@ -32,8 +29,7 @@
}
TEST(HttpTransactionWinHttp, GoogleGET) {
- net::ProxyService proxy_service(new net::ProxyResolverNull);
- net::HttpTransactionWinHttp::Factory factory(&proxy_service);
+ net::HttpTransactionWinHttp::Factory factory(net::ProxyService::CreateNull());
TestCompletionCallback callback;
scoped_ptr<net::HttpTransaction> trans(factory.CreateTransaction());
« no previous file with comments | « net/http/http_transaction_winhttp.cc ('k') | net/net.xcodeproj/project.pbxproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698