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/features.gni") | 5 import("//build/config/features.gni") |
6 import("//tools/grit/grit_rule.gni") | 6 import("//tools/grit/grit_rule.gni") |
7 | 7 |
8 gypi_values = exec_script( | 8 gypi_values = exec_script( |
9 "//build/gypi_to_gn.py", | 9 "//build/gypi_to_gn.py", |
10 [ rebase_path("../chrome_renderer.gypi") ], | 10 [ rebase_path("../chrome_renderer.gypi") ], |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 # We should isolate the APIs needed by the renderer. | 152 # We should isolate the APIs needed by the renderer. |
153 "//chrome/common/extensions/api", | 153 "//chrome/common/extensions/api", |
154 ] | 154 ] |
155 } | 155 } |
156 | 156 |
157 # TODO(GYP) | 157 # TODO(GYP) |
158 # 'sources': [ | 158 # 'sources': [ |
159 # 'renderer/printing/print_web_view_helper_pdf_win.cc', | 159 # 'renderer/printing/print_web_view_helper_pdf_win.cc', |
160 # ], | 160 # ], |
161 } | 161 } |
| 162 |
| 163 # In GYP this is part of test_support_common. |
| 164 source_set("test_support") { |
| 165 testonly = true |
| 166 visibility = [ "//chrome/test:test_support" ] |
| 167 |
| 168 sources = [ |
| 169 "chrome_mock_render_thread.cc", |
| 170 "chrome_mock_render_thread.h", |
| 171 "safe_browsing/mock_feature_extractor_clock.cc", |
| 172 "safe_browsing/mock_feature_extractor_clock.h", |
| 173 "safe_browsing/test_utils.cc", |
| 174 "safe_browsing/test_utils.h", |
| 175 ] |
| 176 |
| 177 deps = [ |
| 178 ":renderer", |
| 179 "//content/test:test_support", |
| 180 "//testing/gmock", |
| 181 "//testing/gtest", |
| 182 ] |
| 183 |
| 184 if (printing_mode == 1) { |
| 185 deps += [ "//chrome/service" ] |
| 186 } |
| 187 if (printing_mode != 0) { |
| 188 sources += [ |
| 189 "printing/mock_printer.cc", |
| 190 "printing/mock_printer.h", |
| 191 ] |
| 192 } |
| 193 |
| 194 if (enable_webrtc) { |
| 195 sources += [ |
| 196 "media/mock_webrtc_logging_message_filter.cc", |
| 197 "media/mock_webrtc_logging_message_filter.h", |
| 198 ] |
| 199 } |
| 200 } |
OLD | NEW |