| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <cstddef> | 5 #include <cstddef> |
| 6 #include <cstdio> | 6 #include <cstdio> |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // sync_listen_notifications. | 57 // sync_listen_notifications. |
| 58 namespace syncer { | 58 namespace syncer { |
| 59 namespace { | 59 namespace { |
| 60 | 60 |
| 61 const char kEmailSwitch[] = "email"; | 61 const char kEmailSwitch[] = "email"; |
| 62 const char kTokenSwitch[] = "token"; | 62 const char kTokenSwitch[] = "token"; |
| 63 const char kXmppHostPortSwitch[] = "xmpp-host-port"; | 63 const char kXmppHostPortSwitch[] = "xmpp-host-port"; |
| 64 const char kXmppTrySslTcpFirstSwitch[] = "xmpp-try-ssltcp-first"; | 64 const char kXmppTrySslTcpFirstSwitch[] = "xmpp-try-ssltcp-first"; |
| 65 const char kXmppAllowInsecureConnectionSwitch[] = | 65 const char kXmppAllowInsecureConnectionSwitch[] = |
| 66 "xmpp-allow-insecure-connection"; | 66 "xmpp-allow-insecure-connection"; |
| 67 const char kNotificationMethodSwitch[] = "notification-method"; | |
| 68 | 67 |
| 69 // Needed to use a real host resolver. | 68 // Needed to use a real host resolver. |
| 70 class MyTestURLRequestContext : public net::TestURLRequestContext { | 69 class MyTestURLRequestContext : public net::TestURLRequestContext { |
| 71 public: | 70 public: |
| 72 MyTestURLRequestContext() : TestURLRequestContext(true) { | 71 MyTestURLRequestContext() : TestURLRequestContext(true) { |
| 73 context_storage_.set_host_resolver( | 72 context_storage_.set_host_resolver( |
| 74 net::HostResolver::CreateDefaultResolver(NULL)); | 73 net::HostResolver::CreateDefaultResolver(NULL)); |
| 75 context_storage_.set_transport_security_state( | 74 context_storage_.set_transport_security_state( |
| 76 new net::TransportSecurityState()); | 75 new net::TransportSecurityState()); |
| 77 Init(); | 76 Init(); |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 io_thread.Stop(); | 386 io_thread.Stop(); |
| 388 return 0; | 387 return 0; |
| 389 } | 388 } |
| 390 | 389 |
| 391 } // namespace | 390 } // namespace |
| 392 } // namespace syncer | 391 } // namespace syncer |
| 393 | 392 |
| 394 int main(int argc, char* argv[]) { | 393 int main(int argc, char* argv[]) { |
| 395 return syncer::SyncClientMain(argc, argv); | 394 return syncer::SyncClientMain(argc, argv); |
| 396 } | 395 } |
| OLD | NEW |