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

Unified Diff: remoting/base/BUILD.gn

Issue 969173002: Add remoting and PPAPI tests to GN build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « remoting/BUILD.gn ('k') | remoting/client/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/BUILD.gn
diff --git a/remoting/base/BUILD.gn b/remoting/base/BUILD.gn
index 5080599df6a52c7e0b8314f29ada3c9b6ae8a482..bb79d52643a046cc5e9f18dcae5c915a4ad69763 100644
--- a/remoting/base/BUILD.gn
+++ b/remoting/base/BUILD.gn
@@ -2,13 +2,12 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-static_library("base") {
- gypi_values = exec_script("//build/gypi_to_gn.py",
- [ rebase_path("../remoting_srcs.gypi") ],
- "scope",
- [ "../remoting_srcs.gypi" ])
+import("//remoting/remoting_srcs.gni")
- sources = rebase_path(gypi_values.remoting_base_sources, ".", "//remoting")
+source_set("base") {
+ sources = rebase_path(remoting_srcs_gypi_values.remoting_base_sources,
+ ".",
+ "//remoting")
configs += [ "//build/config/compiler:wexit_time_destructors" ]
@@ -25,10 +24,43 @@ static_library("base") {
"//remoting/resources",
"//third_party/libvpx",
"//third_party/libyuv",
- "//third_party/opus",
"//third_party/webrtc/modules/desktop_capture",
"//ui/base",
- "//ui/gfx",
- "//ui/gfx/geometry",
]
}
+
+source_set("unit_tests") {
+ testonly = true
+
+ sources = [
+ "auto_thread_task_runner_unittest.cc",
+ "auto_thread_unittest.cc",
+ "breakpad_win_unittest.cc",
+ "buffered_socket_writer_unittest.cc",
+ "capabilities_unittest.cc",
+ "compound_buffer_unittest.cc",
+ "rate_counter_unittest.cc",
+ "rsa_key_pair_unittest.cc",
+ "run_all_unittests.cc",
+ "running_average_unittest.cc",
+ "test_rsa_key_pair.h",
+ "typed_buffer_unittest.cc",
+ "util_unittest.cc",
+ ]
+
+ deps = [
+ ":base",
+ "//base",
+ "//net:test_support",
+ "//testing/gmock",
+ "//testing/gtest",
+ "//third_party/libyuv",
+ "//third_party/webrtc/modules/desktop_capture",
+ ]
+
+ if (is_win || is_mac || is_chromeos) {
+ sources += [ "resources_unittest.cc" ]
+ deps += [ "//breakpad:client" ]
+ }
+
+}
« no previous file with comments | « remoting/BUILD.gn ('k') | remoting/client/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698