summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorcbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 14:06:28 +0000
committercbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 14:06:28 +0000
commit4381188380d1fd905a5810a7ec325b801dc1852e (patch)
tree75aae6ef983348e83fe1b25f2f05c0d73867766d /net
parent35ffc7f6f3d2187c008b18825e0fc5c951dfc8b7 (diff)
downloadchromium_src-4381188380d1fd905a5810a7ec325b801dc1852e.zip
chromium_src-4381188380d1fd905a5810a7ec325b801dc1852e.tar.gz
chromium_src-4381188380d1fd905a5810a7ec325b801dc1852e.tar.bz2
Change some EXPECT's to ASSERT's in http_auth_handler_factory_unittest.cc
I tripped upon this when I temporarily disabled Negotiate authentication to track down an NTLM bug. BUG=None TEST=net_unittests doesn't crash when HttpAuthHandlerNegotiate::Init returns false. Review URL: http://codereview.chromium.org/3085017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55221 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/http/http_auth_handler_factory_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/http/http_auth_handler_factory_unittest.cc b/net/http/http_auth_handler_factory_unittest.cc
index 8dd37f0..f845c8a 100644
--- a/net/http/http_auth_handler_factory_unittest.cc
+++ b/net/http/http_auth_handler_factory_unittest.cc
@@ -111,7 +111,7 @@ TEST(HttpAuthHandlerFactoryTest, DefaultFactory) {
BoundNetLog(),
&handler);
EXPECT_EQ(OK, rv);
- EXPECT_FALSE(handler.get() == NULL);
+ ASSERT_FALSE(handler.get() == NULL);
EXPECT_STREQ("basic", handler->scheme().c_str());
EXPECT_STREQ("FooBar", handler->realm().c_str());
EXPECT_EQ(HttpAuth::AUTH_SERVER, handler->target());
@@ -138,7 +138,7 @@ TEST(HttpAuthHandlerFactoryTest, DefaultFactory) {
BoundNetLog(),
&handler);
EXPECT_EQ(OK, rv);
- EXPECT_FALSE(handler.get() == NULL);
+ ASSERT_FALSE(handler.get() == NULL);
EXPECT_STREQ("digest", handler->scheme().c_str());
EXPECT_STREQ("FooBar", handler->realm().c_str());
EXPECT_EQ(HttpAuth::AUTH_PROXY, handler->target());
@@ -170,7 +170,7 @@ TEST(HttpAuthHandlerFactoryTest, DefaultFactory) {
BoundNetLog(),
&handler);
EXPECT_EQ(OK, rv);
- EXPECT_FALSE(handler.get() == NULL);
+ ASSERT_FALSE(handler.get() == NULL);
EXPECT_STREQ("negotiate", handler->scheme().c_str());
EXPECT_STREQ("", handler->realm().c_str());
EXPECT_EQ(HttpAuth::AUTH_SERVER, handler->target());