# 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 configs += [ "//components/enterprise:extra_warnings" ] public = [ "deep_scanning_test_utils.h", "mock_realtime_reporting_client.h", ] sources = [ "deep_scanning_test_utils.cc", "mock_realtime_reporting_client.cc", ] public_deps = [ "//base", "//components/enterprise/common/proto:connectors_proto", "//components/safe_browsing/core/common:safe_browsing_prefs", "//testing/gmock", ] deps = [ "//chrome/browser", "//chrome/test:test_support", "//components/enterprise/common/proto:browser_events_proto", "//components/enterprise/data_controls/core/browser", ] if (enterprise_cloud_content_analysis) { public += [ "active_user_test_mixin.h", "deep_scanning_browsertest_base.h", "fake_clipboard_request_handler.h", "fake_content_analysis_delegate.h", "fake_files_request_handler.h", ] sources += [ "active_user_test_mixin.cc", "deep_scanning_browsertest_base.cc", "fake_clipboard_request_handler.cc", "fake_content_analysis_delegate.cc", "fake_files_request_handler.cc", ] public_deps += [ "//chrome/browser/safe_browsing", "//chrome/browser/ui", "//chrome/test:test_support_ui", "//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/proto:realtimeapi_proto", "//third_party/abseil-cpp:absl", ] deps += [ "//chrome/browser:browser_process", "//chrome/browser/profiles:profile", "//chrome/browser/signin", "//components/enterprise/connectors/core:cloud_content_scanning", "//components/policy/core/browser", "//components/policy/core/common", "//components/prefs", ] } if (enterprise_cloud_content_analysis || is_android) { deps += [ "//components/enterprise/connectors/core", "//components/enterprise/connectors/core:test_support", ] } 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", ] } }