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

Side by Side Diff: net/spdy/spdy_session_pool_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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/spdy/spdy_session_pool.h" 5 #include "net/spdy/spdy_session_pool.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/run_loop.h" 14 #include "base/run_loop.h"
15 #include "net/dns/host_cache.h" 15 #include "net/dns/host_cache.h"
16 #include "net/http/http_network_session.h" 16 #include "net/http/http_network_session.h"
17 #include "net/log/net_log_with_source.h"
17 #include "net/socket/client_socket_handle.h" 18 #include "net/socket/client_socket_handle.h"
18 #include "net/socket/transport_client_socket_pool.h" 19 #include "net/socket/transport_client_socket_pool.h"
19 #include "net/spdy/spdy_session.h" 20 #include "net/spdy/spdy_session.h"
20 #include "net/spdy/spdy_stream_test_util.h" 21 #include "net/spdy/spdy_stream_test_util.h"
21 #include "net/spdy/spdy_test_util_common.h" 22 #include "net/spdy/spdy_test_util_common.h"
22 #include "net/test/cert_test_util.h" 23 #include "net/test/cert_test_util.h"
23 #include "net/test/gtest_util.h" 24 #include "net/test/gtest_util.h"
24 #include "net/test/test_data_directory.h" 25 #include "net/test/test_data_directory.h"
25 #include "testing/gmock/include/gmock/gmock.h" 26 #include "testing/gmock/include/gmock/gmock.h"
26 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 // there is no pushed stream on any sessions owned by |spdy_session_pool_|. 665 // there is no pushed stream on any sessions owned by |spdy_session_pool_|.
665 base::WeakPtr<SpdySession> session2 = 666 base::WeakPtr<SpdySession> session2 =
666 spdy_session_pool_->FindAvailableSession( 667 spdy_session_pool_->FindAvailableSession(
667 key, GURL("http://news.example.org/foo.html"), NetLogWithSource()); 668 key, GURL("http://news.example.org/foo.html"), NetLogWithSource());
668 EXPECT_EQ(session.get(), session2.get()); 669 EXPECT_EQ(session.get(), session2.get());
669 670
670 spdy_session_pool_->CloseCurrentSessions(ERR_ABORTED); 671 spdy_session_pool_->CloseCurrentSessions(ERR_ABORTED);
671 } 672 }
672 673
673 } // namespace net 674 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698