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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 InitializeNetworkState(); | 296 InitializeNetworkState(); |
297 BuildNetworkSession(); | 297 BuildNetworkSession(); |
298 std::vector<GURL> endpoints(1, | 298 std::vector<GURL> endpoints(1, |
299 GURL("https://" + | 299 GURL("https://" + |
300 net::HostPortPair(server_host_, | 300 net::HostPortPair(server_host_, |
301 server_port_).ToString())); | 301 server_port_).ToString())); |
302 connection_factory_.reset( | 302 connection_factory_.reset( |
303 new ConnectionFactoryImpl(endpoints, | 303 new ConnectionFactoryImpl(endpoints, |
304 kDefaultBackoffPolicy, | 304 kDefaultBackoffPolicy, |
305 network_session_, | 305 network_session_, |
| 306 NULL, |
306 &net_log_, | 307 &net_log_, |
307 &recorder_)); | 308 &recorder_)); |
308 gcm_store_.reset( | 309 gcm_store_.reset( |
309 new GCMStoreImpl(gcm_store_path_, | 310 new GCMStoreImpl(gcm_store_path_, |
310 file_thread_.message_loop_proxy(), | 311 file_thread_.message_loop_proxy(), |
311 make_scoped_ptr<Encryptor>(new FakeEncryptor))); | 312 make_scoped_ptr<Encryptor>(new FakeEncryptor))); |
312 mcs_client_.reset(new MCSClient("probe", | 313 mcs_client_.reset(new MCSClient("probe", |
313 &clock_, | 314 &clock_, |
314 connection_factory_.get(), | 315 connection_factory_.get(), |
315 gcm_store_.get(), | 316 gcm_store_.get(), |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 | 499 |
499 return 0; | 500 return 0; |
500 } | 501 } |
501 | 502 |
502 } // namespace | 503 } // namespace |
503 } // namespace gcm | 504 } // namespace gcm |
504 | 505 |
505 int main(int argc, char* argv[]) { | 506 int main(int argc, char* argv[]) { |
506 return gcm::MCSProbeMain(argc, argv); | 507 return gcm::MCSProbeMain(argc, argv); |
507 } | 508 } |
OLD | NEW |