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

Side by Side Diff: net/http/http_auth_handler_factory_unittest.cc

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 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
OLDNEW
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 "net/http/http_auth_handler_factory.h" 5 #include "net/http/http_auth_handler_factory.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "net/dns/mock_host_resolver.h" 10 #include "net/dns/mock_host_resolver.h"
11 #include "net/http/http_auth_handler.h" 11 #include "net/http/http_auth_handler.h"
12 #include "net/http/http_auth_scheme.h" 12 #include "net/http/http_auth_scheme.h"
13 #include "net/http/mock_allow_http_auth_preferences.h" 13 #include "net/http/mock_allow_http_auth_preferences.h"
14 #include "net/http/url_security_manager.h" 14 #include "net/http/url_security_manager.h"
15 #include "net/log/net_log_with_source.h"
15 #include "net/ssl/ssl_info.h" 16 #include "net/ssl/ssl_info.h"
16 #include "net/test/gtest_util.h" 17 #include "net/test/gtest_util.h"
17 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
18 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
19 20
20 using net::test::IsError; 21 using net::test::IsError;
21 using net::test::IsOk; 22 using net::test::IsOk;
22 23
23 namespace net { 24 namespace net {
24 25
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 EXPECT_TRUE(handler->encrypts_identity()); 181 EXPECT_TRUE(handler->encrypts_identity());
181 EXPECT_TRUE(handler->is_connection_based()); 182 EXPECT_TRUE(handler->is_connection_based());
182 #else 183 #else
183 EXPECT_THAT(rv, IsError(ERR_UNSUPPORTED_AUTH_SCHEME)); 184 EXPECT_THAT(rv, IsError(ERR_UNSUPPORTED_AUTH_SCHEME));
184 EXPECT_TRUE(handler.get() == NULL); 185 EXPECT_TRUE(handler.get() == NULL);
185 #endif // defined(USE_KERBEROS) && !defined(OS_ANDROID) 186 #endif // defined(USE_KERBEROS) && !defined(OS_ANDROID)
186 } 187 }
187 } 188 }
188 189
189 } // namespace net 190 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698