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

Side by Side Diff: net/http/http_stream_factory_impl_job_controller_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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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_stream_factory_impl_job_controller.h" 5 #include "net/http/http_stream_factory_impl_job_controller.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/test/histogram_tester.h" 11 #include "base/test/histogram_tester.h"
12 #include "base/threading/platform_thread.h" 12 #include "base/threading/platform_thread.h"
13 #include "net/base/test_proxy_delegate.h" 13 #include "net/base/test_proxy_delegate.h"
14 #include "net/dns/mock_host_resolver.h" 14 #include "net/dns/mock_host_resolver.h"
15 #include "net/http/http_basic_stream.h" 15 #include "net/http/http_basic_stream.h"
16 #include "net/http/http_stream_factory_impl_request.h" 16 #include "net/http/http_stream_factory_impl_request.h"
17 #include "net/http/http_stream_factory_test_util.h" 17 #include "net/http/http_stream_factory_test_util.h"
18 #include "net/log/net_log_with_source.h"
18 #include "net/proxy/mock_proxy_resolver.h" 19 #include "net/proxy/mock_proxy_resolver.h"
19 #include "net/proxy/proxy_config_service_fixed.h" 20 #include "net/proxy/proxy_config_service_fixed.h"
20 #include "net/proxy/proxy_info.h" 21 #include "net/proxy/proxy_info.h"
21 #include "net/proxy/proxy_service.h" 22 #include "net/proxy/proxy_service.h"
22 #include "net/quic/test_tools/quic_stream_factory_peer.h" 23 #include "net/quic/test_tools/quic_stream_factory_peer.h"
23 #include "net/spdy/spdy_test_util_common.h" 24 #include "net/spdy/spdy_test_util_common.h"
24 #include "testing/gmock/include/gmock/gmock.h" 25 #include "testing/gmock/include/gmock/gmock.h"
25 #include "testing/gmock_mutant.h" 26 #include "testing/gmock_mutant.h"
26 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
27 28
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 // Reset the request as it's been successfully served. 947 // Reset the request as it's been successfully served.
947 request_.reset(); 948 request_.reset();
948 EXPECT_TRUE(HttpStreamFactoryImplPeer::IsJobControllerDeleted(factory_)); 949 EXPECT_TRUE(HttpStreamFactoryImplPeer::IsJobControllerDeleted(factory_));
949 950
950 histogram_tester.ExpectUniqueSample("Net.QuicAlternativeProxy.Usage", 951 histogram_tester.ExpectUniqueSample("Net.QuicAlternativeProxy.Usage",
951 2 /* ALTERNATIVE_PROXY_USAGE_LOST_RACE */, 952 2 /* ALTERNATIVE_PROXY_USAGE_LOST_RACE */,
952 1); 953 1);
953 } 954 }
954 955
955 } // namespace net 956 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698