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("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 import("//third_party/protobuf/proto_library.gni") | 7 import("//third_party/protobuf/proto_library.gni") |
8 | 8 |
9 assert(is_chromeos, "Non-ChromeOS builds must not depend on //chromeos") | 9 assert(is_chromeos, "Non-ChromeOS builds must not depend on //chromeos") |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 } | 51 } |
52 } | 52 } |
53 | 53 |
54 # TYhis must be a static library instead of a source set because some of the | 54 # TYhis must be a static library instead of a source set because some of the |
55 # files pull in things with dependencies that aren't linked in all cases. | 55 # files pull in things with dependencies that aren't linked in all cases. |
56 # | 56 # |
57 # TODO this should probably be changed such that it links in all cases and | 57 # TODO this should probably be changed such that it links in all cases and |
58 # can be converted to a source set. | 58 # can be converted to a source set. |
59 static_library("test_support") { | 59 static_library("test_support") { |
60 testonly = true | 60 testonly = true |
61 configs += [ "//build/config/linux:dbus" ] | 61 configs += [ "//build/config/linux/dbus" ] |
62 public_deps = [ | 62 public_deps = [ |
63 ":chromeos", | 63 ":chromeos", |
64 ":cryptohome_proto", | 64 ":cryptohome_proto", |
65 ":power_manager_proto", | 65 ":power_manager_proto", |
66 ":test_support_without_gmock", | 66 ":test_support_without_gmock", |
67 "//testing/gmock", | 67 "//testing/gmock", |
68 ] | 68 ] |
69 sources = [ | 69 sources = [ |
70 "attestation/mock_attestation_flow.cc", | 70 "attestation/mock_attestation_flow.cc", |
71 "attestation/mock_attestation_flow.h", | 71 "attestation/mock_attestation_flow.h", |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 "network/mock_network_device_handler.h", | 111 "network/mock_network_device_handler.h", |
112 "network/onc/onc_test_utils.cc", | 112 "network/onc/onc_test_utils.cc", |
113 "network/onc/onc_test_utils.h", | 113 "network/onc/onc_test_utils.h", |
114 "system/fake_statistics_provider.cc", | 114 "system/fake_statistics_provider.cc", |
115 "system/fake_statistics_provider.h", | 115 "system/fake_statistics_provider.h", |
116 ] | 116 ] |
117 } | 117 } |
118 | 118 |
119 static_library("test_support_without_gmock") { | 119 static_library("test_support_without_gmock") { |
120 testonly = true | 120 testonly = true |
121 configs += [ "//build/config/linux:dbus" ] | 121 configs += [ "//build/config/linux/dbus" ] |
122 deps = [ | 122 deps = [ |
123 ":chromeos", | 123 ":chromeos", |
124 ":cryptohome_proto", | 124 ":cryptohome_proto", |
125 ":power_manager_proto", | 125 ":power_manager_proto", |
126 "//crypto", | 126 "//crypto", |
127 ] | 127 ] |
128 sources = [ | 128 sources = [ |
129 "dbus/fake_cros_disks_client.cc", | 129 "dbus/fake_cros_disks_client.cc", |
130 "dbus/fake_cros_disks_client.h", | 130 "dbus/fake_cros_disks_client.h", |
131 "dbus/fake_session_manager_client.cc", | 131 "dbus/fake_session_manager_client.cc", |
132 "dbus/fake_session_manager_client.h", | 132 "dbus/fake_session_manager_client.h", |
133 "dbus/fake_shill_manager_client.cc", | 133 "dbus/fake_shill_manager_client.cc", |
134 "dbus/fake_shill_manager_client.h", | 134 "dbus/fake_shill_manager_client.h", |
135 "dbus/fake_update_engine_client.cc", | 135 "dbus/fake_update_engine_client.cc", |
136 "dbus/fake_update_engine_client.h", | 136 "dbus/fake_update_engine_client.h", |
137 ] | 137 ] |
138 } | 138 } |
139 | 139 |
140 test("chromeos_unittests") { | 140 test("chromeos_unittests") { |
141 configs += [ | 141 configs += [ |
142 "//build/config/linux:dbus", | 142 "//build/config/linux/dbus", |
143 "//third_party/nss:system_nss_no_ssl_config", | 143 "//third_party/nss:system_nss_no_ssl_config", |
144 ] | 144 ] |
145 deps = [ | 145 deps = [ |
146 ":cryptohome_proto", | 146 ":cryptohome_proto", |
147 ":power_manager_proto", | 147 ":power_manager_proto", |
148 ":test_support", | 148 ":test_support", |
149 "//base/test:run_all_unittests", | 149 "//base/test:run_all_unittests", |
150 "//base/test:test_support", | 150 "//base/test:test_support", |
151 "//components/onc", | 151 "//components/onc", |
152 "//components/prefs:test_support", | 152 "//components/prefs:test_support", |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 proto_out_dir = "chromeos/dbus/cryptohome" | 193 proto_out_dir = "chromeos/dbus/cryptohome" |
194 } | 194 } |
195 | 195 |
196 proto_library("cryptohome_signkey_proto") { | 196 proto_library("cryptohome_signkey_proto") { |
197 sources = [ | 197 sources = [ |
198 "//third_party/cros_system_api/dbus/cryptohome/signed_secret.proto", | 198 "//third_party/cros_system_api/dbus/cryptohome/signed_secret.proto", |
199 ] | 199 ] |
200 | 200 |
201 proto_out_dir = "chromeos/cryptohome" | 201 proto_out_dir = "chromeos/cryptohome" |
202 } | 202 } |
OLD | NEW |