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 #ifndef NET_SPDY_SPDY_TEST_UTILS_H_ | 5 #ifndef NET_SPDY_SPDY_TEST_UTILS_H_ |
6 #define NET_SPDY_SPDY_TEST_UTILS_H_ | 6 #define NET_SPDY_SPDY_TEST_UTILS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <memory> | 12 #include <memory> |
13 | 13 |
| 14 #include "net/spdy/chromium/server_push_delegate.h" |
| 15 #include "net/spdy/core/spdy_bug_tracker.h" |
| 16 #include "net/spdy/core/spdy_header_block.h" |
| 17 #include "net/spdy/core/spdy_headers_handler_interface.h" |
| 18 #include "net/spdy/core/spdy_protocol.h" |
14 #include "net/spdy/platform/api/spdy_string.h" | 19 #include "net/spdy/platform/api/spdy_string.h" |
15 #include "net/spdy/platform/api/spdy_string_piece.h" | 20 #include "net/spdy/platform/api/spdy_string_piece.h" |
16 #include "net/spdy/server_push_delegate.h" | |
17 #include "net/spdy/spdy_bug_tracker.h" | |
18 #include "net/spdy/spdy_header_block.h" | |
19 #include "net/spdy/spdy_headers_handler_interface.h" | |
20 #include "net/spdy/spdy_protocol.h" | |
21 #include "net/test/gtest_util.h" | 21 #include "net/test/gtest_util.h" |
22 | 22 |
23 #define EXPECT_SPDY_BUG EXPECT_DFATAL | 23 #define EXPECT_SPDY_BUG EXPECT_DFATAL |
24 | 24 |
25 namespace net { | 25 namespace net { |
26 | 26 |
27 class HashValue; | 27 class HashValue; |
28 class TransportSecurityState; | 28 class TransportSecurityState; |
29 | 29 |
30 inline bool operator==(SpdyStringPiece x, | 30 inline bool operator==(SpdyStringPiece x, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 bool CancelPush(GURL url); | 106 bool CancelPush(GURL url); |
107 | 107 |
108 private: | 108 private: |
109 std::map<GURL, std::unique_ptr<ServerPushHelper>> push_helpers; | 109 std::map<GURL, std::unique_ptr<ServerPushHelper>> push_helpers; |
110 }; | 110 }; |
111 | 111 |
112 } // namespace test | 112 } // namespace test |
113 } // namespace net | 113 } // namespace net |
114 | 114 |
115 #endif // NET_SPDY_SPDY_TEST_UTILS_H_ | 115 #endif // NET_SPDY_SPDY_TEST_UTILS_H_ |
OLD | NEW |