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 13 matching lines...) Expand all Loading... |
24 #include "base/time/default_clock.h" | 24 #include "base/time/default_clock.h" |
25 #include "base/values.h" | 25 #include "base/values.h" |
26 #include "google_apis/gcm/base/fake_encryptor.h" | 26 #include "google_apis/gcm/base/fake_encryptor.h" |
27 #include "google_apis/gcm/base/mcs_message.h" | 27 #include "google_apis/gcm/base/mcs_message.h" |
28 #include "google_apis/gcm/base/mcs_util.h" | 28 #include "google_apis/gcm/base/mcs_util.h" |
29 #include "google_apis/gcm/engine/checkin_request.h" | 29 #include "google_apis/gcm/engine/checkin_request.h" |
30 #include "google_apis/gcm/engine/connection_factory_impl.h" | 30 #include "google_apis/gcm/engine/connection_factory_impl.h" |
31 #include "google_apis/gcm/engine/gcm_store_impl.h" | 31 #include "google_apis/gcm/engine/gcm_store_impl.h" |
32 #include "google_apis/gcm/engine/gservices_settings.h" | 32 #include "google_apis/gcm/engine/gservices_settings.h" |
33 #include "google_apis/gcm/engine/mcs_client.h" | 33 #include "google_apis/gcm/engine/mcs_client.h" |
34 #include "google_apis/gcm/monitoring/gcm_stats_recorder.h" | 34 #include "google_apis/gcm/monitoring/fake_gcm_stats_recorder.h" |
35 #include "net/base/host_mapping_rules.h" | 35 #include "net/base/host_mapping_rules.h" |
36 #include "net/base/net_log_logger.h" | 36 #include "net/base/net_log_logger.h" |
37 #include "net/cert/cert_verifier.h" | 37 #include "net/cert/cert_verifier.h" |
38 #include "net/dns/host_resolver.h" | 38 #include "net/dns/host_resolver.h" |
39 #include "net/http/http_auth_handler_factory.h" | 39 #include "net/http/http_auth_handler_factory.h" |
40 #include "net/http/http_network_session.h" | 40 #include "net/http/http_network_session.h" |
41 #include "net/http/http_server_properties_impl.h" | 41 #include "net/http/http_server_properties_impl.h" |
42 #include "net/http/transport_security_state.h" | 42 #include "net/http/transport_security_state.h" |
43 #include "net/socket/client_socket_factory.h" | 43 #include "net/socket/client_socket_factory.h" |
44 #include "net/socket/ssl_client_socket.h" | 44 #include "net/socket/ssl_client_socket.h" |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 scoped_ptr<net::CertVerifier> cert_verifier_; | 236 scoped_ptr<net::CertVerifier> cert_verifier_; |
237 scoped_ptr<net::ServerBoundCertService> system_server_bound_cert_service_; | 237 scoped_ptr<net::ServerBoundCertService> system_server_bound_cert_service_; |
238 scoped_ptr<net::TransportSecurityState> transport_security_state_; | 238 scoped_ptr<net::TransportSecurityState> transport_security_state_; |
239 scoped_ptr<net::URLSecurityManager> url_security_manager_; | 239 scoped_ptr<net::URLSecurityManager> url_security_manager_; |
240 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory_; | 240 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory_; |
241 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_; | 241 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_; |
242 scoped_ptr<net::HostMappingRules> host_mapping_rules_; | 242 scoped_ptr<net::HostMappingRules> host_mapping_rules_; |
243 scoped_refptr<net::HttpNetworkSession> network_session_; | 243 scoped_refptr<net::HttpNetworkSession> network_session_; |
244 scoped_ptr<net::ProxyService> proxy_service_; | 244 scoped_ptr<net::ProxyService> proxy_service_; |
245 | 245 |
246 GCMStatsRecorder recorder_; | 246 FakeGCMStatsRecorder recorder_; |
247 scoped_ptr<GCMStore> gcm_store_; | 247 scoped_ptr<GCMStore> gcm_store_; |
248 scoped_ptr<MCSClient> mcs_client_; | 248 scoped_ptr<MCSClient> mcs_client_; |
249 scoped_ptr<CheckinRequest> checkin_request_; | 249 scoped_ptr<CheckinRequest> checkin_request_; |
250 | 250 |
251 scoped_ptr<ConnectionFactoryImpl> connection_factory_; | 251 scoped_ptr<ConnectionFactoryImpl> connection_factory_; |
252 | 252 |
253 base::Thread file_thread_; | 253 base::Thread file_thread_; |
254 | 254 |
255 scoped_ptr<base::RunLoop> run_loop_; | 255 scoped_ptr<base::RunLoop> run_loop_; |
256 }; | 256 }; |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 | 498 |
499 return 0; | 499 return 0; |
500 } | 500 } |
501 | 501 |
502 } // namespace | 502 } // namespace |
503 } // namespace gcm | 503 } // namespace gcm |
504 | 504 |
505 int main(int argc, char* argv[]) { | 505 int main(int argc, char* argv[]) { |
506 return gcm::MCSProbeMain(argc, argv); | 506 return gcm::MCSProbeMain(argc, argv); |
507 } | 507 } |
OLD | NEW |