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

Side by Side Diff: components/security_state/BUILD.gn

Issue 1903443002: [GN/iOS] Explicitly list test data in //components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-fix-jingle
Patch Set: Address comments and disable non-fonctional test Created 4 years, 8 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
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 if (is_android) { 5 if (is_android) {
6 import("//build/config/android/config.gni") 6 import("//build/config/android/config.gni")
7 import("//build/config/android/rules.gni") 7 import("//build/config/android/rules.gni")
8 } 8 }
9 9
10 # GYP version: components/security_state.gyp 10 # GYP version: components/security_state.gyp
(...skipping 14 matching lines...) Expand all
25 25
26 if (is_android) { 26 if (is_android) {
27 # GYP: //components/security_state.gypi:security_state_enums_java 27 # GYP: //components/security_state.gypi:security_state_enums_java
28 java_cpp_enum("security_state_enums_java") { 28 java_cpp_enum("security_state_enums_java") {
29 sources = [ 29 sources = [
30 "security_state_model.h", 30 "security_state_model.h",
31 ] 31 ]
32 } 32 }
33 } 33 }
34 34
35 bundle_data("unit_tests_bundle_data") {
36 visibility = [ ":unit_tests" ]
37 testonly = true
38 sources = [
39 "//net/data/ssl/certificates/sha1_2016.pem",
40 ]
41 outputs = [
42 "{{bundle_resources_dir}}/" +
43 "{{source_root_relative_dir}}/{{source_file_part}}",
44 ]
45 }
46
35 source_set("unit_tests") { 47 source_set("unit_tests") {
36 testonly = true 48 testonly = true
37 sources = [ 49 sources = [
38 "security_state_model_unittest.cc", 50 "security_state_model_unittest.cc",
39 ] 51 ]
40 52
41 deps = [ 53 deps = [
42 ":security_state", 54 ":security_state",
55 ":unit_tests_bundle_data",
43 "//net:test_support", 56 "//net:test_support",
44 "//testing/gtest", 57 "//testing/gtest",
45 ] 58 ]
46 59
47 data = [ 60 data = [
48 "//net/data/", 61 "//net/data/",
49 ] 62 ]
50 } 63 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698