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

Unified Diff: webrtc/modules/desktop_capture/BUILD.gn

Issue 2629923002: GN: Refactor modules_unittests to eliminate package boundary violations. (Closed)
Patch Set: Addressing comments. Created 3 years, 11 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 | « webrtc/modules/congestion_controller/BUILD.gn ('k') | webrtc/modules/media_file/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/desktop_capture/BUILD.gn
diff --git a/webrtc/modules/desktop_capture/BUILD.gn b/webrtc/modules/desktop_capture/BUILD.gn
index 4920611bec6db777fc044af6c1bd6bc65802e516..67ec8cea3751b7742fcbaa71d282041c51c109eb 100644
--- a/webrtc/modules/desktop_capture/BUILD.gn
+++ b/webrtc/modules/desktop_capture/BUILD.gn
@@ -33,6 +33,51 @@ rtc_static_library("primitives") {
}
if (rtc_include_tests) {
+ rtc_source_set("desktop_capture_unittests") {
+ testonly = true
+ sources = []
+ deps = []
+ if (rtc_desktop_capture_supported || is_android) {
+ deps += [
+ ":desktop_capture",
+ ":primitives",
+ "../..:webrtc_common",
+ "../../base:rtc_base_approved",
+ "../../system_wrappers:system_wrappers",
+ "../../test:test_support",
+ "//testing/gmock",
+ ]
+ sources += [
+ "desktop_region_unittest.cc",
+ "differ_block_unittest.cc",
+ ]
+ }
+ if (rtc_desktop_capture_supported) {
+ sources += [
+ "desktop_and_cursor_composer_unittest.cc",
+ "desktop_capturer_differ_wrapper_unittest.cc",
+ "desktop_frame_rotation_unittest.cc",
+ "mouse_cursor_monitor_unittest.cc",
+ "rgba_color_unittest.cc",
+ "screen_capturer_helper_unittest.cc",
+ "screen_capturer_mac_unittest.cc",
+ "screen_capturer_unittest.cc",
+ "test_utils.cc",
+ "test_utils.h",
+ "test_utils_unittest.cc",
+ "win/cursor_unittest.cc",
+ "win/cursor_unittest_resources.h",
+ "win/cursor_unittest_resources.rc",
+ "window_capturer_unittest.cc",
+ ]
+ deps += [ ":desktop_capture_mock" ]
+ }
+ if (!build_with_chromium && is_clang) {
+ # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
+ suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
+ }
+ }
+
source_set("rgba_color") {
testonly = true
« no previous file with comments | « webrtc/modules/congestion_controller/BUILD.gn ('k') | webrtc/modules/media_file/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698