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

Unified Diff: net/http/http_auth_gssapi_posix_unittest.cc

Issue 4560001: Support specifying the GSSAPI library that will be used. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fix another compile error on Windows Created 10 years, 1 month 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_gssapi_posix.cc ('k') | net/http/http_auth_handler_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_gssapi_posix_unittest.cc
diff --git a/net/http/http_auth_gssapi_posix_unittest.cc b/net/http/http_auth_gssapi_posix_unittest.cc
index 62bae711ca9ff375d7df5bc2b4f9910e94ec73b5..f83acb4cdd58d360bb70a6c26b72f96f6f6add8b 100644
--- a/net/http/http_auth_gssapi_posix_unittest.cc
+++ b/net/http/http_auth_gssapi_posix_unittest.cc
@@ -76,9 +76,15 @@ TEST(HttpAuthGSSAPIPOSIXTest, GSSAPIStartup) {
// TODO(ahendrickson): Manipulate the libraries and paths to test each of the
// libraries we expect, and also whether or not they have the interface
// functions we want.
- GSSAPILibrary* gssapi = GSSAPILibrary::GetDefault();
- DCHECK(gssapi);
- gssapi->Init();
+ scoped_ptr<GSSAPILibrary> gssapi(new GSSAPISharedLibrary(""));
+ DCHECK(gssapi.get());
+ DCHECK(gssapi.get()->Init());
+}
+
+TEST(HttpAuthGSSAPIPOSIXTest, GSSAPILoadCustomLibrary) {
+ scoped_ptr<GSSAPILibrary> gssapi(
+ new GSSAPISharedLibrary("/this/library/does/not/exist"));
+ DCHECK(!gssapi.get()->Init());
}
TEST(HttpAuthGSSAPIPOSIXTest, GSSAPICycle) {
« no previous file with comments | « net/http/http_auth_gssapi_posix.cc ('k') | net/http/http_auth_handler_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698