| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 SimNetwork_h | 5 #ifndef SimNetwork_h |
| 6 #define SimNetwork_h | 6 #define SimNetwork_h |
| 7 | 7 |
| 8 #include "platform/wtf/HashMap.h" |
| 9 #include "platform/wtf/text/StringHash.h" |
| 10 #include "platform/wtf/text/WTFString.h" |
| 8 #include "public/platform/WebURLLoaderTestDelegate.h" | 11 #include "public/platform/WebURLLoaderTestDelegate.h" |
| 9 #include "wtf/HashMap.h" | |
| 10 #include "wtf/text/StringHash.h" | |
| 11 #include "wtf/text/WTFString.h" | |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class SimRequest; | 15 class SimRequest; |
| 16 class WebURLLoaderClient; | 16 class WebURLLoaderClient; |
| 17 class WebURLResponse; | 17 class WebURLResponse; |
| 18 | 18 |
| 19 // Simulates a network with precise flow control so you can make requests | 19 // Simulates a network with precise flow control so you can make requests |
| 20 // return, write data, and finish in a specific order in a unit test. One of | 20 // return, write data, and finish in a specific order in a unit test. One of |
| 21 // these must be created before using the SimRequest to issue requests. | 21 // these must be created before using the SimRequest to issue requests. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 48 int64_t totalEncodedDataLength, | 48 int64_t totalEncodedDataLength, |
| 49 int64_t totalEncodedBodyLength) override; | 49 int64_t totalEncodedBodyLength) override; |
| 50 | 50 |
| 51 SimRequest* m_currentRequest; | 51 SimRequest* m_currentRequest; |
| 52 HashMap<String, SimRequest*> m_requests; | 52 HashMap<String, SimRequest*> m_requests; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace blink | 55 } // namespace blink |
| 56 | 56 |
| 57 #endif | 57 #endif |
| OLD | NEW |