blob: 39120503e84b976e8bd0081cb7635f4439c9c239 [file] [log] [blame]
# Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
static_library("browser") {
sources = [
"commerce_internals_ui.cc",
"commerce_internals_ui.h",
"commerce_tab_helper.cc",
"commerce_tab_helper.h",
"web_contents_wrapper.cc",
"web_contents_wrapper.h",
"web_extractor_impl.cc",
"web_extractor_impl.h",
]
deps = [
"//base",
"//components/commerce/core:shopping_service",
"//components/commerce/core/mojom:mojo_bindings",
"//components/history/core/browser:features",
"//components/resources:components_resources_grit",
"//content/public/browser",
"//mojo/public/cpp/bindings",
"//net",
"//ui/webui",
]
public_deps = [ "//components/commerce/core/internals" ]
}
source_set("unit_tests") {
testonly = true
sources = [
"commerce_tab_helper_unittest.cc",
"web_extractor_impl_unittest.cc",
]
deps = [
":browser",
"//base",
"//base/test:test_support",
"//components/commerce/core:shopping_service_test_support",
"//components/commerce/core/mojom:mojo_bindings",
"//components/history/core/browser:features",
"//content/public/browser",
"//content/test:test_support",
"//testing/gtest",
]
}