# 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. import("//testing/test.gni") assert(!is_ios, "Paint Previews are not supported on iOS.") source_set("browser") { sources = [ "compositor_utils.cc", "compositor_utils.h", "directory_key.cc", "directory_key.h", "file_manager.cc", "file_manager.h", "hit_tester.cc", "hit_tester.h", "paint_preview_base_service.cc", "paint_preview_base_service.h", "paint_preview_client.cc", "paint_preview_client.h", "paint_preview_compositor_client_impl.cc", "paint_preview_compositor_client_impl.h", "paint_preview_compositor_service_impl.cc", "paint_preview_compositor_service_impl.h", "paint_preview_policy.h", "service_sandbox_type.h", "warm_compositor.cc", "warm_compositor.h", ] deps = [ "//base", "//cc/base", "//components/discardable_memory/service", "//components/keyed_service/core", "//components/strings:components_strings_grit", "//components/ukm/content", "//content/public/browser", "//mojo/public/cpp/base", "//mojo/public/cpp/bindings", "//services/metrics/public/cpp:metrics_cpp", "//services/metrics/public/cpp:ukm_builders", "//third_party/blink/public:blink_headers", "//third_party/blink/public/common", "//third_party/zlib/google:zip", "//ui/gfx/geometry", "//url", ] public_deps = [ "//components/paint_preview/common", "//components/paint_preview/common/mojom", "//components/paint_preview/common/proto", "//components/paint_preview/public", "//components/services/paint_preview_compositor/public/mojom", ] } source_set("test_support") { testonly = true sources = [ "paint_preview_base_service_test_factory.cc", "paint_preview_base_service_test_factory.h", "test_paint_preview_policy.cc", "test_paint_preview_policy.h", ] deps = [ "//base", "//components/keyed_service/core", "//content/public/browser", ] public_deps = [ ":browser" ] } source_set("unit_tests") { testonly = true sources = [ "file_manager_unittest.cc", "hit_tester_unittest.cc", "paint_preview_base_service_unittest.cc", "paint_preview_client_unittest.cc", ] deps = [ ":browser", ":test_support", "//base", "//base/test:test_support", "//components/paint_preview/common:test_utils", "//content/public/browser", "//content/test:test_support", "//testing/gmock", "//testing/gtest", "//ui/gfx/geometry", "//url", ] } test("paint_preview_browser_unit_tests") { deps = [ ":unit_tests", "//base", "//base/test:test_support", "//components/test:run_all_unittests", ] }