summaryrefslogtreecommitdiff
path: root/chromium/components/certificate_reporting/BUILD.gn
blob: eee31993b707b3d65d3aeb9c0bed858ee990e7dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright 2015 The Chromium Authors. All rights reserved.
# 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")

static_library("certificate_reporting") {
  sources = [
    "cert_logger.proto",
    "encrypted_cert_logger.proto",
    "error_report.cc",
    "error_report.h",
    "error_reporter.cc",
    "error_reporter.h",
  ]

  public_deps = [
    ":cert_logger_proto",
    ":encrypted_cert_logger_proto",
  ]
  deps = [
    "//base",
    "//crypto",
    "//net",
    "//url",
  ]
}

proto_library("cert_logger_proto") {
  sources = [
    "cert_logger.proto",
  ]
}

proto_library("encrypted_cert_logger_proto") {
  sources = [
    "encrypted_cert_logger.proto",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "error_report_unittest.cc",
    "error_reporter_unittest.cc",
  ]

  deps = [
    ":certificate_reporting",
    "//base",
    "//net:test_support",
    "//testing/gtest",
  ]
}