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

Unified Diff: remoting/BUILD.gn

Issue 961323004: Add remoting and PPAPI tests to GN build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync tests 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 | « ppapi/ppapi_tests.gypi ('k') | remoting/base/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/BUILD.gn
diff --git a/remoting/BUILD.gn b/remoting/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..6316a8c7d4543dbe09e9fae0c2eef9be4f41aa8a
--- /dev/null
+++ b/remoting/BUILD.gn
@@ -0,0 +1,104 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/features.gni")
+import("//build/config/ui.gni")
+import("//remoting/remoting_version.gni")
+import("//testing/test.gni")
+
+enable_remoting_host = is_win || is_mac || is_chromeos || use_x11
+
+# Various remoting targets need this version definition.
+config("version") {
+ defines = [ "VERSION=$version_full" ]
+}
+
+# GYP version: remoting/remoting_test.gypi:remoting_test_common
+source_set("test_support") {
+ testonly = true
+
+ sources = [
+ # Files from remoting_test_common not in separate test_support targets.
+ "signaling/fake_signal_strategy.cc",
+ "signaling/fake_signal_strategy.h",
+ "signaling/mock_signal_strategy.cc",
+ "signaling/mock_signal_strategy.h",
+ "test/access_token_fetcher.cc",
+ "test/app_remoting_test_driver_environment.cc",
+ "test/fake_access_token_fetcher.cc",
+ "test/fake_network_dispatcher.cc",
+ "test/fake_network_dispatcher.h",
+ "test/fake_network_manager.cc",
+ "test/fake_network_manager.h",
+ "test/fake_port_allocator.cc",
+ "test/fake_port_allocator.h",
+ "test/fake_socket_factory.cc",
+ "test/fake_socket_factory.h",
+ "test/leaky_bucket.cc",
+ "test/leaky_bucket.h",
+ "test/mock_access_token_fetcher.cc",
+ "test/refresh_token_store.cc",
+ ]
+
+ deps = [
+ "//base",
+ "//components/policy:test_support",
+ "//net",
+ "//remoting/base",
+ "//remoting/client",
+ "//remoting/codec",
+ "//remoting/protocol:test_support",
+ "//remoting/resources",
+ "//testing/gmock",
+ "//testing/gtest",
+ ]
+
+ if (enable_remoting_host) {
+ deps += [ "//remoting/host:test_support" ]
+ }
+}
+
+test("remoting_unittests") {
+ # Sources not included in one of the more specific unit_tests deps.
+ sources = [
+ "signaling/iq_sender_unittest.cc",
+ "signaling/log_to_server_unittest.cc",
+ "signaling/server_log_entry_unittest.cc",
+ "signaling/server_log_entry_unittest.h",
+ "test/access_token_fetcher_unittest.cc",
+ "test/app_remoting_test_driver_environment_unittest.cc",
+ ]
+
+ deps = [
+ ":test_support",
+ "//base/allocator",
+ "//google_apis",
+ "//remoting/base:unit_tests",
+ "//remoting/client:unit_tests",
+ "//remoting/protocol:unit_tests",
+ "//testing/gmock",
+ "//testing/gtest",
+ "//third_party/webrtc",
+ ]
+
+ if (is_android) {
+ deps += [ "//testing/android:native_test_native_code" ]
+ } else {
+ deps += [ "//remoting/client/plugin" ]
+ }
+
+ if (enable_remoting_host) {
+ deps += [
+ "//remoting/codec:unit_tests",
+ "//remoting/host:unit_tests",
+ ]
+ }
+
+ if (enable_webrtc) {
+ deps += [
+ "//third_party/libjingle:libjingle_webrtc",
+ "//third_party/libjingle:libpeerconnection",
+ ]
+ }
+}
« no previous file with comments | « ppapi/ppapi_tests.gypi ('k') | remoting/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698