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("//net/features.gni") |
| 6 |
5 static_library("update_client") { | 7 static_library("update_client") { |
6 sources = [ | 8 sources = [ |
7 "action.cc", | 9 "action.cc", |
8 "action.h", | 10 "action.h", |
9 "action_update.cc", | 11 "action_update.cc", |
10 "action_update.h", | 12 "action_update.h", |
11 "action_update_check.cc", | 13 "action_update_check.cc", |
12 "action_update_check.h", | 14 "action_update_check.h", |
13 "action_wait.cc", | 15 "action_wait.cc", |
14 "action_wait.h", | 16 "action_wait.h", |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 outputs = [ | 110 outputs = [ |
109 "{{bundle_resources_dir}}/" + | 111 "{{bundle_resources_dir}}/" + |
110 "{{source_root_relative_dir}}/{{source_file_part}}", | 112 "{{source_root_relative_dir}}/{{source_file_part}}", |
111 ] | 113 ] |
112 } | 114 } |
113 | 115 |
114 source_set("unit_tests") { | 116 source_set("unit_tests") { |
115 testonly = true | 117 testonly = true |
116 sources = [ | 118 sources = [ |
117 "component_patcher_unittest.cc", | 119 "component_patcher_unittest.cc", |
118 "crx_downloader_unittest.cc", | |
119 "persisted_data_unittest.cc", | 120 "persisted_data_unittest.cc", |
120 "ping_manager_unittest.cc", | 121 "ping_manager_unittest.cc", |
121 "request_sender_unittest.cc", | 122 "request_sender_unittest.cc", |
122 "update_checker_unittest.cc", | 123 "update_checker_unittest.cc", |
123 "update_client_unittest.cc", | 124 "update_client_unittest.cc", |
124 "update_query_params_unittest.cc", | 125 "update_query_params_unittest.cc", |
125 "update_response_unittest.cc", | 126 "update_response_unittest.cc", |
126 "utils_unittest.cc", | 127 "utils_unittest.cc", |
127 ] | 128 ] |
128 | 129 |
| 130 if (!disable_file_support) { |
| 131 sources += [ "crx_downloader_unittest.cc" ] |
| 132 } |
| 133 |
129 deps = [ | 134 deps = [ |
130 ":test_support", | 135 ":test_support", |
131 ":unit_tests_bundle_data", | 136 ":unit_tests_bundle_data", |
132 ":update_client", | 137 ":update_client", |
133 "//base", | 138 "//base", |
134 "//components/prefs", | 139 "//components/prefs", |
135 "//components/prefs:test_support", | 140 "//components/prefs:test_support", |
136 "//courgette:courgette_lib", | 141 "//courgette:courgette_lib", |
137 "//net:test_support", | 142 "//net:test_support", |
138 "//testing/gmock", | 143 "//testing/gmock", |
139 "//testing/gtest", | 144 "//testing/gtest", |
140 "//third_party/libxml", | 145 "//third_party/libxml", |
141 ] | 146 ] |
142 } | 147 } |
OLD | NEW |