Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: net/test/run_all_unittests.cc

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move to mojo::edk namespace in preparation for runtim flag Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 13
14 #if defined(OS_ANDROID) 14 #if defined(OS_ANDROID)
15 #include "base/android/jni_android.h" 15 #include "base/android/jni_android.h"
16 #include "base/android/jni_registrar.h" 16 #include "base/android/jni_registrar.h"
17 #include "base/test/test_file_util.h" 17 #include "base/test/test_file_util.h"
18 #include "base/test/test_ui_thread_android.h" 18 #include "base/test/test_ui_thread_android.h"
19 #include "net/android/dummy_spnego_authenticator.h" 19 #include "net/android/dummy_spnego_authenticator.h"
20 #include "net/android/net_jni_registrar.h" 20 #include "net/android/net_jni_registrar.h"
21 #include "url/android/url_jni_registrar.h" 21 #include "url/android/url_jni_registrar.h"
22 #endif 22 #endif
23 23
24 #if !defined(OS_ANDROID) && !defined(OS_IOS) 24 #if !defined(OS_ANDROID) && !defined(OS_IOS)
25 #if defined(USE_CHROME_EDK)
26 #include "mojo/edk/embedder/test_embedder.h"
27 #else
25 #include "third_party/mojo/src/mojo/edk/embedder/test_embedder.h" 28 #include "third_party/mojo/src/mojo/edk/embedder/test_embedder.h"
26 #endif 29 #endif
30 #endif
27 31
28 using net::internal::ClientSocketPoolBaseHelper; 32 using net::internal::ClientSocketPoolBaseHelper;
29 using net::SpdySession; 33 using net::SpdySession;
30 34
31 int main(int argc, char** argv) { 35 int main(int argc, char** argv) {
32 // Record histograms, so we can get histograms data in tests. 36 // Record histograms, so we can get histograms data in tests.
33 base::StatisticsRecorder::Initialize(); 37 base::StatisticsRecorder::Initialize();
34 38
35 #if defined(OS_ANDROID) 39 #if defined(OS_ANDROID)
36 const base::android::RegistrationMethod kNetTestRegisteredMethods[] = { 40 const base::android::RegistrationMethod kNetTestRegisteredMethods[] = {
(...skipping 26 matching lines...) Expand all
63 net::EnableSSLServerSockets(); 67 net::EnableSSLServerSockets();
64 68
65 #if !defined(OS_ANDROID) && !defined(OS_IOS) 69 #if !defined(OS_ANDROID) && !defined(OS_IOS)
66 mojo::embedder::test::InitWithSimplePlatformSupport(); 70 mojo::embedder::test::InitWithSimplePlatformSupport();
67 #endif 71 #endif
68 72
69 return base::LaunchUnitTests( 73 return base::LaunchUnitTests(
70 argc, argv, base::Bind(&NetTestSuite::Run, 74 argc, argv, base::Bind(&NetTestSuite::Run,
71 base::Unretained(&test_suite))); 75 base::Unretained(&test_suite)));
72 } 76 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698