| # Copyright 2024 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/config/chromeos/ui_mode.gni") |
| import("//chrome/browser/buildflags.gni") |
| |
| assert(is_chromeos) |
| |
| static_library("web_contents") { |
| sources = [ |
| "mahi_content_extraction_delegate.cc", |
| "mahi_content_extraction_delegate.h", |
| "mahi_tab_helper.cc", |
| "mahi_tab_helper.h", |
| "mahi_web_contents_manager_impl.cc", |
| "mahi_web_contents_manager_impl.h", |
| ] |
| |
| public_deps = [ "//chrome/browser:browser_public_dependencies" ] |
| |
| deps = [ |
| "//ash", |
| "//ash/constants", |
| "//base", |
| "//chrome/browser/ash/mahi", |
| "//chrome/browser/favicon", |
| "//chrome/browser/screen_ai:screen_ai_service_router_factory", |
| "//chromeos/components/mahi/public/cpp", |
| "//chromeos/components/mahi/public/mojom", |
| "//chromeos/constants", |
| "//chromeos/crosapi/mojom", |
| "//components/content_extraction/content/browser", |
| "//components/pdf/browser", |
| "//components/pdf/common:constants", |
| "//components/prefs", |
| "//content/public/browser", |
| "//mojo/public/cpp/bindings", |
| "//pdf:features", |
| "//services/metrics/public/cpp:metrics_cpp", |
| "//services/screen_ai/public/mojom", |
| "//ui/accessibility:ax_base", |
| "//ui/aura", |
| "//ui/gfx", |
| "//url", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| |
| sources = [ "mahi_tab_helper_unittest.cc" ] |
| |
| deps = [ |
| ":web_contents", |
| "//base/test:test_support", |
| "//chrome/browser", |
| "//chrome/browser/ash/mahi/web_contents/test_support", |
| "//chrome/browser/ui", |
| "//chrome/browser/ui/tabs:test_support", |
| "//chrome/test:test_support", |
| "//chromeos/components/mahi/public/cpp", |
| "//chromeos/constants", |
| "//testing/gmock", |
| "//testing/gtest", |
| ] |
| } |
| |
| source_set("browser_tests") { |
| testonly = true |
| |
| defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| |
| sources = [ "mahi_web_contents_manager_impl_browsertest.cc" ] |
| |
| deps = [ |
| ":web_contents", |
| "//ash:test_support", |
| "//base", |
| "//base/test:test_support", |
| "//chrome/browser/ash/mahi/web_contents/test_support", |
| "//chrome/browser/ui", |
| "//chrome/test:test_support_ui", |
| "//chromeos/components/mahi/public/cpp", |
| "//chromeos/constants", |
| "//chromeos/crosapi/mojom", |
| "//content/public/browser", |
| "//content/test:test_support", |
| "//mojo/public/cpp/bindings", |
| "//net:test_support", |
| "//testing/gmock", |
| "//testing/gtest", |
| "//ui/base", |
| "//ui/gfx", |
| "//url", |
| ] |
| } |