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

Unified Diff: chrome/renderer/BUILD.gn

Issue 559543003: Add chrome test support target to GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no more gyp changes Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/BUILD.gn
diff --git a/chrome/renderer/BUILD.gn b/chrome/renderer/BUILD.gn
index 1751d9126b0217c97574d2015df3f5acd01f2410..f16e68a8796674c71c7d0fa2f491140843858f63 100644
--- a/chrome/renderer/BUILD.gn
+++ b/chrome/renderer/BUILD.gn
@@ -159,3 +159,42 @@ static_library("renderer") {
# 'renderer/printing/print_web_view_helper_pdf_win.cc',
# ],
}
+
+# In GYP this is part of test_support_common.
+source_set("test_support") {
+ testonly = true
+ visibility = [ "//chrome/test:test_support" ]
+
+ sources = [
+ "chrome_mock_render_thread.cc",
+ "chrome_mock_render_thread.h",
+ "safe_browsing/mock_feature_extractor_clock.cc",
+ "safe_browsing/mock_feature_extractor_clock.h",
+ "safe_browsing/test_utils.cc",
+ "safe_browsing/test_utils.h",
+ ]
+
+ deps = [
+ ":renderer",
+ "//content/test:test_support",
+ "//testing/gmock",
+ "//testing/gtest",
+ ]
+
+ if (printing_mode == 1) {
+ deps += [ "//chrome/service" ]
+ }
+ if (printing_mode != 0) {
+ sources += [
+ "printing/mock_printer.cc",
+ "printing/mock_printer.h",
+ ]
+ }
+
+ if (enable_webrtc) {
+ sources += [
+ "media/mock_webrtc_logging_message_filter.cc",
+ "media/mock_webrtc_logging_message_filter.h",
+ ]
+ }
+}
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698