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 // A standalone tool for testing MCS connections and the MCS client on their | 5 // A standalone tool for testing MCS connections and the MCS client on their |
6 // own. | 6 // own. |
7 | 7 |
8 #include <cstddef> | 8 #include <cstddef> |
9 #include <cstdio> | 9 #include <cstdio> |
10 #include <string> | 10 #include <string> |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 MyTestCertVerifier() {} | 169 MyTestCertVerifier() {} |
170 ~MyTestCertVerifier() override {} | 170 ~MyTestCertVerifier() override {} |
171 | 171 |
172 int Verify(net::X509Certificate* cert, | 172 int Verify(net::X509Certificate* cert, |
173 const std::string& hostname, | 173 const std::string& hostname, |
174 const std::string& ocsp_response, | 174 const std::string& ocsp_response, |
175 int flags, | 175 int flags, |
176 net::CRLSet* crl_set, | 176 net::CRLSet* crl_set, |
177 net::CertVerifyResult* verify_result, | 177 net::CertVerifyResult* verify_result, |
178 const net::CompletionCallback& callback, | 178 const net::CompletionCallback& callback, |
179 RequestHandle* out_req, | 179 scoped_ptr<Request>* out_req, |
180 const net::BoundNetLog& net_log) override { | 180 const net::BoundNetLog& net_log) override { |
181 return net::OK; | 181 return net::OK; |
182 } | 182 } |
183 | |
184 void CancelRequest(RequestHandle req) override { | |
185 // Do nothing. | |
186 } | |
187 }; | 183 }; |
188 | 184 |
189 class MCSProbe { | 185 class MCSProbe { |
190 public: | 186 public: |
191 MCSProbe( | 187 MCSProbe( |
192 const base::CommandLine& command_line, | 188 const base::CommandLine& command_line, |
193 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter); | 189 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter); |
194 ~MCSProbe(); | 190 ~MCSProbe(); |
195 | 191 |
196 void Start(); | 192 void Start(); |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 | 493 |
498 return 0; | 494 return 0; |
499 } | 495 } |
500 | 496 |
501 } // namespace | 497 } // namespace |
502 } // namespace gcm | 498 } // namespace gcm |
503 | 499 |
504 int main(int argc, char* argv[]) { | 500 int main(int argc, char* argv[]) { |
505 return gcm::MCSProbeMain(argc, argv); | 501 return gcm::MCSProbeMain(argc, argv); |
506 } | 502 } |
OLD | NEW |