diff options
Diffstat (limited to 'net/http/http_auth_gssapi_posix_unittest.cc')
-rw-r--r-- | net/http/http_auth_gssapi_posix_unittest.cc | 25 |
1 files changed, 25 insertions, 0 deletions
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 0000000..f7a010c --- /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 |