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