OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "net/http/http_auth_gssapi_posix.h" |
| 6 |
| 7 #include "base/native_library.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 |
| 10 namespace net { |
| 11 |
| 12 TEST(HttpAuthGSSAPIPOSIXTest, GSSAPIStartup) { |
| 13 // TODO(ahendrickson): Manipulate the libraries and paths to test each of the |
| 14 // libraries we expect, and also whether or not they have the interface |
| 15 // functions we want. |
| 16 base::NativeLibrary lib = GSSAPISharedLibrary::LoadSharedObject(); |
| 17 bool has_library = (lib != NULL); |
| 18 if (has_library) { |
| 19 base::UnloadNativeLibrary(lib); |
| 20 } |
| 21 GSSAPILibrary* gssapi = GSSAPILibrary::GetDefault(); |
| 22 EXPECT_EQ(has_library, gssapi->Init()); |
| 23 } |
| 24 |
| 25 } // namespace net |
OLD | NEW |