diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-25 23:48:06 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-25 23:48:06 +0000 |
commit | 472ce96a4b839814ed93c26d35d07c78de019b17 (patch) | |
tree | 8355f2a490ce20c4be7485f40505544e3d602a26 /net/http/http_auth_unittest.cc | |
parent | b597956cd427a3b830a498c69602753ce6117119 (diff) | |
download | chromium_src-472ce96a4b839814ed93c26d35d07c78de019b17.zip chromium_src-472ce96a4b839814ed93c26d35d07c78de019b17.tar.gz chromium_src-472ce96a4b839814ed93c26d35d07c78de019b17.tar.bz2 |
Clean up net unit testing code.
- Move code included from blah_unittest.h (where blah_unittest.cc has actual
unittests) into their own files, often completely out-of-lining the
definitions.
- Remove anonymous namespaces from headers.
- Reorder method declarations.
- Make other unit test link against net_test_support instead of reaching in and
including .h files in their targets directly.
BUG=68682
TEST=compiles
Review URL: http://codereview.chromium.org/6264013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72562 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_unittest.cc')
-rw-r--r-- | net/http/http_auth_unittest.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/http/http_auth_unittest.cc b/net/http/http_auth_unittest.cc index f45d215..6788be2 100644 --- a/net/http/http_auth_unittest.cc +++ b/net/http/http_auth_unittest.cc @@ -17,6 +17,7 @@ #include "net/http/http_auth_handler_mock.h" #include "net/http/http_response_headers.h" #include "net/http/http_util.h" +#include "net/http/mock_allow_url_security_manager.h" #include "testing/gtest/include/gtest/gtest.h" namespace net { @@ -115,7 +116,7 @@ TEST(HttpAuthTest, ChooseBestChallenge) { }; GURL origin("http://www.example.com"); std::set<HttpAuth::Scheme> disabled_schemes; - URLSecurityManagerAllow url_security_manager; + MockAllowURLSecurityManager url_security_manager; scoped_ptr<HostResolver> host_resolver(new MockHostResolver()); scoped_ptr<HttpAuthHandlerRegistryFactory> http_auth_handler_factory( HttpAuthHandlerFactory::CreateDefault(host_resolver.get())); |