diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-13 17:49:20 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-13 17:49:20 +0000 |
commit | 2086a3da7b13a837035f0df29b12fbb5c49fc120 (patch) | |
tree | a6ad18e51279f97ca537bb71943bb3af6e6f5755 /jingle | |
parent | 4ee339187a813ac7d4cb67e2755384a64343c617 (diff) | |
download | chromium_src-2086a3da7b13a837035f0df29b12fbb5c49fc120.zip chromium_src-2086a3da7b13a837035f0df29b12fbb5c49fc120.tar.gz chromium_src-2086a3da7b13a837035f0df29b12fbb5c49fc120.tar.bz2 |
Reland 167337 - Move url_request_test_util into net namespace
This file contains some rather generic names like "TestDelegate". Move it to the
net namespace to avoid collisions
BUG=none
TBR=wtc@chromium.org,darin@chromium.org
Original Review URL: https://codereview.chromium.org/11369179
Review URL: https://chromiumcodereview.appspot.com/11365227
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167413 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'jingle')
5 files changed, 15 insertions, 11 deletions
diff --git a/jingle/glue/proxy_resolving_client_socket_unittest.cc b/jingle/glue/proxy_resolving_client_socket_unittest.cc index 49d95f5..662ba77 100644 --- a/jingle/glue/proxy_resolving_client_socket_unittest.cc +++ b/jingle/glue/proxy_resolving_client_socket_unittest.cc @@ -17,7 +17,7 @@ namespace { -class MyTestURLRequestContext : public TestURLRequestContext { +class MyTestURLRequestContext : public net::TestURLRequestContext { public: MyTestURLRequestContext() : TestURLRequestContext(true) { context_storage_.set_proxy_service( @@ -35,9 +35,10 @@ namespace jingle_glue { class ProxyResolvingClientSocketTest : public testing::Test { protected: ProxyResolvingClientSocketTest() - : url_request_context_getter_(new TestURLRequestContextGetter( + : url_request_context_getter_(new net::TestURLRequestContextGetter( base::MessageLoopProxy::current(), - scoped_ptr<TestURLRequestContext>(new MyTestURLRequestContext))) {} + scoped_ptr<net::TestURLRequestContext>( + new MyTestURLRequestContext))) {} virtual ~ProxyResolvingClientSocketTest() {} @@ -48,7 +49,7 @@ class ProxyResolvingClientSocketTest : public testing::Test { } MessageLoop message_loop_; - scoped_refptr<TestURLRequestContextGetter> url_request_context_getter_; + scoped_refptr<net::TestURLRequestContextGetter> url_request_context_getter_; }; // TODO(sanjeevr): Fix this test on Linux. diff --git a/jingle/notifier/base/xmpp_connection_unittest.cc b/jingle/notifier/base/xmpp_connection_unittest.cc index 05ddfc1..c6f9c81 100644 --- a/jingle/notifier/base/xmpp_connection_unittest.cc +++ b/jingle/notifier/base/xmpp_connection_unittest.cc @@ -75,7 +75,7 @@ class XmppConnectionTest : public testing::Test { protected: XmppConnectionTest() : mock_pre_xmpp_auth_(new MockPreXmppAuth()), - url_request_context_getter_(new TestURLRequestContextGetter( + url_request_context_getter_(new net::TestURLRequestContextGetter( message_loop_.message_loop_proxy())) {} virtual ~XmppConnectionTest() {} @@ -89,7 +89,7 @@ class XmppConnectionTest : public testing::Test { MessageLoop message_loop_; MockXmppConnectionDelegate mock_xmpp_connection_delegate_; scoped_ptr<MockPreXmppAuth> mock_pre_xmpp_auth_; - scoped_refptr<TestURLRequestContextGetter> url_request_context_getter_; + scoped_refptr<net::TestURLRequestContextGetter> url_request_context_getter_; }; TEST_F(XmppConnectionTest, CreateDestroy) { diff --git a/jingle/notifier/communicator/single_login_attempt_unittest.cc b/jingle/notifier/communicator/single_login_attempt_unittest.cc index 7b35c3c..bc6f2df 100644 --- a/jingle/notifier/communicator/single_login_attempt_unittest.cc +++ b/jingle/notifier/communicator/single_login_attempt_unittest.cc @@ -70,7 +70,7 @@ class FakeDelegate : public SingleLoginAttempt::Delegate { ServerInformation redirect_server_; }; -class MyTestURLRequestContext : public TestURLRequestContext { +class MyTestURLRequestContext : public net::TestURLRequestContext { public: MyTestURLRequestContext() : TestURLRequestContext(true) { context_storage_.set_host_resolver( @@ -85,9 +85,10 @@ class SingleLoginAttemptTest : public ::testing::Test { SingleLoginAttemptTest() : login_settings_( buzz::XmppClientSettings(), - new TestURLRequestContextGetter( + new net::TestURLRequestContextGetter( base::MessageLoopProxy::current(), - scoped_ptr<TestURLRequestContext>(new MyTestURLRequestContext())), + scoped_ptr<net::TestURLRequestContext>( + new MyTestURLRequestContext())), ServerList( 1, ServerInformation( diff --git a/jingle/notifier/listener/push_client_unittest.cc b/jingle/notifier/listener/push_client_unittest.cc index 42daf2a..44d4d98 100644 --- a/jingle/notifier/listener/push_client_unittest.cc +++ b/jingle/notifier/listener/push_client_unittest.cc @@ -22,7 +22,8 @@ class PushClientTest : public testing::Test { protected: PushClientTest() { notifier_options_.request_context_getter = - new TestURLRequestContextGetter(message_loop_.message_loop_proxy()); + new net::TestURLRequestContextGetter( + message_loop_.message_loop_proxy()); } virtual ~PushClientTest() {} diff --git a/jingle/notifier/listener/xmpp_push_client_unittest.cc b/jingle/notifier/listener/xmpp_push_client_unittest.cc index 3beb488..c4d53de 100644 --- a/jingle/notifier/listener/xmpp_push_client_unittest.cc +++ b/jingle/notifier/listener/xmpp_push_client_unittest.cc @@ -34,7 +34,8 @@ class XmppPushClientTest : public testing::Test { protected: XmppPushClientTest() { notifier_options_.request_context_getter = - new TestURLRequestContextGetter(message_loop_.message_loop_proxy()); + new net::TestURLRequestContextGetter( + message_loop_.message_loop_proxy()); } virtual ~XmppPushClientTest() {} |