OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "quic_test_server.h" | 5 #include "quic_test_server.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
9 #include "base/android/path_utils.h" | 9 #include "base/android/path_utils.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/test/test_support_android.h" | 13 #include "base/test/test_support_android.h" |
14 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
15 #include "components/cronet/android/test/cronet_test_util.h" | 15 #include "components/cronet/android/test/cronet_test_util.h" |
16 #include "jni/QuicTestServer_jni.h" | 16 #include "jni/QuicTestServer_jni.h" |
17 #include "net/base/ip_address.h" | 17 #include "net/base/ip_address.h" |
18 #include "net/base/ip_endpoint.h" | 18 #include "net/base/ip_endpoint.h" |
19 #include "net/base/test_data_directory.h" | |
20 #include "net/quic/crypto/proof_source_chromium.h" | 19 #include "net/quic/crypto/proof_source_chromium.h" |
| 20 #include "net/test/test_data_directory.h" |
21 #include "net/tools/quic/quic_in_memory_cache.h" | 21 #include "net/tools/quic/quic_in_memory_cache.h" |
22 #include "net/tools/quic/quic_simple_server.h" | 22 #include "net/tools/quic/quic_simple_server.h" |
23 | 23 |
24 namespace cronet { | 24 namespace cronet { |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 static const int kServerPort = 6121; | 28 static const int kServerPort = 6121; |
29 | 29 |
30 base::Thread* g_quic_server_thread = nullptr; | 30 base::Thread* g_quic_server_thread = nullptr; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 int GetServerPort(JNIEnv* env, const JavaParamRef<jclass>& /*jcaller*/) { | 109 int GetServerPort(JNIEnv* env, const JavaParamRef<jclass>& /*jcaller*/) { |
110 return kServerPort; | 110 return kServerPort; |
111 } | 111 } |
112 | 112 |
113 bool RegisterQuicTestServer(JNIEnv* env) { | 113 bool RegisterQuicTestServer(JNIEnv* env) { |
114 return RegisterNativesImpl(env); | 114 return RegisterNativesImpl(env); |
115 } | 115 } |
116 | 116 |
117 } // namespace cronet | 117 } // namespace cronet |
OLD | NEW |