Index: components/cronet/ios/test/BUILD.gn |
diff --git a/components/cronet/ios/test/BUILD.gn b/components/cronet/ios/test/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f9629bf9ef2a69175c5bde8ae1c3a3d1a5e87746 |
--- /dev/null |
+++ b/components/cronet/ios/test/BUILD.gn |
@@ -0,0 +1,45 @@ |
+# Copyright 2016 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+import("//build/config/ios/rules.gni") |
+import("//testing/test.gni") |
+ |
+bundle_data("cronet_test_bundle_data") { |
+ testonly = true |
+ sources = [ |
+ "//net/data/ssl/certificates/quic_test.example.com.crt", |
+ "//net/data/ssl/certificates/quic_test.example.com.key", |
+ "//net/data/ssl/certificates/quic_test.example.com.key.pkcs8", |
+ "//net/data/ssl/certificates/quic_test.example.com.key.sct", |
+ ] |
+ outputs = [ |
+ "{{bundle_resources_dir}}/{{source_file_part}}", |
+ ] |
+} |
+ |
+test("cronet_test") { |
+ testonly = true |
+ sources = [ |
+ "cronet_bidirectional_stream_test.mm", |
+ "cronet_http_test.mm", |
+ "cronet_test_runner.mm", |
+ "quic_test_server.cc", |
+ "quic_test_server.h", |
+ "test_server.cc", |
+ "test_server.h", |
+ ] |
+ |
+ deps = [ |
+ ":cronet_test_bundle_data", |
+ "//base", |
+ "//base:i18n", |
+ "//components/cronet/ios:cronet_framework+link", |
+ "//net", |
+ "//net:simple_quic_tools", |
+ "//net:test_support", |
+ "//third_party/icu", |
+ ] |
+ |
+ bundle_deps = [ "//components/cronet/ios:cronet_framework+bundle" ] |
+} |