| # 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. |
| |
| # Nothing outside //chrome/chrome_cleaner can depend on these targets. |
| visibility = [ "//chrome/chrome_cleaner/*" ] |
| |
| source_set("mojo_task_runner") { |
| sources = [ |
| "mojo_task_runner.cc", |
| "mojo_task_runner.h", |
| ] |
| |
| deps = [ |
| "//base", |
| "//mojo/core/embedder", |
| "//mojo/public/cpp/system", |
| ] |
| } |
| |
| source_set("chrome_prompt_ipc") { |
| sources = [ |
| "chrome_prompt_ipc.cc", |
| "chrome_prompt_ipc.h", |
| "mojo_chrome_prompt_ipc.cc", |
| "mojo_chrome_prompt_ipc.h", |
| "proto_chrome_prompt_ipc.cc", |
| "proto_chrome_prompt_ipc.h", |
| ] |
| |
| deps = [ |
| ":mojo_task_runner", |
| "//base", |
| "//chrome/chrome_cleaner/mojom:chrome_prompt_interface", |
| "//mojo/public/cpp/platform", |
| "//mojo/public/cpp/system", |
| ] |
| |
| public_deps = [ |
| "//components/chrome_cleaner/public/proto", |
| "//third_party/protobuf:protobuf_lite", |
| ] |
| } |
| |
| source_set("sandbox") { |
| sources = [ |
| "mojo_sandbox_hooks.cc", |
| "mojo_sandbox_hooks.h", |
| "sandbox.cc", |
| "sandbox.h", |
| ] |
| |
| deps = [ |
| "//base", |
| "//chrome/chrome_cleaner:buildflags", |
| "//chrome/chrome_cleaner/constants:common_strings", |
| "//chrome/chrome_cleaner/crash:crashpad_lib", |
| "//chrome/chrome_cleaner/os:common_os", |
| "//chrome/chrome_cleaner/settings", |
| "//chrome/chrome_cleaner/settings:engine_settings_header", |
| "//chrome/chrome_cleaner/settings:settings_types", |
| "//components/chrome_cleaner/public/constants:constants", |
| "//mojo/public/cpp/system", |
| "//sandbox", |
| ] |
| } |
| |
| source_set("ipc_test_util") { |
| testonly = true |
| |
| sources = [ |
| "ipc_test_util.cc", |
| "ipc_test_util.h", |
| ] |
| |
| deps = [ |
| ":chrome_prompt_ipc", |
| ":mojo_task_runner", |
| "//base", |
| "//base/test:test_support", |
| "//chrome/chrome_cleaner/ipc:sandbox", |
| "//chrome/chrome_cleaner/logging:common", |
| "//chrome/chrome_cleaner/test:test_util", |
| "//mojo/public/cpp/system", |
| "//sandbox/win:sandbox", |
| "//testing/gtest", |
| ] |
| } |
| |
| source_set("unittest_sources") { |
| testonly = true |
| |
| sources = [ |
| "mojo_chrome_prompt_ipc_unittest.cc", |
| "mojo_sandbox_hooks_unittest.cc", |
| "mojo_task_runner_unittest.cc", |
| "proto_chrome_prompt_ipc_unittest.cc", |
| "sandbox_unittest.cc", |
| ] |
| |
| deps = [ |
| ":chrome_prompt_ipc", |
| ":ipc_test_util", |
| ":mojo_task_runner", |
| ":sandbox", |
| "//base", |
| "//base/test:test_support", |
| "//chrome/chrome_cleaner:buildflags", |
| "//chrome/chrome_cleaner/logging:common", |
| "//chrome/chrome_cleaner/mojom:chrome_prompt_interface", |
| "//chrome/chrome_cleaner/mojom:mojo_sandbox_hooks_test_interface", |
| "//chrome/chrome_cleaner/os:common_os", |
| "//chrome/chrome_cleaner/test:test_util", |
| "//components/chrome_cleaner/public/constants", |
| "//components/chrome_cleaner/public/proto", |
| "//components/chrome_cleaner/public/proto:test_only_proto", |
| "//components/chrome_cleaner/test:test_name_helper", |
| "//mojo/core/embedder", |
| "//sandbox/win:sandbox", |
| "//testing/gmock", |
| "//testing/gtest", |
| ] |
| } |
| |
| source_set("mock_chrome_prompt_ipc") { |
| testonly = true |
| |
| sources = [ |
| "mock_chrome_prompt_ipc.cc", |
| "mock_chrome_prompt_ipc.h", |
| ] |
| |
| deps = [ |
| ":chrome_prompt_ipc", |
| "//testing/gmock", |
| "//testing/gtest", |
| ] |
| } |