Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Side by Side Diff: net/tools/transport_security_state_generator/BUILD.gn

Issue 2680933009: Add unittests for HSTS decoding. (Closed)
Patch Set: -struct Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright (c) 2017 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import("//build/compiled_action.gni")
6
7 if (host_toolchain == current_toolchain) {
8 executable("transport_security_state_generator") {
9 sources = [
10 "bit_writer.cc",
11 "bit_writer.h",
12 "cert_util.cc",
13 "cert_util.h",
14 "huffman/huffman_builder.cc",
15 "huffman/huffman_builder.h",
16 "pinset.cc",
17 "pinset.h",
18 "pinsets.cc",
19 "pinsets.h",
20 "preloaded_state_generator.cc",
21 "preloaded_state_generator.h",
22 "spki_hash.cc",
23 "spki_hash.h",
24 "transport_security_state_entry.cc",
25 "transport_security_state_entry.h",
26 "transport_security_state_generator.cc",
27 "trie/trie_bit_buffer.cc",
28 "trie/trie_bit_buffer.h",
29 "trie/trie_writer.cc",
30 "trie/trie_writer.h",
31 ]
32 deps = [
33 "//base",
34 "//crypto",
35 "//third_party/boringssl",
36 ]
37 }
38 }
39
40 compiled_action_foreach("generate_test_data") {
41 tool = ":transport_security_state_generator"
42 sources = [
43 "../../http/transport_security_state_static_unittest1.json",
44 "../../http/transport_security_state_static_unittest2.json",
45 "../../http/transport_security_state_static_unittest3.json",
Ryan Sleevi 2017/03/17 22:17:37 So, I'm not sure this is the right or recommended
martijnc 2017/03/18 21:36:04 Updated this to not use relative paths. Also added
46 ]
47
48 # Inputs in order expected by the command line of the tool.
49 inputs = [
50 "../../http/transport_security_state_static_unittest.pins",
51 "resources/transport_security_state_static_unittest.template",
52 ]
53 outputs = [
54 "$target_gen_dir/../../http/{{source_name_part}}.h",
55 ]
56 args =
57 [ rebase_path("../../http/{{source_name_part}}.json", root_build_dir) ] +
58 rebase_path(inputs, root_build_dir) + rebase_path(outputs, root_build_dir)
59 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698