summaryrefslogtreecommitdiffstats
path: root/net/url_request
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-15 00:21:34 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-15 00:21:34 +0000
commitaeb53f0e2f6352ec7fbc2113270a97072b42c764 (patch)
tree1f4da7884df919c21903a7881964273a9f7496fd /net/url_request
parentec8962ca7de01eb5685b32a4361dd7be8f7e6293 (diff)
downloadchromium_src-aeb53f0e2f6352ec7fbc2113270a97072b42c764.zip
chromium_src-aeb53f0e2f6352ec7fbc2113270a97072b42c764.tar.gz
chromium_src-aeb53f0e2f6352ec7fbc2113270a97072b42c764.tar.bz2
net: Remove typedef net::URLRequestContext URLRequestContext;
BUG=64263 TEST=compiled locally, trybots Review URL: http://codereview.chromium.org/6338002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71522 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r--net/url_request/url_request_context.h3
-rw-r--r--net/url_request/url_request_unittest.cc16
-rw-r--r--net/url_request/url_request_unittest.h2
-rw-r--r--net/url_request/view_cache_helper_unittest.cc6
4 files changed, 12 insertions, 15 deletions
diff --git a/net/url_request/url_request_context.h b/net/url_request/url_request_context.h
index b54faf4..2c737ca 100644
--- a/net/url_request/url_request_context.h
+++ b/net/url_request/url_request_context.h
@@ -192,7 +192,4 @@ class URLRequestContext
} // namespace net
-// TODO(tfarina): Fix the callers and remove this!
-typedef net::URLRequestContext URLRequestContext;
-
#endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_H_
diff --git a/net/url_request/url_request_unittest.cc b/net/url_request/url_request_unittest.cc
index 8d57e1e..e53a6e3 100644
--- a/net/url_request/url_request_unittest.cc
+++ b/net/url_request/url_request_unittest.cc
@@ -150,7 +150,7 @@ class URLRequestTestHTTP : public URLRequestTest {
}
uploadBytes[kMsgSize] = '\0';
- scoped_refptr<URLRequestContext> context(new TestURLRequestContext());
+ scoped_refptr<net::URLRequestContext> context(new TestURLRequestContext());
for (int i = 0; i < kIterations; ++i) {
TestDelegate d;
@@ -531,7 +531,7 @@ TEST_F(URLRequestTestHTTP, CancelTest4) {
TEST_F(URLRequestTestHTTP, CancelTest5) {
ASSERT_TRUE(test_server_.Start());
- scoped_refptr<URLRequestContext> context(new TestURLRequestContext());
+ scoped_refptr<net::URLRequestContext> context(new TestURLRequestContext());
// populate cache
{
@@ -1138,7 +1138,7 @@ TEST_F(URLRequestTestHTTP, CancelDeferredRedirect) {
TEST_F(URLRequestTestHTTP, VaryHeader) {
ASSERT_TRUE(test_server_.Start());
- scoped_refptr<URLRequestContext> context(new TestURLRequestContext());
+ scoped_refptr<net::URLRequestContext> context(new TestURLRequestContext());
// populate the cache
{
@@ -1184,7 +1184,7 @@ TEST_F(URLRequestTestHTTP, VaryHeader) {
TEST_F(URLRequestTestHTTP, BasicAuth) {
ASSERT_TRUE(test_server_.Start());
- scoped_refptr<URLRequestContext> context(new TestURLRequestContext());
+ scoped_refptr<net::URLRequestContext> context(new TestURLRequestContext());
// populate the cache
{
@@ -1234,7 +1234,7 @@ TEST_F(URLRequestTestHTTP, BasicAuthWithCookies) {
// Request a page that will give a 401 containing a Set-Cookie header.
// Verify that when the transaction is restarted, it includes the new cookie.
{
- scoped_refptr<URLRequestContext> context(new TestURLRequestContext());
+ scoped_refptr<net::URLRequestContext> context(new TestURLRequestContext());
TestDelegate d;
d.set_username(kUser);
d.set_password(kSecret);
@@ -1255,7 +1255,7 @@ TEST_F(URLRequestTestHTTP, BasicAuthWithCookies) {
// Same test as above, except this time the restart is initiated earlier
// (without user intervention since identity is embedded in the URL).
{
- scoped_refptr<URLRequestContext> context(new TestURLRequestContext());
+ scoped_refptr<net::URLRequestContext> context(new TestURLRequestContext());
TestDelegate d;
GURL::Replacements replacements;
@@ -1283,7 +1283,7 @@ TEST_F(URLRequestTest, DoNotSendCookies) {
net::TestServer test_server(net::TestServer::TYPE_HTTP, FilePath());
ASSERT_TRUE(test_server.Start());
- scoped_refptr<URLRequestContext> context(new TestURLRequestContext());
+ scoped_refptr<net::URLRequestContext> context(new TestURLRequestContext());
// Set up a cookie.
{
@@ -1332,7 +1332,7 @@ TEST_F(URLRequestTest, DoNotSaveCookies) {
net::TestServer test_server(net::TestServer::TYPE_HTTP, FilePath());
ASSERT_TRUE(test_server.Start());
- scoped_refptr<URLRequestContext> context(new TestURLRequestContext());
+ scoped_refptr<net::URLRequestContext> context(new TestURLRequestContext());
// Set up a cookie.
{
diff --git a/net/url_request/url_request_unittest.h b/net/url_request/url_request_unittest.h
index 043ee87..f133015 100644
--- a/net/url_request/url_request_unittest.h
+++ b/net/url_request/url_request_unittest.h
@@ -122,7 +122,7 @@ class TestCookiePolicy : public net::CookiePolicy {
//-----------------------------------------------------------------------------
-class TestURLRequestContext : public URLRequestContext {
+class TestURLRequestContext : public net::URLRequestContext {
public:
TestURLRequestContext() {
host_resolver_ =
diff --git a/net/url_request/view_cache_helper_unittest.cc b/net/url_request/view_cache_helper_unittest.cc
index 3903c2b..b99a90c 100644
--- a/net/url_request/view_cache_helper_unittest.cc
+++ b/net/url_request/view_cache_helper_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -13,7 +13,7 @@
namespace {
-class TestURLRequestContext : public URLRequestContext {
+class TestURLRequestContext : public net::URLRequestContext {
public:
TestURLRequestContext();
@@ -81,7 +81,7 @@ void WriteToEntry(disk_cache::Backend* cache, const std::string key,
entry->Close();
}
-void FillCache(URLRequestContext* context) {
+void FillCache(net::URLRequestContext* context) {
TestCompletionCallback cb;
disk_cache::Backend* cache;
int rv =