Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(764)

Unified Diff: net/http/http_auth_handler_negotiate_unittest.cc

Issue 7655046: Linux: allow linking directly with Kerberos instead of using dlopen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Hopefully fix ChromeOS Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_auth_handler_factory.cc ('k') | net/http/mock_gssapi_library_posix.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_handler_negotiate_unittest.cc
diff --git a/net/http/http_auth_handler_negotiate_unittest.cc b/net/http/http_auth_handler_negotiate_unittest.cc
index 1d3de4ea79c9f5c5af9e8a30aa25c0bf6778a30c..63eab929ff8e442a6be2e1efb63bf7cd3e50ee10 100644
--- a/net/http/http_auth_handler_negotiate_unittest.cc
+++ b/net/http/http_auth_handler_negotiate_unittest.cc
@@ -15,7 +15,6 @@
#include "net/http/mock_sspi_library_win.h"
#elif defined(OS_POSIX)
#include "net/http/mock_gssapi_library_posix.h"
-#include "net/third_party/gssapi/gssapi.h"
#endif
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
@@ -26,7 +25,6 @@ typedef net::MockSSPILibrary MockAuthLibrary;
typedef net::test::MockGSSAPILibrary MockAuthLibrary;
#endif
-
namespace net {
class HttpAuthHandlerNegotiateTest : public PlatformTest {
@@ -345,6 +343,7 @@ TEST_F(HttpAuthHandlerNegotiateTest, NoKerberosCredentials) {
EXPECT_EQ(ERR_MISSING_AUTH_CREDENTIALS, callback.WaitForResult());
}
+#if defined(DLOPEN_KERBEROS)
TEST_F(HttpAuthHandlerNegotiateTest, MissingGSSAPI) {
scoped_ptr<HostResolver> host_resolver(new MockHostResolver());
MockAllowURLSecurityManager url_security_manager;
@@ -366,6 +365,7 @@ TEST_F(HttpAuthHandlerNegotiateTest, MissingGSSAPI) {
EXPECT_EQ(ERR_UNSUPPORTED_AUTH_SCHEME, rv);
EXPECT_TRUE(generic_handler.get() == NULL);
}
+#endif // defined(DLOPEN_KERBEROS)
#endif // defined(OS_POSIX)
« no previous file with comments | « net/http/http_auth_handler_factory.cc ('k') | net/http/mock_gssapi_library_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698