| # 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") |
| |
| assert(is_chromeos_ash) |
| |
| static_library("magic_boost") { |
| sources = [ |
| "magic_boost_controller_ash.cc", |
| "magic_boost_controller_ash.h", |
| "magic_boost_metrics.cc", |
| "magic_boost_metrics.h", |
| "magic_boost_state_ash.cc", |
| "magic_boost_state_ash.h", |
| ] |
| |
| deps = [ |
| "//ash", |
| "//ash/constants", |
| "//base", |
| "//chromeos/components/magic_boost/public/cpp", |
| "//chromeos/crosapi/mojom", |
| "//components/prefs", |
| "//mojo/public/cpp/bindings", |
| "//ui/views", |
| ] |
| } |
| |
| static_library("test_support") { |
| testonly = true |
| |
| sources = [ |
| "mock_editor_panel_manager.cc", |
| "mock_editor_panel_manager.h", |
| "mock_magic_boost_state.cc", |
| "mock_magic_boost_state.h", |
| ] |
| |
| deps = [ |
| ":magic_boost", |
| "//base", |
| "//chrome/browser/ash", |
| "//chrome/browser/ash/input_method", |
| "//testing/gmock", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| |
| sources = [ |
| "magic_boost_controller_ash_unittest.cc", |
| "magic_boost_state_ash_unittest.cc", |
| ] |
| |
| deps = [ |
| ":magic_boost", |
| ":test_support", |
| "//ash", |
| "//ash:test_support", |
| "//ash/constants", |
| "//base", |
| "//chrome/browser/ash/input_method", |
| "//chromeos/components/magic_boost/public/cpp", |
| "//components/sync_preferences:test_support", |
| "//testing/gmock", |
| "//ui/base", |
| "//ui/display", |
| "//ui/lottie", |
| ] |
| } |
| |
| source_set("browser_tests") { |
| testonly = true |
| |
| defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| |
| sources = [ "magic_boost_browsertest.cc" ] |
| |
| deps = [ |
| ":magic_boost", |
| "//ash", |
| "//ash/constants", |
| "//base", |
| "//base/test:test_support", |
| "//chrome/browser/ui/chromeos/magic_boost:magic_boost", |
| "//chrome/browser/ui/chromeos/magic_boost:magic_boost_constants", |
| "//chrome/test:test_support", |
| "//chromeos/constants", |
| "//content/public/browser", |
| "//content/test:test_support", |
| "//testing/gtest", |
| "//ui/base", |
| "//ui/compositor", |
| "//ui/events:test_support", |
| "//ui/views", |
| ] |
| } |