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

Unified Diff: net/quic/test_tools/quic_stream_factory_peer.cc

Issue 2417183003: Remove stl_util's deletion functions from remaining quic code. (Closed)
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/quic_unacked_packet_map_test.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/quic_stream_factory_peer.cc
diff --git a/net/quic/test_tools/quic_stream_factory_peer.cc b/net/quic/test_tools/quic_stream_factory_peer.cc
index 0ea8fcd2729380b27f7e8fdad42980669e5d108d..94dd59bd0ae71b0413513e5949be5ffd44ccef1a 100644
--- a/net/quic/test_tools/quic_stream_factory_peer.cc
+++ b/net/quic/test_tools/quic_stream_factory_peer.cc
@@ -122,7 +122,10 @@ void QuicStreamFactoryPeer::SetYieldAfterDuration(
size_t QuicStreamFactoryPeer::GetNumberOfActiveJobs(
QuicStreamFactory* factory,
const QuicServerId& server_id) {
- return (factory->active_jobs_[server_id]).size();
+ auto it = factory->active_jobs_.find(server_id);
+ if (it == factory->active_jobs_.end())
+ return 0;
+ return it->second.size();
}
void QuicStreamFactoryPeer::MaybeInitialize(QuicStreamFactory* factory) {
« no previous file with comments | « net/quic/core/quic_unacked_packet_map_test.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698