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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//components/enterprise/buildflags/buildflags.gni")
source_set("test_support") {
testonly = true
public = [ "mock_realtime_reporting_client.h" ]
sources = [ "mock_realtime_reporting_client.cc" ]
public_deps = [
"//base",
"//testing/gmock",
]
deps = [
"//chrome/browser",
"//components/enterprise/connectors/core",
]
if (enterprise_cloud_content_analysis) {
public += [
"deep_scanning_browsertest_base.h",
"deep_scanning_test_utils.h",
"fake_clipboard_request_handler.h",
"fake_content_analysis_delegate.h",
"fake_files_request_handler.h",
"uploader_test_utils.h",
]
sources += [
"deep_scanning_browsertest_base.cc",
"deep_scanning_test_utils.cc",
"fake_clipboard_request_handler.cc",
"fake_content_analysis_delegate.cc",
"fake_files_request_handler.cc",
"uploader_test_utils.cc",
]
public_deps += [
"//chrome/browser/safe_browsing",
"//chrome/browser/ui",
"//chrome/test:test_support_ui",
"//components/enterprise/common/proto:connectors_proto",
"//components/policy/core/common:common_constants",
"//components/policy/core/common:test_support",
"//components/policy/proto",
"//components/safe_browsing/core/common",
"//components/safe_browsing/core/common:safe_browsing_prefs",
"//components/safe_browsing/core/common/proto:realtimeapi_proto",
"//third_party/abseil-cpp:absl",
]
deps += [
"//chrome/browser:browser_process",
"//chrome/browser/profiles:profile",
"//chrome/test:test_support",
"//components/enterprise/connectors/core:test_support",
"//components/enterprise/data_controls/core/browser",
"//components/policy/core/browser",
"//components/policy/core/common",
"//components/prefs",
]
}
if (enterprise_local_content_analysis) {
public += [
"fake_content_analysis_sdk_client.h",
"fake_content_analysis_sdk_manager.h",
]
sources += [
"fake_content_analysis_sdk_client.cc",
"fake_content_analysis_sdk_manager.cc",
]
# This data is needed so that the agent binary gets installed on test bots
# when it is not the same as the build bot.
data_deps = [ "//third_party/content_analysis_sdk:lca_agent" ]
public_deps += [
"//third_party/content_analysis_sdk:lca_agent",
"//third_party/content_analysis_sdk:liblcasdk",
]
}
}
|