| OLD | NEW |
| 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 #ifndef NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
| 6 #define NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 6 #define NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 DISALLOW_COPY_AND_ASSIGN(MockECSignatureCreator); | 157 DISALLOW_COPY_AND_ASSIGN(MockECSignatureCreator); |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 // An ECSignatureCreatorFactory creates MockECSignatureCreator. | 160 // An ECSignatureCreatorFactory creates MockECSignatureCreator. |
| 161 class MockECSignatureCreatorFactory : public crypto::ECSignatureCreatorFactory { | 161 class MockECSignatureCreatorFactory : public crypto::ECSignatureCreatorFactory { |
| 162 public: | 162 public: |
| 163 MockECSignatureCreatorFactory(); | 163 MockECSignatureCreatorFactory(); |
| 164 ~MockECSignatureCreatorFactory() override; | 164 ~MockECSignatureCreatorFactory() override; |
| 165 | 165 |
| 166 // crypto::ECSignatureCreatorFactory | 166 // crypto::ECSignatureCreatorFactory |
| 167 crypto::ECSignatureCreator* Create(crypto::ECPrivateKey* key) override; | 167 std::unique_ptr<crypto::ECSignatureCreator> Create( |
| 168 crypto::ECPrivateKey* key) override; |
| 168 | 169 |
| 169 private: | 170 private: |
| 170 DISALLOW_COPY_AND_ASSIGN(MockECSignatureCreatorFactory); | 171 DISALLOW_COPY_AND_ASSIGN(MockECSignatureCreatorFactory); |
| 171 }; | 172 }; |
| 172 | 173 |
| 173 // Helper to manage the lifetimes of the dependencies for a | 174 // Helper to manage the lifetimes of the dependencies for a |
| 174 // HttpNetworkTransaction. | 175 // HttpNetworkTransaction. |
| 175 struct SpdySessionDependencies { | 176 struct SpdySessionDependencies { |
| 176 // Default set of dependencies -- "null" proxy service. | 177 // Default set of dependencies -- "null" proxy service. |
| 177 explicit SpdySessionDependencies(NextProto protocol); | 178 explicit SpdySessionDependencies(NextProto protocol); |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 GURL default_url_; | 560 GURL default_url_; |
| 560 bool dependency_priorities_; | 561 bool dependency_priorities_; |
| 561 | 562 |
| 562 // Track a FIFO list of the stream_id of all created requests by priority. | 563 // Track a FIFO list of the stream_id of all created requests by priority. |
| 563 std::map<int, std::vector<int>> priority_to_stream_id_list_; | 564 std::map<int, std::vector<int>> priority_to_stream_id_list_; |
| 564 }; | 565 }; |
| 565 | 566 |
| 566 } // namespace net | 567 } // namespace net |
| 567 | 568 |
| 568 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 569 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
| OLD | NEW |