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