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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <cstddef> | 10 #include <cstddef> |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 class MyTestCertVerifier : public net::CertVerifier { | 177 class MyTestCertVerifier : public net::CertVerifier { |
178 public: | 178 public: |
179 MyTestCertVerifier() {} | 179 MyTestCertVerifier() {} |
180 ~MyTestCertVerifier() override {} | 180 ~MyTestCertVerifier() override {} |
181 | 181 |
182 int Verify(const RequestParams& params, | 182 int Verify(const RequestParams& params, |
183 net::CRLSet* crl_set, | 183 net::CRLSet* crl_set, |
184 net::CertVerifyResult* verify_result, | 184 net::CertVerifyResult* verify_result, |
185 const net::CompletionCallback& callback, | 185 const net::CompletionCallback& callback, |
186 std::unique_ptr<Request>* out_req, | 186 std::unique_ptr<Request>* out_req, |
187 const net::BoundNetLog& net_log) override { | 187 const net::NetLogWithSource& net_log) override { |
188 return net::OK; | 188 return net::OK; |
189 } | 189 } |
190 }; | 190 }; |
191 | 191 |
192 class MCSProbeAuthPreferences : public net::HttpAuthPreferences { | 192 class MCSProbeAuthPreferences : public net::HttpAuthPreferences { |
193 public: | 193 public: |
194 MCSProbeAuthPreferences() | 194 MCSProbeAuthPreferences() |
195 : HttpAuthPreferences(std::vector<std::string>() | 195 : HttpAuthPreferences(std::vector<std::string>() |
196 #if defined(OS_POSIX) && !defined(OS_ANDROID) | 196 #if defined(OS_POSIX) && !defined(OS_ANDROID) |
197 , | 197 , |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 | 516 |
517 return 0; | 517 return 0; |
518 } | 518 } |
519 | 519 |
520 } // namespace | 520 } // namespace |
521 } // namespace gcm | 521 } // namespace gcm |
522 | 522 |
523 int main(int argc, char* argv[]) { | 523 int main(int argc, char* argv[]) { |
524 return gcm::MCSProbeMain(argc, argv); | 524 return gcm::MCSProbeMain(argc, argv); |
525 } | 525 } |
OLD | NEW |