diff options
author | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-17 15:59:08 +0000 |
---|---|---|
committer | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-17 15:59:08 +0000 |
commit | 2b0a76d0e6139fddae3266729f69bdf867ef049d (patch) | |
tree | 57e169dc9569c2ead787be2c717e7abd087252b0 /net/http/http_auth_handler_negotiate_unittest.cc | |
parent | 283da2f09f347cee77bbc0fbfcb61d4650e82e6e (diff) | |
download | chromium_src-2b0a76d0e6139fddae3266729f69bdf867ef049d.zip chromium_src-2b0a76d0e6139fddae3266729f69bdf867ef049d.tar.gz chromium_src-2b0a76d0e6139fddae3266729f69bdf867ef049d.tar.bz2 |
ASSERT_TRUE that the HttpAuthHandlerNegotiate::Factory creates non-NULL handlers.
BUG=None
TEST=net_unittests --gtest_filter="*HttpAuthHandlerNegotiate*"
Review URL: http://codereview.chromium.org/3018008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52828 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_handler_negotiate_unittest.cc')
-rw-r--r-- | net/http/http_auth_handler_negotiate_unittest.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/http/http_auth_handler_negotiate_unittest.cc b/net/http/http_auth_handler_negotiate_unittest.cc index ffc30ac..59f6155 100644 --- a/net/http/http_auth_handler_negotiate_unittest.cc +++ b/net/http/http_auth_handler_negotiate_unittest.cc @@ -26,8 +26,6 @@ typedef net::test::MockGSSAPILibrary MockSecureServicesLibrary; namespace net { -// TODO(cbentzel): Remove the OS_WIN condition once Negotiate is supported -// on all platforms. namespace { void SetupTransactions(MockSecureServicesLibrary* mock_library) { @@ -163,6 +161,7 @@ TEST(HttpAuthHandlerNegotiateTest, DisableCname) { scoped_ptr<HttpAuthHandlerNegotiate> auth_handler; CreateHandler(true, false, true, "http://alias:500", &mock_library, &auth_handler); + ASSERT_TRUE(auth_handler.get() != NULL); TestCompletionCallback callback; HttpRequestInfo request_info; std::string token; @@ -180,6 +179,7 @@ TEST(HttpAuthHandlerNegotiateTest, DisableCnameStandardPort) { scoped_ptr<HttpAuthHandlerNegotiate> auth_handler; CreateHandler(true, true, true, "http://alias:80", &mock_library, &auth_handler); + ASSERT_TRUE(auth_handler.get() != NULL); TestCompletionCallback callback; HttpRequestInfo request_info; std::string token; @@ -197,6 +197,7 @@ TEST(HttpAuthHandlerNegotiateTest, DisableCnameNonstandardPort) { scoped_ptr<HttpAuthHandlerNegotiate> auth_handler; CreateHandler(true, true, true, "http://alias:500", &mock_library, &auth_handler); + ASSERT_TRUE(auth_handler.get() != NULL); TestCompletionCallback callback; HttpRequestInfo request_info; std::string token; @@ -214,6 +215,7 @@ TEST(HttpAuthHandlerNegotiateTest, CnameSync) { scoped_ptr<HttpAuthHandlerNegotiate> auth_handler; CreateHandler(false, false, true, "http://alias:500", &mock_library, &auth_handler); + ASSERT_TRUE(auth_handler.get() != NULL); TestCompletionCallback callback; HttpRequestInfo request_info; std::string token; @@ -231,6 +233,7 @@ TEST(HttpAuthHandlerNegotiateTest, CnameAsync) { scoped_ptr<HttpAuthHandlerNegotiate> auth_handler; CreateHandler(false, false, false, "http://alias:500", &mock_library, &auth_handler); + ASSERT_TRUE(auth_handler.get() != NULL); TestCompletionCallback callback; HttpRequestInfo request_info; std::string token; |