| # 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/ozone.gni") |
| import("//extensions/buildflags/buildflags.gni") |
| |
| assert(enable_extensions) |
| assert(is_chromeos) |
| assert(use_ozone) |
| |
| static_library("smart_reader") { |
| sources = [ |
| "smart_reader_client_impl.cc", |
| "smart_reader_client_impl.h", |
| ] |
| |
| deps = [ |
| "//build:chromeos_buildflags", |
| "//chromeos/crosapi/mojom", |
| "//mojo/public/cpp/bindings", |
| ] |
| |
| if (is_chromeos_lacros) { |
| deps += [ "//chromeos/lacros" ] |
| } |
| } |
| |
| if (is_chromeos_ash) { |
| source_set("browser_tests") { |
| testonly = true |
| |
| defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| |
| sources = [ "smart_reader_client_browsertest.cc" ] |
| |
| deps = [ |
| ":smart_reader", |
| "//base/test:test_support", |
| "//chrome/test:test_support_ui", |
| "//content/test:test_support", |
| "//testing/gmock", |
| "//testing/gtest", |
| ] |
| } |
| } |