| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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") |
| 6 |
| 5 static_library("crx_file") { | 7 static_library("crx_file") { |
| 6 sources = [ | 8 sources = [ |
| 7 "crx2_file.cc", | 9 "crx2_file.cc", |
| 8 "crx2_file.h", | 10 "crx2_file.h", |
| 9 "crx_verifier.cc", | 11 "crx_verifier.cc", |
| 10 "crx_verifier.h", | 12 "crx_verifier.h", |
| 11 "id_util.cc", | 13 "id_util.cc", |
| 12 "id_util.h", | 14 "id_util.h", |
| 13 ] | 15 ] |
| 14 | 16 |
| 15 deps = [ | 17 deps = [ |
| 16 "//base", | 18 "//base", |
| 17 "//crypto", | 19 "//crypto", |
| 18 ] | 20 ] |
| 21 |
| 22 public_deps = [ |
| 23 ":crx3_proto", |
| 24 ] |
| 19 } | 25 } |
| 20 | 26 |
| 21 source_set("unit_tests") { | 27 source_set("unit_tests") { |
| 22 testonly = true | 28 testonly = true |
| 23 sources = [ | 29 sources = [ |
| 24 "id_util_unittest.cc", | 30 "id_util_unittest.cc", |
| 25 ] | 31 ] |
| 26 | 32 |
| 27 deps = [ | 33 deps = [ |
| 28 ":crx_file", | 34 ":crx_file", |
| 29 "//base", | 35 "//base", |
| 30 "//testing/gtest", | 36 "//testing/gtest", |
| 31 ] | 37 ] |
| 32 } | 38 } |
| 39 |
| 40 proto_library("crx3_proto") { |
| 41 sources = [ |
| 42 "crx3.proto", |
| 43 ] |
| 44 } |
| OLD | NEW |