diff options
author | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-31 21:37:37 +0000 |
---|---|---|
committer | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-31 21:37:37 +0000 |
commit | 0773a48a45b02c953458ccb446b556ba03c28073 (patch) | |
tree | 1d56333559a2db9e84812e9992a70e8c4f20304f /net/http/http_auth_gssapi_posix_unittest.cc | |
parent | 1bbe43b899a2274befb535c1854acd0bc59541c5 (diff) | |
download | chromium_src-0773a48a45b02c953458ccb446b556ba03c28073.zip chromium_src-0773a48a45b02c953458ccb446b556ba03c28073.tar.gz chromium_src-0773a48a45b02c953458ccb446b556ba03c28073.tar.bz2 |
Fail with ERR_UNSUPPORTED_AUTH_SCHEME instead of ERR_INVALID_RESPONSE
if the computer doesn't have a GSSAPI library.
Use EXPECT instead of DCHECK in unit tests.
The new unit test was originally reviewed in
http://codereview.chromium.org/6975049/
R=cbentzel@chromium.org,ahendrickson@chromium.org
BUG=84492
TEST=net_unittests --gtest_filter=HttpAuthHandlerNegotiateTest.MissingGSSAPI
Review URL: http://codereview.chromium.org/7087007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87368 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_gssapi_posix_unittest.cc')
-rw-r--r-- | net/http/http_auth_gssapi_posix_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/http/http_auth_gssapi_posix_unittest.cc b/net/http/http_auth_gssapi_posix_unittest.cc index 01a62b3..c3f9f75 100644 --- a/net/http/http_auth_gssapi_posix_unittest.cc +++ b/net/http/http_auth_gssapi_posix_unittest.cc @@ -78,13 +78,13 @@ TEST(HttpAuthGSSAPIPOSIXTest, GSSAPIStartup) { // functions we want. scoped_ptr<GSSAPILibrary> gssapi(new GSSAPISharedLibrary("")); DCHECK(gssapi.get()); - DCHECK(gssapi.get()->Init()); + EXPECT_TRUE(gssapi.get()->Init()); } TEST(HttpAuthGSSAPIPOSIXTest, GSSAPILoadCustomLibrary) { scoped_ptr<GSSAPILibrary> gssapi( new GSSAPISharedLibrary("/this/library/does/not/exist")); - DCHECK(!gssapi.get()->Init()); + EXPECT_FALSE(gssapi.get()->Init()); } TEST(HttpAuthGSSAPIPOSIXTest, GSSAPICycle) { |