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
   56
   57
   58
   59
   60
   61
   62

fuchsia_web / common / test / BUILD.gn [blame]

# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

assert(is_fuchsia)

# Only allow use by WebEngine-related Fuchsia targets.
visibility = [ "//fuchsia_web/*" ]

source_set("test_support") {
  testonly = true
  sources = [
    "fake_feedback_service.cc",
    "fake_feedback_service.h",
    "fit_adapter.h",
    "frame_for_test.cc",
    "frame_for_test.h",
    "frame_test_util.cc",
    "frame_test_util.h",
    "test_debug_listener.cc",
    "test_debug_listener.h",
    "test_devtools_list_fetcher.cc",
    "test_devtools_list_fetcher.h",
    "test_navigation_listener.cc",
    "test_navigation_listener.h",
    "test_realm_support.cc",
    "test_realm_support.h",
    "url_request_rewrite_test_util.cc",
    "url_request_rewrite_test_util.h",
  ]
  public_deps = [
    "//base",
    "//third_party/abseil-cpp:absl",
    "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.feedback:fuchsia.feedback_hlcpp",
    "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.mem:fuchsia.mem_hlcpp",
    "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.web:fuchsia.web_hlcpp",
    "//third_party/fuchsia-sdk/sdk/pkg/fidl_cpp",
    "//third_party/fuchsia-sdk/sdk/pkg/fit",
    "//third_party/fuchsia-sdk/sdk/pkg/sys_component_cpp_testing",
  ]
  deps = [
    "//fuchsia_web/common",
    "//net",
    "//net:test_support",
    "//net/traffic_annotation:test_support",
    "//testing/gtest",
    "//third_party/fuchsia-sdk/sdk/pkg/fidl_cpp_base",
    "//third_party/fuchsia-sdk/sdk/pkg/sys_cpp",
    "//url",
  ]
}

static_library("run_all_integration_tests") {
  testonly = true
  visibility = []
  visibility += [
    "//fuchsia_web/runners/*",
    "//fuchsia_web/webengine/*",
  ]
  sources = [ "run_all_integration_tests.cc" ]
  deps = [ "//base/test:test_support" ]
}