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

Side by Side 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, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698