OLD | NEW |
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/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 <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/base64.h" | 13 #include "base/base64.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
16 #include "base/sys_byteorder.h" | 16 #include "base/sys_byteorder.h" |
17 #include "net/http/transport_security_state.h" | 17 #include "net/http/transport_security_state.h" |
18 #include "net/spdy/spdy_flags.h" | 18 #include "net/spdy/chromium/spdy_flags.h" |
19 #include "net/ssl/ssl_info.h" | 19 #include "net/ssl/ssl_info.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 | 21 |
22 namespace net { | 22 namespace net { |
23 namespace test { | 23 namespace test { |
24 | 24 |
25 SpdyString HexDumpWithMarks(const unsigned char* data, | 25 SpdyString HexDumpWithMarks(const unsigned char* data, |
26 int length, | 26 int length, |
27 const bool* marks, | 27 const bool* marks, |
28 int mark_length) { | 28 int mark_length) { |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 bool TestServerPushDelegate::CancelPush(GURL url) { | 175 bool TestServerPushDelegate::CancelPush(GURL url) { |
176 auto itr = push_helpers.find(url); | 176 auto itr = push_helpers.find(url); |
177 DCHECK(itr != push_helpers.end()); | 177 DCHECK(itr != push_helpers.end()); |
178 itr->second->Cancel(); | 178 itr->second->Cancel(); |
179 push_helpers.erase(itr); | 179 push_helpers.erase(itr); |
180 return true; | 180 return true; |
181 } | 181 } |
182 | 182 |
183 } // namespace test | 183 } // namespace test |
184 } // namespace net | 184 } // namespace net |
OLD | NEW |