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

Unified Diff: net/http/http_auth_gssapi_posix_unittest.cc

Issue 1736009: Preliminary support for GSSAPI (Linux and Mac OS X). (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Bug and style fixes. Created 10 years, 7 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
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
new file mode 100644
index 0000000000000000000000000000000000000000..f7a010c80f0015562d7a174c6e97085562075d4a
--- /dev/null
+++ b/net/http/http_auth_gssapi_posix_unittest.cc
@@ -0,0 +1,25 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "net/http/http_auth_gssapi_posix.h"
+
+#include "base/native_library.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace net {
+
+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.
+ base::NativeLibrary lib = GSSAPISharedLibrary::LoadSharedObject();
+ bool has_library = (lib != NULL);
+ if (has_library) {
+ base::UnloadNativeLibrary(lib);
+ }
+ GSSAPILibrary* gssapi = GSSAPILibrary::GetDefault();
+ EXPECT_EQ(has_library, gssapi->Init());
+}
+
+} // namespace net

Powered by Google App Engine
This is Rietveld 408576698