| 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
|
|
|