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

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: git cl try 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
Index: chrome/renderer/BUILD.gn
diff --git a/chrome/renderer/BUILD.gn b/chrome/renderer/BUILD.gn
index 33b1183bf271aaa1bb85c6c1f8dc87922049f2a0..90c52ada7a042c6aca31a9a8b9a74e7ed0d34c84 100644
--- a/chrome/renderer/BUILD.gn
+++ b/chrome/renderer/BUILD.gn
@@ -158,3 +158,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') | mojo/embedder/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698