OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/http/http_auth_handler_negotiate.h" | 5 #include "net/http/http_auth_handler_negotiate.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
13 #include "net/base/test_completion_callback.h" | 13 #include "net/base/test_completion_callback.h" |
14 #include "net/dns/mock_host_resolver.h" | 14 #include "net/dns/mock_host_resolver.h" |
15 #include "net/http/http_request_info.h" | 15 #include "net/http/http_request_info.h" |
16 #include "net/http/mock_allow_http_auth_preferences.h" | 16 #include "net/http/mock_allow_http_auth_preferences.h" |
| 17 #include "net/log/net_log_with_source.h" |
17 #include "net/ssl/ssl_info.h" | 18 #include "net/ssl/ssl_info.h" |
18 #include "net/test/gtest_util.h" | 19 #include "net/test/gtest_util.h" |
19 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
21 #include "testing/platform_test.h" | 22 #include "testing/platform_test.h" |
22 | 23 |
23 #if defined(OS_ANDROID) | 24 #if defined(OS_ANDROID) |
24 #include "net/android/dummy_spnego_authenticator.h" | 25 #include "net/android/dummy_spnego_authenticator.h" |
25 #elif defined(OS_WIN) | 26 #elif defined(OS_WIN) |
26 #include "net/http/mock_sspi_library_win.h" | 27 #include "net/http/mock_sspi_library_win.h" |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 "Negotiate", HttpAuth::AUTH_SERVER, gurl, NetLogWithSource(), | 385 "Negotiate", HttpAuth::AUTH_SERVER, gurl, NetLogWithSource(), |
385 &generic_handler); | 386 &generic_handler); |
386 EXPECT_THAT(rv, IsError(ERR_UNSUPPORTED_AUTH_SCHEME)); | 387 EXPECT_THAT(rv, IsError(ERR_UNSUPPORTED_AUTH_SCHEME)); |
387 EXPECT_TRUE(generic_handler.get() == NULL); | 388 EXPECT_TRUE(generic_handler.get() == NULL); |
388 } | 389 } |
389 #endif // defined(DLOPEN_KERBEROS) | 390 #endif // defined(DLOPEN_KERBEROS) |
390 | 391 |
391 #endif // defined(OS_POSIX) | 392 #endif // defined(OS_POSIX) |
392 | 393 |
393 } // namespace net | 394 } // namespace net |
OLD | NEW |