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

Side by Side Diff: components/cronet/android/test/quic_test_server.cc

Issue 2090463002: Move net/base/test_data_directory.[cc,h] to net/test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 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
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
OLDNEW
« no previous file with comments | « components/cronet/android/test/mock_cert_verifier.cc ('k') | components/cronet/ios/test/cronet_bidirectional_stream_test.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698