| # Copyright 2019 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. |
| |
| static_library("test_support") { |
| testonly = true |
| |
| data = [ "policy_testserver.py" ] |
| |
| sources = [ |
| "client_storage.cc", |
| "client_storage.h", |
| "embedded_policy_test_server.cc", |
| "embedded_policy_test_server.h", |
| "failing_request_handler.cc", |
| "failing_request_handler.h", |
| "policy_storage.cc", |
| "policy_storage.h", |
| "request_handler_for_api_authorization.cc", |
| "request_handler_for_api_authorization.h", |
| "request_handler_for_auto_enrollment.cc", |
| "request_handler_for_auto_enrollment.h", |
| "request_handler_for_chrome_desktop_report.cc", |
| "request_handler_for_chrome_desktop_report.h", |
| "request_handler_for_device_attribute_update.cc", |
| "request_handler_for_device_attribute_update.h", |
| "request_handler_for_device_attribute_update_permission.cc", |
| "request_handler_for_device_attribute_update_permission.h", |
| "request_handler_for_device_initial_enrollment_state.cc", |
| "request_handler_for_device_initial_enrollment_state.h", |
| "request_handler_for_device_state_retrieval.cc", |
| "request_handler_for_device_state_retrieval.h", |
| "request_handler_for_policy.cc", |
| "request_handler_for_policy.h", |
| "request_handler_for_psm_auto_enrollment.cc", |
| "request_handler_for_psm_auto_enrollment.h", |
| "request_handler_for_register_browser.cc", |
| "request_handler_for_register_browser.h", |
| "request_handler_for_register_cert_based.cc", |
| "request_handler_for_register_cert_based.h", |
| "request_handler_for_register_device_and_user.cc", |
| "request_handler_for_register_device_and_user.h", |
| "request_handler_for_remote_commands.cc", |
| "request_handler_for_remote_commands.h", |
| "request_handler_for_status_upload.cc", |
| "request_handler_for_status_upload.h", |
| "signature_provider.cc", |
| "signature_provider.h", |
| "test_server_helpers.cc", |
| "test_server_helpers.h", |
| ] |
| |
| if (!is_android) { |
| sources += [ |
| "local_policy_test_server.cc", |
| "local_policy_test_server.h", |
| ] |
| } |
| |
| public_deps = [ "//net:test_support" ] |
| deps = [ |
| "//base", |
| "//components/policy/core/common:common_constants", |
| "//components/policy/proto", |
| "//crypto", |
| "//google_apis:google_apis", |
| "//net", |
| "//net:test_support", |
| "//third_party/private_membership:private_membership_proto", |
| "//third_party/re2:re2", |
| ] |
| } |
| |
| source_set("unittests") { |
| testonly = true |
| |
| sources = [ |
| "client_storage_unittest.cc", |
| "embedded_policy_test_server_test_base.cc", |
| "embedded_policy_test_server_test_base.h", |
| "embedded_policy_test_server_unittest.cc", |
| "failing_request_handler_unittest.cc", |
| "policy_storage_unittest.cc", |
| "request_handler_for_api_authorization_unittest.cc", |
| "request_handler_for_auto_enrollment_unittest.cc", |
| "request_handler_for_chrome_desktop_report_unittest.cc", |
| "request_handler_for_device_attribute_update_permission_unittest.cc", |
| "request_handler_for_device_attribute_update_unittest.cc", |
| "request_handler_for_device_initial_enrollment_state_unittest.cc", |
| "request_handler_for_device_state_retrieval_unittest.cc", |
| "request_handler_for_policy_unittest.cc", |
| "request_handler_for_psm_auto_enrollment_unittest.cc", |
| "request_handler_for_register_browser_unittest.cc", |
| "request_handler_for_register_cert_based_unittest.cc", |
| "request_handler_for_register_device_and_user_unittest.cc", |
| "request_handler_for_remote_commands_unittest.cc", |
| "request_handler_for_status_upload_unittest.cc", |
| "signature_provider_unittest.cc", |
| ] |
| |
| deps = [ |
| ":test_support", |
| "//chrome/test:test_support", |
| "//services/network:test_support", |
| "//services/network/public/cpp", |
| "//services/network/public/mojom", |
| "//third_party/abseil-cpp:absl", |
| ] |
| } |