| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//third_party/protobuf/proto_library.gni") | 5 import("//third_party/protobuf/proto_library.gni") |
| 6 | 6 |
| 7 static_library("certificate_reporting") { | 7 static_library("certificate_reporting") { |
| 8 sources = [ | 8 sources = [ |
| 9 "cert_logger.proto", | 9 "cert_logger.proto", |
| 10 "encrypted_cert_logger.proto", | 10 "encrypted_cert_logger.proto", |
| 11 "error_report.cc", | 11 "error_report.cc", |
| 12 "error_report.h", | 12 "error_report.h", |
| 13 "error_reporter.cc", | 13 "error_reporter.cc", |
| 14 "error_reporter.h", | 14 "error_reporter.h", |
| 15 ] | 15 ] |
| 16 | 16 |
| 17 public_deps = [ | 17 public_deps = [ |
| 18 ":cert_logger_proto", | 18 ":cert_logger_proto", |
| 19 ":encrypted_cert_logger_proto", | 19 ":encrypted_cert_logger_proto", |
| 20 ] | 20 ] |
| 21 deps = [ | 21 deps = [ |
| 22 "//base", | 22 "//base", |
| 23 "//components/variations", |
| 23 "//crypto", | 24 "//crypto", |
| 24 "//net", | 25 "//net", |
| 25 "//url", | 26 "//url", |
| 26 ] | 27 ] |
| 27 } | 28 } |
| 28 | 29 |
| 29 proto_library("cert_logger_proto") { | 30 proto_library("cert_logger_proto") { |
| 30 sources = [ | 31 sources = [ |
| 31 "cert_logger.proto", | 32 "cert_logger.proto", |
| 32 ] | 33 ] |
| 33 } | 34 } |
| 34 | 35 |
| 35 proto_library("encrypted_cert_logger_proto") { | 36 proto_library("encrypted_cert_logger_proto") { |
| 36 sources = [ | 37 sources = [ |
| 37 "encrypted_cert_logger.proto", | 38 "encrypted_cert_logger.proto", |
| 38 ] | 39 ] |
| 39 } | 40 } |
| 40 | 41 |
| 41 source_set("unit_tests") { | 42 source_set("unit_tests") { |
| 42 testonly = true | 43 testonly = true |
| 43 sources = [ | 44 sources = [ |
| 44 "error_report_unittest.cc", | 45 "error_report_unittest.cc", |
| 45 "error_reporter_unittest.cc", | 46 "error_reporter_unittest.cc", |
| 46 ] | 47 ] |
| 47 | 48 |
| 48 deps = [ | 49 deps = [ |
| 49 ":certificate_reporting", | 50 ":certificate_reporting", |
| 50 "//base", | 51 "//base", |
| 52 "//base/test:test_support", |
| 53 "//components/variations", |
| 51 "//net:test_support", | 54 "//net:test_support", |
| 52 "//testing/gtest", | 55 "//testing/gtest", |
| 53 ] | 56 ] |
| 54 } | 57 } |
| OLD | NEW |