| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CONTENT_TEST_WEBURL_LOADER_MOCK_FACTORY_H_ | 5 #ifndef CONTENT_TEST_WEBURL_LOADER_MOCK_FACTORY_H_ |
| 6 #define CONTENT_TEST_WEBURL_LOADER_MOCK_FACTORY_H_ | 6 #define CONTENT_TEST_WEBURL_LOADER_MOCK_FACTORY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/macros.h" |
| 11 #include "third_party/WebKit/public/platform/WebURL.h" | 12 #include "third_party/WebKit/public/platform/WebURL.h" |
| 12 #include "third_party/WebKit/public/platform/WebURLError.h" | 13 #include "third_party/WebKit/public/platform/WebURLError.h" |
| 13 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 14 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 14 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 15 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
| 15 | 16 |
| 16 namespace blink { | 17 namespace blink { |
| 17 class WebData; | 18 class WebData; |
| 18 class WebURLLoader; | 19 class WebURLLoader; |
| 19 class WebURLLoaderTestDelegate; | 20 class WebURLLoaderTestDelegate; |
| 20 } | 21 } |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 112 |
| 112 // Table of the registered URLs and the responses that they should receive. | 113 // Table of the registered URLs and the responses that they should receive. |
| 113 typedef std::map<GURL, ResponseInfo> URLToResponseMap; | 114 typedef std::map<GURL, ResponseInfo> URLToResponseMap; |
| 114 URLToResponseMap url_to_reponse_info_; | 115 URLToResponseMap url_to_reponse_info_; |
| 115 | 116 |
| 116 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderMockFactory); | 117 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderMockFactory); |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 #endif // CONTENT_TEST_WEBURL_LOADER_MOCK_FACTORY_H_ | 120 #endif // CONTENT_TEST_WEBURL_LOADER_MOCK_FACTORY_H_ |
| 120 | 121 |
| OLD | NEW |