| 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 "base/metrics/statistics_recorder.h" | 5 #include "base/metrics/statistics_recorder.h" |
| 6 #include "base/test/launcher/unit_test_launcher.h" | 6 #include "base/test/launcher/unit_test_launcher.h" |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "crypto/nss_util.h" | 8 #include "crypto/nss_util.h" |
| 9 #include "net/socket/client_socket_pool_base.h" | 9 #include "net/socket/client_socket_pool_base.h" |
| 10 #include "net/socket/ssl_server_socket.h" | 10 #include "net/socket/ssl_server_socket.h" |
| 11 #include "net/spdy/spdy_session.h" | 11 #include "net/spdy/spdy_session.h" |
| 12 #include "net/test/net_test_suite.h" | 12 #include "net/test/net_test_suite.h" |
| 13 #include "url/url_features.h" | 13 #include "url/url_features.h" |
| 14 | 14 |
| 15 #if defined(OS_ANDROID) | 15 #if defined(OS_ANDROID) |
| 16 #include "base/android/jni_android.h" | 16 #include "base/android/jni_android.h" |
| 17 #include "base/android/jni_registrar.h" | 17 #include "base/android/jni_registrar.h" |
| 18 #include "base/test/test_file_util.h" | 18 #include "base/test/test_file_util.h" |
| 19 #include "base/test/test_ui_thread_android.h" | 19 #include "base/test/test_ui_thread_android.h" |
| 20 #include "net/android/dummy_spnego_authenticator.h" | 20 #include "net/android/dummy_spnego_authenticator.h" |
| 21 #include "net/android/net_jni_registrar.h" | 21 #include "net/android/net_jni_registrar.h" |
| 22 #if BUILDFLAG(USE_PLATFORM_ICU_ALTERNATIVES) |
| 23 #include "url/android/url_jni_registrar.h" // nogncheck |
| 22 #endif | 24 #endif |
| 23 | 25 |
| 24 #if BUILDFLAG(USE_PLATFORM_ICU_ALTERNATIVES) | |
| 25 #include "url/android/url_jni_registrar.h" // nogncheck | |
| 26 #endif | 26 #endif |
| 27 | 27 |
| 28 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 28 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 29 #include "mojo/edk/embedder/embedder.h" // nogncheck | 29 #include "mojo/edk/embedder/embedder.h" // nogncheck |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 using net::internal::ClientSocketPoolBaseHelper; | 32 using net::internal::ClientSocketPoolBaseHelper; |
| 33 using net::SpdySession; | 33 using net::SpdySession; |
| 34 | 34 |
| 35 int main(int argc, char** argv) { | 35 int main(int argc, char** argv) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 64 net::EnableSSLServerSockets(); | 64 net::EnableSSLServerSockets(); |
| 65 | 65 |
| 66 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 66 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 67 mojo::edk::Init(); | 67 mojo::edk::Init(); |
| 68 #endif | 68 #endif |
| 69 | 69 |
| 70 return base::LaunchUnitTests( | 70 return base::LaunchUnitTests( |
| 71 argc, argv, base::Bind(&NetTestSuite::Run, | 71 argc, argv, base::Bind(&NetTestSuite::Run, |
| 72 base::Unretained(&test_suite))); | 72 base::Unretained(&test_suite))); |
| 73 } | 73 } |
| OLD | NEW |