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

Side by Side Diff: net/http/http_auth_handler_basic_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_basic.h" 5 #include "net/http/http_auth_handler_basic.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
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/http/http_auth_challenge_tokenizer.h" 14 #include "net/http/http_auth_challenge_tokenizer.h"
15 #include "net/http/http_request_info.h" 15 #include "net/http/http_request_info.h"
16 #include "net/log/net_log_with_source.h"
16 #include "net/ssl/ssl_info.h" 17 #include "net/ssl/ssl_info.h"
17 #include "net/test/gtest_util.h" 18 #include "net/test/gtest_util.h"
18 #include "testing/gmock/include/gmock/gmock.h" 19 #include "testing/gmock/include/gmock/gmock.h"
19 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
20 21
21 using net::test::IsOk; 22 using net::test::IsOk;
22 23
23 namespace net { 24 namespace net {
24 25
25 TEST(HttpAuthHandlerBasicTest, GenerateAuthToken) { 26 TEST(HttpAuthHandlerBasicTest, GenerateAuthToken) {
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 int rv = factory.CreateAuthHandlerFromString( 201 int rv = factory.CreateAuthHandlerFromString(
201 challenge, HttpAuth::AUTH_SERVER, null_ssl_info, origin, 202 challenge, HttpAuth::AUTH_SERVER, null_ssl_info, origin,
202 NetLogWithSource(), &basic); 203 NetLogWithSource(), &basic);
203 EXPECT_EQ(tests[i].expected_rv, rv); 204 EXPECT_EQ(tests[i].expected_rv, rv);
204 if (rv == OK) 205 if (rv == OK)
205 EXPECT_EQ(tests[i].expected_realm, basic->realm()); 206 EXPECT_EQ(tests[i].expected_realm, basic->realm());
206 } 207 }
207 } 208 }
208 209
209 } // namespace net 210 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698