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

Side by Side Diff: net/spdy/core/spdy_test_utils.cc

Issue 2840563003: Implement SpdyMakeUnique and SpdyWrapUnique. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « net/spdy/core/spdy_protocol.cc ('k') | net/spdy/platform/api/spdy_ptr_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/core/spdy_test_utils.h" 5 #include "net/spdy/core/spdy_test_utils.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstring> 8 #include <cstring>
9 #include <memory> 9 #include <memory>
10 #include <new>
10 #include <utility> 11 #include <utility>
11 #include <vector> 12 #include <vector>
12 13
13 #include "base/base64.h" 14 #include "base/base64.h"
14 #include "base/logging.h" 15 #include "base/logging.h"
15 #include "base/strings/string_number_conversions.h" 16 #include "base/strings/string_number_conversions.h"
16 #include "base/sys_byteorder.h" 17 #include "base/sys_byteorder.h"
17 #include "net/http/transport_security_state.h" 18 #include "net/http/transport_security_state.h"
18 #include "net/spdy/chromium/spdy_flags.h" 19 #include "net/spdy/chromium/spdy_flags.h"
19 #include "net/ssl/ssl_info.h" 20 #include "net/ssl/ssl_info.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 bool TestServerPushDelegate::CancelPush(GURL url) { 176 bool TestServerPushDelegate::CancelPush(GURL url) {
176 auto itr = push_helpers.find(url); 177 auto itr = push_helpers.find(url);
177 DCHECK(itr != push_helpers.end()); 178 DCHECK(itr != push_helpers.end());
178 itr->second->Cancel(); 179 itr->second->Cancel();
179 push_helpers.erase(itr); 180 push_helpers.erase(itr);
180 return true; 181 return true;
181 } 182 }
182 183
183 } // namespace test 184 } // namespace test
184 } // namespace net 185 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/core/spdy_protocol.cc ('k') | net/spdy/platform/api/spdy_ptr_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698