| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
| 6 #include "net/base/mock_host_resolver.h" | |
| 7 #include "net/base/net_errors.h" | 6 #include "net/base/net_errors.h" |
| 7 #include "net/dns/mock_host_resolver.h" |
| 8 #include "net/http/http_auth_handler.h" | 8 #include "net/http/http_auth_handler.h" |
| 9 #include "net/http/http_auth_handler_factory.h" | 9 #include "net/http/http_auth_handler_factory.h" |
| 10 #include "net/http/mock_allow_url_security_manager.h" | 10 #include "net/http/mock_allow_url_security_manager.h" |
| 11 #include "net/http/url_security_manager.h" | 11 #include "net/http/url_security_manager.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 EXPECT_TRUE(handler->encrypts_identity()); | 181 EXPECT_TRUE(handler->encrypts_identity()); |
| 182 EXPECT_TRUE(handler->is_connection_based()); | 182 EXPECT_TRUE(handler->is_connection_based()); |
| 183 #else | 183 #else |
| 184 EXPECT_EQ(ERR_UNSUPPORTED_AUTH_SCHEME, rv); | 184 EXPECT_EQ(ERR_UNSUPPORTED_AUTH_SCHEME, rv); |
| 185 EXPECT_TRUE(handler.get() == NULL); | 185 EXPECT_TRUE(handler.get() == NULL); |
| 186 #endif // defined(USE_KERBEROS) | 186 #endif // defined(USE_KERBEROS) |
| 187 } | 187 } |
| 188 } | 188 } |
| 189 | 189 |
| 190 } // namespace net | 190 } // namespace net |
| OLD | NEW |