diff options
author | ahendrickson@google.com <ahendrickson@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-14 12:05:46 +0000 |
---|---|---|
committer | ahendrickson@google.com <ahendrickson@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-14 12:05:46 +0000 |
commit | cdefd290237bd985d2bc8bfd133e184da524f12c (patch) | |
tree | 87ee8e3a3dc53757ab0072cf3267375a859b864b /net/http/http_auth_gssapi_posix_unittest.cc | |
parent | d0f4b0e5b86ef0ef181d0b23257f321ae2e9fc51 (diff) | |
download | chromium_src-cdefd290237bd985d2bc8bfd133e184da524f12c.zip chromium_src-cdefd290237bd985d2bc8bfd133e184da524f12c.tar.gz chromium_src-cdefd290237bd985d2bc8bfd133e184da524f12c.tar.bz2 |
Improved library loading to bypass libraries that don't contain all the function symbols we need.
Warnings on GSSAPI load failure.
Fixed potential memory leak.
BUG=33033.
TEST=None.
Review URL: http://codereview.chromium.org/2706003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49678 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_gssapi_posix_unittest.cc')
-rw-r--r-- | net/http/http_auth_gssapi_posix_unittest.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/net/http/http_auth_gssapi_posix_unittest.cc b/net/http/http_auth_gssapi_posix_unittest.cc index f7a010c..87ff1af 100644 --- a/net/http/http_auth_gssapi_posix_unittest.cc +++ b/net/http/http_auth_gssapi_posix_unittest.cc @@ -4,6 +4,7 @@ #include "net/http/http_auth_gssapi_posix.h" +#include "base/logging.h" #include "base/native_library.h" #include "testing/gtest/include/gtest/gtest.h" @@ -13,13 +14,9 @@ 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()); + DCHECK(gssapi); + gssapi->Init(); } } // namespace net |