OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // A URLRequestJob class that simulates network errors (including https | 5 // A net::URLRequestJob class that simulates network errors (including https |
6 // related). | 6 // related). |
7 // It is based on URLRequestMockHttpJob. | 7 // It is based on URLRequestMockHttpJob. |
8 | 8 |
9 #ifndef CHROME_BROWSER_NET_URL_REQUEST_MOCK_NET_ERROR_JOB_H_ | 9 #ifndef CHROME_BROWSER_NET_URL_REQUEST_MOCK_NET_ERROR_JOB_H_ |
10 #define CHROME_BROWSER_NET_URL_REQUEST_MOCK_NET_ERROR_JOB_H_ | 10 #define CHROME_BROWSER_NET_URL_REQUEST_MOCK_NET_ERROR_JOB_H_ |
11 #pragma once | 11 #pragma once |
12 | 12 |
13 #include "chrome/browser/net/url_request_mock_http_job.h" | 13 #include "chrome/browser/net/url_request_mock_http_job.h" |
14 | 14 |
15 class URLRequestMockNetErrorJob : public URLRequestMockHTTPJob { | 15 class URLRequestMockNetErrorJob : public URLRequestMockHTTPJob { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 scoped_refptr<net::X509Certificate> ssl_cert_; | 50 scoped_refptr<net::X509Certificate> ssl_cert_; |
51 | 51 |
52 struct MockInfo; | 52 struct MockInfo; |
53 typedef std::map<GURL, MockInfo> URLMockInfoMap; | 53 typedef std::map<GURL, MockInfo> URLMockInfoMap; |
54 static URLMockInfoMap url_mock_info_map_; | 54 static URLMockInfoMap url_mock_info_map_; |
55 | 55 |
56 DISALLOW_COPY_AND_ASSIGN(URLRequestMockNetErrorJob); | 56 DISALLOW_COPY_AND_ASSIGN(URLRequestMockNetErrorJob); |
57 }; | 57 }; |
58 | 58 |
59 #endif // CHROME_BROWSER_NET_URL_REQUEST_MOCK_NET_ERROR_JOB_H_ | 59 #endif // CHROME_BROWSER_NET_URL_REQUEST_MOCK_NET_ERROR_JOB_H_ |
OLD | NEW |