chromium/components/commerce/core/parcel/BUILD.gn

# 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.

source_set("parcel") {
  sources = [
    "parcels_manager.cc",
    "parcels_manager.h",
    "parcels_server_proxy.cc",
    "parcels_server_proxy.h",
    "parcels_storage.cc",
    "parcels_storage.h",
    "parcels_utils.cc",
    "parcels_utils.h",
  ]
  deps = [
    "//base",
    "//components/commerce/core:account_checker",
    "//components/commerce/core:commerce_constants",
    "//components/commerce/core:commerce_types",
    "//components/commerce/core:feature_list",
    "//components/commerce/core:parcel_tracking_db_content_proto",
    "//components/commerce/core:proto",
    "//components/endpoint_fetcher:endpoint_fetcher",
    "//components/leveldb_proto",
    "//components/signin/public/identity_manager:identity_manager",
    "//net:net",
    "//net/traffic_annotation:traffic_annotation",
    "//services/data_decoder/public/cpp",
    "//services/network/public/cpp:cpp",
  ]
  public_deps = [ "//components/session_proto_db:core" ]
}

source_set("unit_tests") {
  testonly = true

  sources = [
    "parcels_manager_unittest.cc",
    "parcels_server_proxy_unittest.cc",
    "parcels_storage_unittest.cc",
  ]

  # Expose all deps for test support.
  public_deps = [
    ":parcel",
    "//base/test:test_support",
    "//components/commerce/core:commerce_constants",
    "//components/commerce/core:commerce_types",
    "//components/commerce/core:parcel_tracking_db_content_proto",
    "//components/commerce/core:proto",
    "//components/endpoint_fetcher:test_support",
    "//components/signin/public/identity_manager:test_support",
    "//net/traffic_annotation:test_support",
    "//services/data_decoder/public/cpp:test_support",
    "//services/network:test_support",
    "//services/network/public/cpp:cpp",
    "//testing/gmock",
    "//testing/gtest",
    "//url:url",
  ]
}