blob: f83f07850c1b647a11a5a5781766d4bf177635c0 [file] [log] [blame]
# Copyright 2018 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("//testing/test.gni")
# This section can be updated from globbing rules using:
# find data -type f | sort | sed 's/\(.*\)/"\1",/g'
bundle_data("test_support_bundle_data") {
visibility = [ ":test_support" ]
testonly = true
sources = [
"data/cacheable.txt",
"data/cacheable.txt.mock-http-headers",
"data/content_length_mismatch.html",
"data/content_length_mismatch.html.mock-http-headers",
"data/gzipped.html",
"data/gzipped.html.mock-http-headers",
"data/multiredirect.html",
"data/multiredirect.html.mock-http-headers",
"data/notfound.html",
"data/notfound.html.mock-http-headers",
"data/quic_data/simple.txt",
"data/redirect.html",
"data/redirect.html.mock-http-headers",
"data/redirect_invalid_scheme.html",
"data/redirect_invalid_scheme.html.mock-http-headers",
"data/secureproxychecksuccess.txt",
"data/secureproxychecksuccess.txt.mock-http-headers",
"data/set_cookie.html",
"data/set_cookie.html.mock-http-headers",
"data/success.txt",
"data/success.txt.mock-http-headers",
]
outputs = [
"{{bundle_resources_dir}}/" +
"{{source_root_relative_dir}}/{{source_file_part}}",
]
}
# Test support for Cronet common implementation.
source_set("test_support") {
testonly = true
deps = [
"//net:test_support",
]
data = [
"data/",
]
sources = [
"test_server.cc",
"test_server.h",
]
if (is_ios) {
deps += [ ":test_support_bundle_data" ]
}
}