summaryrefslogtreecommitdiff
path: root/chromium/components/cronet/test/BUILD.gn
blob: 9ed0fc2019030a2d0f6f2667906c56237b778015 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# 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" ]
  }
}