# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//extensions/buildflags/buildflags.gni")
assert(enable_extensions)
source_set("controlled_frame") {
sources = [
"api/controlled_frame_internal_api.cc",
"api/controlled_frame_internal_api.h",
"controlled_frame_extensions_browser_api_provider.cc",
"controlled_frame_extensions_browser_api_provider.h",
"controlled_frame_menu_icon_loader.cc",
"controlled_frame_menu_icon_loader.h",
]
deps = [
"//base",
"//chrome/browser/extensions",
"//chrome/browser/web_applications",
"//content/public/common",
"//extensions/browser",
"//extensions/common",
"//ui/gfx",
]
configs += [
"//build/config:precompiled_headers",
"//build/config/compiler:wexit_time_destructors",
]
public_deps = [ "//chrome/browser/controlled_frame/api:api_registration" ]
}
source_set("test_support") {
testonly = true
# Required by browser_test.h
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
sources = [
"controlled_frame_permission_request_test_base.cc",
"controlled_frame_permission_request_test_base.h",
"controlled_frame_test_base.cc",
"controlled_frame_test_base.h",
]
deps = [
"//base",
"//base/version_info",
"//chrome/browser",
"//chrome/browser/profiles:profile",
"//chrome/browser/web_applications",
"//chrome/browser/web_applications:web_applications_test_support",
"//chrome/common:chrome_features",
"//chrome/test:test_support",
"//components/content_settings/core/browser",
"//components/content_settings/core/common",
"//content/public/browser",
"//content/public/common",
"//content/test:test_support",
"//extensions/browser",
"//testing/gmock",
"//testing/gtest",
"//url",
]
}