chromium/ios/web/public/session/proto/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.

import("//third_party/protobuf/proto_library.gni")

proto_library("proto") {
  proto_in_dir = "//"
  generate_cc = true
  generate_python = false
  sources = [
    "common.proto",
    "metadata.proto",
    "navigation.proto",
    "session.proto",
    "storage.proto",
  ]
}

source_set("proto_util") {
  sources = [
    "proto_util.cc",
    "proto_util.h",
  ]
  public_deps = [ ":proto" ]
  deps = [
    "//base",
    "//ios/web/common:user_agent",
    "//ios/web/public/navigation:referrer",
    "//url",
  ]
}

source_set("unittests") {
  testonly = true
  sources = [ "proto_util_unittest.cc" ]
  deps = [
    ":proto",
    ":proto_util",
    "//base",
    "//testing/gtest",
  ]
}