| OLD | NEW | 
|    1 // Copyright 2016 The Chromium Authors. All rights reserved. |    1 // Copyright 2016 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 CHROME_BROWSER_SAFE_BROWSING_CERTIFICATE_REPORTING_SERVICE_TEST_UTILS_H_ |    5 #ifndef CHROME_BROWSER_SAFE_BROWSING_CERTIFICATE_REPORTING_SERVICE_TEST_UTILS_H_ | 
|    6 #define CHROME_BROWSER_SAFE_BROWSING_CERTIFICATE_REPORTING_SERVICE_TEST_UTILS_H_ |    6 #define CHROME_BROWSER_SAFE_BROWSING_CERTIFICATE_REPORTING_SERVICE_TEST_UTILS_H_ | 
|    7  |    7  | 
|    8 #include <unordered_map> |    8 #include <unordered_map> | 
|    9  |    9  | 
|   10 #include "base/macros.h" |   10 #include "base/macros.h" | 
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  109       net::URLRequest* request, |  109       net::URLRequest* request, | 
|  110       net::NetworkDelegate* network_delegate, |  110       net::NetworkDelegate* network_delegate, | 
|  111       const base::Callback<void()>& destruction_callback); |  111       const base::Callback<void()>& destruction_callback); | 
|  112   ~DelayableCertReportURLRequestJob() override; |  112   ~DelayableCertReportURLRequestJob() override; | 
|  113  |  113  | 
|  114   base::WeakPtr<DelayableCertReportURLRequestJob> GetWeakPtr(); |  114   base::WeakPtr<DelayableCertReportURLRequestJob> GetWeakPtr(); | 
|  115  |  115  | 
|  116   // net::URLRequestJob methods: |  116   // net::URLRequestJob methods: | 
|  117   void Start() override; |  117   void Start() override; | 
|  118   int ReadRawData(net::IOBuffer* buf, int buf_size) override; |  118   int ReadRawData(net::IOBuffer* buf, int buf_size) override; | 
|  119   int GetResponseCode() const override; |  | 
|  120   void GetResponseInfo(net::HttpResponseInfo* info) override; |  119   void GetResponseInfo(net::HttpResponseInfo* info) override; | 
|  121  |  120  | 
|  122   // Resumes a previously started request that was delayed. If no |  121   // Resumes a previously started request that was delayed. If no | 
|  123   // request has been started yet, then when Start() is called it will |  122   // request has been started yet, then when Start() is called it will | 
|  124   // not delay. |  123   // not delay. | 
|  125   void Resume(); |  124   void Resume(); | 
|  126  |  125  | 
|  127  private: |  126  private: | 
|  128   bool delayed_; |  127   bool delayed_; | 
|  129   bool should_fail_; |  128   bool should_fail_; | 
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  237  |  236  | 
|  238   uint8_t server_public_key_[32]; |  237   uint8_t server_public_key_[32]; | 
|  239   uint8_t server_private_key_[32]; |  238   uint8_t server_private_key_[32]; | 
|  240  |  239  | 
|  241   DISALLOW_COPY_AND_ASSIGN(CertificateReportingServiceTestHelper); |  240   DISALLOW_COPY_AND_ASSIGN(CertificateReportingServiceTestHelper); | 
|  242 }; |  241 }; | 
|  243  |  242  | 
|  244 }  // namespace certificate_reporting_test_utils |  243 }  // namespace certificate_reporting_test_utils | 
|  245  |  244  | 
|  246 #endif  // CHROME_BROWSER_SAFE_BROWSING_CERTIFICATE_REPORTING_SERVICE_TEST_UTILS
     _H_ |  245 #endif  // CHROME_BROWSER_SAFE_BROWSING_CERTIFICATE_REPORTING_SERVICE_TEST_UTILS
     _H_ | 
| OLD | NEW |