summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--remoting/BUILD.gn68
-rw-r--r--remoting/base/BUILD.gn1
-rw-r--r--remoting/client/BUILD.gn4
-rw-r--r--remoting/host/BUILD.gn15
-rw-r--r--remoting/protocol/BUILD.gn3
-rw-r--r--remoting/remoting.gyp2
-rw-r--r--remoting/remoting_all.gyp5
-rw-r--r--remoting/remoting_host_srcs.gypi2
-rw-r--r--remoting/remoting_host_win.gypi2
-rw-r--r--remoting/remoting_nacl.gyp1
-rw-r--r--remoting/remoting_srcs.gypi3
-rw-r--r--remoting/remoting_test.gypi111
-rw-r--r--remoting/signaling/BUILD.gn67
-rw-r--r--remoting/test/BUILD.gn154
14 files changed, 284 insertions, 154 deletions
diff --git a/remoting/BUILD.gn b/remoting/BUILD.gn
index 0aeb666..06b0637 100644
--- a/remoting/BUILD.gn
+++ b/remoting/BUILD.gn
@@ -71,57 +71,10 @@ group("remoting_all") {
}
}
-# GYP version: remoting/remoting_test.gypi:remoting_test_common
+# GYP version: remoting/remoting_test.gypi:remoting_test_support
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/access_token_fetcher.h",
- "test/app_remoting_report_issue_request.cc",
- "test/app_remoting_report_issue_request.h",
- "test/app_remoting_service_urls.cc",
- "test/app_remoting_service_urls.h",
- "test/app_remoting_test_driver_environment.cc",
- "test/app_remoting_test_driver_environment.h",
- "test/app_remoting_test_driver_environment_app_details.cc",
- "test/fake_access_token_fetcher.cc",
- "test/fake_access_token_fetcher.h",
- "test/fake_app_remoting_report_issue_request.cc",
- "test/fake_app_remoting_report_issue_request.h",
- "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_remote_host_info_fetcher.cc",
- "test/fake_remote_host_info_fetcher.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/mock_access_token_fetcher.h",
- "test/refresh_token_store.cc",
- "test/refresh_token_store.h",
- "test/remote_application_details.h",
- "test/remote_connection_observer.h",
- "test/remote_host_info.cc",
- "test/remote_host_info.h",
- "test/remote_host_info_fetcher.cc",
- "test/remote_host_info_fetcher.h",
- "test/test_chromoting_client.cc",
- "test/test_chromoting_client.h",
- "test/test_video_renderer.cc",
- "test/test_video_renderer.h",
- ]
-
deps = [
"//base",
"//net",
@@ -130,6 +83,8 @@ source_set("test_support") {
"//remoting/codec",
"//remoting/protocol:test_support",
"//remoting/resources",
+ "//remoting/signaling:test_support",
+ "//remoting/test:test_support",
"//testing/gmock",
"//testing/gtest",
]
@@ -146,20 +101,6 @@ source_set("test_support") {
# TODO(GYP) remoting_unittests on Mac. Needs to be tested.
if (!is_mac) {
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_report_issue_request_unittest.cc",
- "test/app_remoting_test_driver_environment_unittest.cc",
- "test/remote_host_info_fetcher_unittest.cc",
- "test/test_chromoting_client_unittest.cc",
- "test/test_video_renderer_unittest.cc",
- ]
-
configs += [
":version",
@@ -173,8 +114,9 @@ if (!is_mac) {
"//google_apis",
"//remoting/base:unit_tests",
"//remoting/client:unit_tests",
- "//remoting/protocol:test_support",
"//remoting/protocol:unit_tests",
+ "//remoting/signaling:unit_tests",
+ "//remoting/test:unit_tests",
"//testing/gmock",
"//testing/gtest",
"//third_party/webrtc",
diff --git a/remoting/base/BUILD.gn b/remoting/base/BUILD.gn
index b36f5e8..6853315 100644
--- a/remoting/base/BUILD.gn
+++ b/remoting/base/BUILD.gn
@@ -61,6 +61,7 @@ source_set("unit_tests") {
"capabilities_unittest.cc",
"compound_buffer_unittest.cc",
"rate_counter_unittest.cc",
+ "resources_unittest.cc",
"rsa_key_pair_unittest.cc",
"run_all_unittests.cc",
"running_average_unittest.cc",
diff --git a/remoting/client/BUILD.gn b/remoting/client/BUILD.gn
index 5bc14ec..9ea04c4 100644
--- a/remoting/client/BUILD.gn
+++ b/remoting/client/BUILD.gn
@@ -29,8 +29,12 @@ source_set("unit_tests") {
sources = [
"audio_player_unittest.cc",
"client_status_logger_unittest.cc",
+ "empty_cursor_filter_unittest.cc",
"key_event_mapper_unittest.cc",
+ "normalizing_input_filter_cros_unittest.cc",
+ "normalizing_input_filter_mac_unittest.cc",
"server_log_entry_client_unittest.cc",
+ "touch_input_scaler_unittest.cc",
]
configs += [ "//remoting:version" ]
diff --git a/remoting/host/BUILD.gn b/remoting/host/BUILD.gn
index ceb6760..fed9117 100644
--- a/remoting/host/BUILD.gn
+++ b/remoting/host/BUILD.gn
@@ -214,12 +214,18 @@ if (is_mac) { # TODO(GYP) Mac build of remoting host.
"fake_host_status_monitor.h",
"fake_mouse_cursor_monitor.cc",
"fake_mouse_cursor_monitor.h",
+ "fake_oauth_token_getter.cc",
+ "fake_oauth_token_getter.h",
+ "host_mock_objects.cc",
+ "setup/mock_oauth_client.cc",
+ "setup/mock_oauth_client.h",
]
configs += [ "//remoting:version" ]
deps = [
"//remoting/proto",
+ "//testing/gmock",
"//testing/gtest",
]
public_deps = [
@@ -241,6 +247,7 @@ if (is_mac) { # TODO(GYP) Mac build of remoting host.
sources = [
"audio_pump_unittest.cc",
"audio_silence_detector_unittest.cc",
+ "backoff_timer_unittest.cc",
"capture_scheduler_unittest.cc",
"chromeos/aura_desktop_capturer_unittest.cc",
"chromeos/clipboard_aura_unittest.cc",
@@ -251,12 +258,13 @@ if (is_mac) { # TODO(GYP) Mac build of remoting host.
"daemon_process_unittest.cc",
"desktop_process_unittest.cc",
"desktop_shape_tracker_unittest.cc",
+ "gcd_rest_client_unittest.cc",
+ "gcd_state_updater_unittest.cc",
"gnubby_auth_handler_posix_unittest.cc",
"heartbeat_sender_unittest.cc",
"host_change_notification_listener_unittest.cc",
"host_config_unittest.cc",
"host_extension_session_manager_unittest.cc",
- "host_mock_objects.cc",
"host_status_logger_unittest.cc",
"ipc_desktop_environment_unittest.cc",
"it2me/it2me_confirmation_dialog_proxy_unittest.cc",
@@ -278,16 +286,15 @@ if (is_mac) { # TODO(GYP) Mac build of remoting host.
"screen_resolution_unittest.cc",
"server_log_entry_host_unittest.cc",
"setup/me2me_native_messaging_host_unittest.cc",
- "setup/mock_oauth_client.cc",
"setup/oauth_helper_unittest.cc",
"setup/pin_validator_unittest.cc",
"shaped_desktop_capturer_unittest.cc",
+ "third_party_auth_config_unittest.cc",
"token_validator_factory_impl_unittest.cc",
+ "touch_injector_win_unittest.cc",
"video_frame_pump_unittest.cc",
"video_frame_recorder_unittest.cc",
"win/rdp_client_unittest.cc",
- "win/worker_process_launcher.cc",
- "win/worker_process_launcher.h",
"win/worker_process_launcher_unittest.cc",
]
diff --git a/remoting/protocol/BUILD.gn b/remoting/protocol/BUILD.gn
index 5cef6e8..51ceb34 100644
--- a/remoting/protocol/BUILD.gn
+++ b/remoting/protocol/BUILD.gn
@@ -22,10 +22,10 @@ source_set("protocol") {
"//base",
"//crypto",
"//jingle:jingle_glue",
- "//jingle:notifier",
"//net",
"//remoting/base",
"//remoting/codec",
+ "//remoting/signaling",
]
}
@@ -79,6 +79,7 @@ source_set("unit_tests") {
"mouse_input_filter_unittest.cc",
"negotiating_authenticator_unittest.cc",
"pairing_registry_unittest.cc",
+ "port_range_unittest.cc",
"ppapi_module_stub.cc",
"pseudotcp_adapter_unittest.cc",
"ssl_hmac_channel_authenticator_unittest.cc",
diff --git a/remoting/remoting.gyp b/remoting/remoting.gyp
index d4f1764..43796d5 100644
--- a/remoting/remoting.gyp
+++ b/remoting/remoting.gyp
@@ -234,7 +234,6 @@
'../base/base.gyp:base',
'../crypto/crypto.gyp:crypto',
'../jingle/jingle.gyp:jingle_glue',
- '../jingle/jingle.gyp:notifier',
'../net/net.gyp:net',
'../third_party/expat/expat.gyp:expat',
'../third_party/libjingle/libjingle.gyp:libjingle',
@@ -245,6 +244,7 @@
],
'sources': [
'<@(remoting_protocol_sources)',
+ '<@(remoting_signaling_sources)',
],
}, # end of target 'remoting_protocol'
], # end of targets
diff --git a/remoting/remoting_all.gyp b/remoting/remoting_all.gyp
index 70adde6..a0e4826 100644
--- a/remoting/remoting_all.gyp
+++ b/remoting/remoting_all.gyp
@@ -21,10 +21,11 @@
'../remoting/remoting.gyp:remoting_browser_test_resources',
'../remoting/remoting.gyp:remoting_client',
'../remoting/remoting.gyp:remoting_client_plugin',
+ '../remoting/remoting.gyp:remoting_perftests',
'../remoting/remoting.gyp:remoting_protocol',
- '../remoting/remoting.gyp:remoting_test_common',
- '../remoting/remoting.gyp:remoting_unittests',
'../remoting/remoting.gyp:remoting_resources',
+ '../remoting/remoting.gyp:remoting_test_support',
+ '../remoting/remoting.gyp:remoting_unittests',
'../remoting/remoting.gyp:remoting_webapp',
'../remoting/remoting.gyp:remoting_webapp_html',
'../remoting/remoting.gyp:remoting_webapp_unittests',
diff --git a/remoting/remoting_host_srcs.gypi b/remoting/remoting_host_srcs.gypi
index 0a6366e..07c4711 100644
--- a/remoting/remoting_host_srcs.gypi
+++ b/remoting/remoting_host_srcs.gypi
@@ -264,6 +264,8 @@
'host/win/session_input_injector.h',
'host/win/window_station_and_desktop.cc',
'host/win/window_station_and_desktop.h',
+ 'host/win/worker_process_launcher.cc',
+ 'host/win/worker_process_launcher.h',
'host/win/wts_terminal_monitor.cc',
'host/win/wts_terminal_monitor.h',
'host/win/wts_terminal_observer.h',
diff --git a/remoting/remoting_host_win.gypi b/remoting/remoting_host_win.gypi
index 9f52deb..7cfd86a 100644
--- a/remoting/remoting_host_win.gypi
+++ b/remoting/remoting_host_win.gypi
@@ -232,8 +232,6 @@
'host/win/rdp_desktop_session.h',
'host/win/unprivileged_process_delegate.cc',
'host/win/unprivileged_process_delegate.h',
- 'host/win/worker_process_launcher.cc',
- 'host/win/worker_process_launcher.h',
'host/win/wts_session_process_delegate.cc',
'host/win/wts_session_process_delegate.h',
'host/worker_process_ipc_delegate.h',
diff --git a/remoting/remoting_nacl.gyp b/remoting/remoting_nacl.gyp
index bbe8f44..be51588 100644
--- a/remoting/remoting_nacl.gyp
+++ b/remoting/remoting_nacl.gyp
@@ -119,6 +119,7 @@
'<@(remoting_client_plugin_sources)',
'<@(remoting_client_sources)',
'<@(remoting_protocol_sources)',
+ '<@(remoting_signaling_sources)',
],
'sources!': [
'base/url_request_context_getter.cc',
diff --git a/remoting/remoting_srcs.gypi b/remoting/remoting_srcs.gypi
index c51a724..56cfea3 100644
--- a/remoting/remoting_srcs.gypi
+++ b/remoting/remoting_srcs.gypi
@@ -199,6 +199,9 @@
'protocol/v2_authenticator.cc',
'protocol/v2_authenticator.h',
'protocol/video_stub.h',
+ ],
+
+ 'remoting_signaling_sources': [
'signaling/iq_sender.cc',
'signaling/iq_sender.h',
'signaling/jid_util.cc',
diff --git a/remoting/remoting_test.gypi b/remoting/remoting_test.gypi
index a665b50..ec3a693 100644
--- a/remoting/remoting_test.gypi
+++ b/remoting/remoting_test.gypi
@@ -6,7 +6,7 @@
'targets': [
{
# GN version: //remoting:test_support
- 'target_name': 'remoting_test_common',
+ 'target_name': 'remoting_test_support',
'type': 'static_library',
'dependencies': [
'../base/base.gyp:base',
@@ -26,9 +26,13 @@
'host/fake_desktop_capturer.h',
'host/fake_desktop_environment.cc',
'host/fake_desktop_environment.h',
+ 'host/fake_host_extension.cc',
+ 'host/fake_host_extension.h',
'host/fake_host_status_monitor.h',
'host/fake_mouse_cursor_monitor.cc',
'host/fake_mouse_cursor_monitor.h',
+ 'host/fake_oauth_token_getter.cc',
+ 'host/fake_oauth_token_getter.h',
'protocol/fake_authenticator.cc',
'protocol/fake_authenticator.h',
'protocol/fake_connection_to_host.cc',
@@ -52,13 +56,6 @@
'test/app_remoting_report_issue_request.h',
'test/app_remoting_service_urls.cc',
'test/app_remoting_service_urls.h',
- 'test/app_remoting_test_driver_environment.cc',
- 'test/app_remoting_test_driver_environment_app_details.cc',
- 'test/app_remoting_test_driver_environment.h',
- 'test/host_info.cc',
- 'test/host_info.h',
- 'test/host_list_fetcher.cc',
- 'test/host_list_fetcher.h',
'test/fake_access_token_fetcher.cc',
'test/fake_access_token_fetcher.h',
'test/fake_app_remoting_report_issue_request.cc',
@@ -73,6 +70,10 @@
'test/fake_remote_host_info_fetcher.h',
'test/fake_socket_factory.cc',
'test/fake_socket_factory.h',
+ 'test/host_info.cc',
+ 'test/host_info.h',
+ 'test/host_list_fetcher.cc',
+ 'test/host_list_fetcher.h',
'test/leaky_bucket.cc',
'test/leaky_bucket.h',
'test/mock_access_token_fetcher.cc',
@@ -102,64 +103,24 @@
],
},
{
- 'target_name': 'remoting_test_driver_common',
- 'type': 'static_library',
- 'dependencies': [
- '../base/base.gyp:base',
- '../base/base.gyp:test_support_base',
- '../google_apis/google_apis.gyp:google_apis',
- '../net/net.gyp:net',
- '../remoting/remoting.gyp:remoting_base',
- '../remoting/remoting.gyp:remoting_client',
- '../remoting/remoting.gyp:remoting_protocol',
- '../testing/gtest.gyp:gtest',
- ],
- 'defines': [
- 'VERSION=<(version_full)',
- ],
- 'sources': [
- 'test/access_token_fetcher.cc',
- 'test/access_token_fetcher.h',
- 'test/refresh_token_store.cc',
- 'test/refresh_token_store.h',
- 'test/remote_connection_observer.h',
- 'test/test_chromoting_client.cc',
- 'test/test_chromoting_client.h',
- 'test/test_video_renderer.cc',
- 'test/test_video_renderer.h',
- ],
- }, # end of target 'remoting_test_driver_common'
- {
- # A chromoting version of remoting_test_driver_common
'target_name': 'chromoting_test_driver',
'type': '<(gtest_target_type)',
'dependencies': [
- 'remoting_test_driver_common',
- ],
- 'defines': [
- 'VERSION=<(version_full)',
+ 'remoting_test_support',
+ '../testing/gtest.gyp:gtest',
],
'sources': [
- 'test/host_info.cc',
- 'test/host_info.h',
- 'test/host_list_fetcher.cc',
- 'test/host_list_fetcher.h',
'test/chromoting_test_driver.cc',
],
- 'include_dirs': [
- '../testing/gtest/include',
- ],
}, # end of target 'chromoting_test_driver'
{
'target_name': 'ar_test_driver_common',
'type': 'static_library',
'dependencies': [
'../remoting/proto/chromotocol.gyp:chromotocol_proto_lib',
- '<(DEPTH)/third_party/webrtc/modules/modules.gyp:desktop_capture',
- 'remoting_test_driver_common',
- ],
- 'defines': [
- 'VERSION=<(version_full)',
+ '../testing/gtest.gyp:gtest',
+ '../third_party/webrtc/modules/modules.gyp:desktop_capture',
+ 'remoting_test_support',
],
'sources': [
'test/app_remoting_connected_client_fixture.cc',
@@ -168,20 +129,8 @@
'test/app_remoting_connection_helper.h',
'test/app_remoting_latency_test_fixture.cc',
'test/app_remoting_latency_test_fixture.h',
- 'test/app_remoting_report_issue_request.cc',
- 'test/app_remoting_report_issue_request.h',
- 'test/app_remoting_service_urls.cc',
- 'test/app_remoting_service_urls.h',
'test/app_remoting_test_driver_environment.cc',
'test/app_remoting_test_driver_environment.h',
- 'test/remote_application_details.h',
- 'test/remote_host_info.cc',
- 'test/remote_host_info.h',
- 'test/remote_host_info_fetcher.cc',
- 'test/remote_host_info_fetcher.h',
- ],
- 'include_dirs': [
- '../testing/gtest/include',
],
}, # end of target 'ar_test_driver_common'
{
@@ -190,17 +139,12 @@
'type': '<(gtest_target_type)',
'dependencies': [
'ar_test_driver_common',
- ],
- 'defines': [
- 'VERSION=<(version_full)',
+ '../testing/gtest.gyp:gtest',
],
'sources': [
'test/app_remoting_test_driver.cc',
'test/app_remoting_test_driver_environment_app_details.cc',
],
- 'include_dirs': [
- '../testing/gtest/include',
- ],
}, # end of target 'ar_sample_test_driver'
# Remoting unit tests
@@ -225,6 +169,7 @@
'../ui/base/ui_base.gyp:ui_base',
'../ui/gfx/gfx.gyp:gfx',
'../ui/gfx/gfx.gyp:gfx_geometry',
+ 'ar_test_driver_common',
'remoting_base',
'remoting_breakpad',
'remoting_client',
@@ -235,7 +180,7 @@
'remoting_native_messaging_base',
'remoting_protocol',
'remoting_resources',
- 'remoting_test_common',
+ 'remoting_test_support',
],
'defines': [
'VERSION=<(version_full)',
@@ -289,13 +234,6 @@
'host/daemon_process_unittest.cc',
'host/desktop_process_unittest.cc',
'host/desktop_shape_tracker_unittest.cc',
- 'host/fake_desktop_capturer.cc',
- 'host/fake_desktop_capturer.h',
- 'host/fake_host_extension.cc',
- 'host/fake_host_extension.h',
- 'host/fake_host_status_monitor.h',
- 'host/fake_oauth_token_getter.cc',
- 'host/fake_oauth_token_getter.h',
'host/gcd_rest_client_unittest.cc',
'host/gcd_state_updater_unittest.cc',
'host/gnubby_auth_handler_posix_unittest.cc',
@@ -382,11 +320,22 @@
'signaling/xmpp_signal_strategy_unittest.cc',
'test/access_token_fetcher_unittest.cc',
'test/app_remoting_report_issue_request_unittest.cc',
- 'test/app_remoting_test_driver_environment_unittest.cc',
'test/host_list_fetcher_unittest.cc',
'test/remote_host_info_fetcher_unittest.cc',
'test/test_chromoting_client_unittest.cc',
'test/test_video_renderer_unittest.cc',
+
+ # TODO(sergeyu): app_remoting_test_driver_environment_unittest.cc
+ # depends on ar_test_driver_common target and that target implicitly
+ # depends on app_remoting_test_driver_environment_app_details.cc to
+ # allow some parameters to be overridden (i.e. *app_details.cc file can
+ # be replace with a different one). This means that app_deails.cc file
+ # has to be included here explicitly. Fix
+ # app_remoting_test_driver_environment.cc to avoid this implicit
+ # dependency on *app_details.cc .
+ # http://crbug.com/510887
+ 'test/app_remoting_test_driver_environment_app_details.cc',
+ 'test/app_remoting_test_driver_environment_unittest.cc',
],
'conditions': [
[ 'OS=="win"', {
@@ -575,7 +524,7 @@
'../third_party/webrtc/modules/modules.gyp:desktop_capture',
'../third_party/libjingle/libjingle.gyp:libjingle',
'remoting_base',
- 'remoting_test_common',
+ 'remoting_test_support',
],
'defines': [
'VERSION=<(version_full)',
diff --git a/remoting/signaling/BUILD.gn b/remoting/signaling/BUILD.gn
new file mode 100644
index 0000000..0b33cdb
--- /dev/null
+++ b/remoting/signaling/BUILD.gn
@@ -0,0 +1,67 @@
+# 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("//remoting/remoting_srcs.gni")
+
+source_set("signaling") {
+ sources = rebase_path(remoting_srcs_gypi_values.remoting_signaling_sources,
+ ".",
+ "//remoting")
+
+ configs += [
+ "//build/config/compiler:no_size_t_to_int_warning",
+ "//build/config/compiler:wexit_time_destructors",
+ ]
+
+ public_deps = [
+ "//remoting/proto",
+ "//third_party/libjingle",
+ ]
+
+ deps = [
+ "//base",
+ "//crypto",
+ "//jingle:jingle_glue",
+ "//net",
+ "//remoting/base",
+ ]
+}
+
+source_set("test_support") {
+ testonly = true
+
+ sources = [
+ "fake_signal_strategy.cc",
+ "fake_signal_strategy.h",
+ "mock_signal_strategy.cc",
+ "mock_signal_strategy.h",
+ ]
+
+ public_deps = [
+ ":signaling",
+ "//testing/gmock",
+ ]
+}
+
+source_set("unit_tests") {
+ testonly = true
+
+ sources = [
+ "iq_sender_unittest.cc",
+ "jid_util_unittest.cc",
+ "log_to_server_unittest.cc",
+ "push_notification_subscriber_unittest.cc",
+ "server_log_entry_unittest.cc",
+ "server_log_entry_unittest.h",
+ "xmpp_login_handler_unittest.cc",
+ "xmpp_signal_strategy_unittest.cc",
+ "xmpp_stream_parser_unittest.cc",
+ ]
+
+ deps = [
+ ":test_support",
+ "//testing/gmock",
+ "//testing/gtest",
+ ]
+}
diff --git a/remoting/test/BUILD.gn b/remoting/test/BUILD.gn
new file mode 100644
index 0000000..3dc2f0ea
--- /dev/null
+++ b/remoting/test/BUILD.gn
@@ -0,0 +1,154 @@
+# 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.
+
+source_set("test_support") {
+ testonly = true
+
+ sources = [
+ "access_token_fetcher.cc",
+ "access_token_fetcher.h",
+ "app_remoting_report_issue_request.cc",
+ "app_remoting_report_issue_request.h",
+ "app_remoting_service_urls.cc",
+ "app_remoting_service_urls.h",
+ "fake_access_token_fetcher.cc",
+ "fake_access_token_fetcher.h",
+ "fake_app_remoting_report_issue_request.cc",
+ "fake_app_remoting_report_issue_request.h",
+ "fake_network_dispatcher.cc",
+ "fake_network_dispatcher.h",
+ "fake_network_manager.cc",
+ "fake_network_manager.h",
+ "fake_port_allocator.cc",
+ "fake_port_allocator.h",
+ "fake_remote_host_info_fetcher.cc",
+ "fake_remote_host_info_fetcher.h",
+ "fake_socket_factory.cc",
+ "fake_socket_factory.h",
+ "host_info.cc",
+ "host_info.h",
+ "host_list_fetcher.cc",
+ "host_list_fetcher.h",
+ "leaky_bucket.cc",
+ "leaky_bucket.h",
+ "mock_access_token_fetcher.cc",
+ "mock_access_token_fetcher.h",
+ "refresh_token_store.cc",
+ "refresh_token_store.h",
+ "remote_application_details.h",
+ "remote_connection_observer.h",
+ "remote_host_info.cc",
+ "remote_host_info.h",
+ "remote_host_info_fetcher.cc",
+ "remote_host_info_fetcher.h",
+ "test_chromoting_client.cc",
+ "test_chromoting_client.h",
+ "test_video_renderer.cc",
+ "test_video_renderer.h",
+ ]
+
+ public_deps = [
+ "//base",
+ "//net",
+ "//remoting/base",
+ "//remoting/protocol",
+ "//remoting/codec",
+ "//remoting/client",
+ "//remoting/signaling",
+ ]
+
+ deps = [
+ "//google_apis",
+ "//testing/gmock",
+ "//testing/gtest",
+ "//third_party/libjingle",
+ ]
+}
+
+executable("chromoting_test_driver") {
+ testonly = true
+
+ sources = [
+ "chromoting_test_driver.cc",
+ ]
+
+ deps = [
+ ":test_support",
+ "//base/test:test_support",
+ "//testing/gtest",
+ ]
+}
+
+source_set("ar_test_driver_common") {
+ testonly = true
+
+ sources = [
+ "app_remoting_connected_client_fixture.cc",
+ "app_remoting_connected_client_fixture.h",
+ "app_remoting_connection_helper.cc",
+ "app_remoting_connection_helper.h",
+ "app_remoting_latency_test_fixture.cc",
+ "app_remoting_latency_test_fixture.h",
+ "app_remoting_test_driver_environment.cc",
+ "app_remoting_test_driver_environment.h",
+ ]
+
+ deps = [
+ ":test_support",
+ "//testing/gtest",
+ "//third_party/webrtc/modules/desktop_capture",
+ ]
+}
+
+# An external version of the test driver tool which includes minimal tests
+executable("ar_sample_test_driver") {
+ testonly = true
+
+ sources = [
+ "app_remoting_test_driver.cc",
+ "app_remoting_test_driver_environment_app_details.cc",
+ ]
+
+ deps = [
+ ":ar_test_driver_common",
+ "//base/test:test_support",
+ "//testing/gtest",
+ ]
+}
+
+source_set("unit_tests") {
+ testonly = true
+
+ sources = [
+ "access_token_fetcher_unittest.cc",
+ "app_remoting_report_issue_request_unittest.cc",
+ "host_list_fetcher_unittest.cc",
+ "remote_host_info_fetcher_unittest.cc",
+ "test_chromoting_client_unittest.cc",
+ "test_video_renderer_unittest.cc",
+
+ # TODO(sergeyu): app_remoting_test_driver_environment_unittest.cc
+ # depends on ar_test_driver_common target and that target implicitly
+ # depends on app_remoting_test_driver_environment_app_details.cc to
+ # allow some parameters to be overridden (i.e. *app_details.cc file can
+ # be replace with a different one). This means that app_deails.cc file
+ # has to be included here explicitly. Fix
+ # app_remoting_test_driver_environment.cc to avoid this implicit
+ # dependency on *app_details.cc .
+ # http://crbug.com/510887
+ "app_remoting_test_driver_environment_app_details.cc",
+ "app_remoting_test_driver_environment_unittest.cc",
+ ]
+
+ deps = [
+ ":test_support",
+ ":ar_test_driver_common",
+ "//base",
+ "//net:test_support",
+ "//testing/gmock",
+ "//testing/gtest",
+ "//third_party/libyuv",
+ "//third_party/webrtc/modules/desktop_capture",
+ ]
+}