Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / remoting / test / BUILD.gn
blob262a54c79a3f98e33ed92c376985c983aa8b6f72
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 source_set("test_support") {
6   testonly = true
8   sources = [
9     "access_token_fetcher.cc",
10     "access_token_fetcher.h",
11     "app_remoting_report_issue_request.cc",
12     "app_remoting_report_issue_request.h",
13     "app_remoting_service_urls.cc",
14     "app_remoting_service_urls.h",
15     "chromoting_test_driver_environment.cc",
16     "chromoting_test_driver_environment.h",
17     "connection_setup_info.cc",
18     "connection_setup_info.h",
19     "fake_access_token_fetcher.cc",
20     "fake_access_token_fetcher.h",
21     "fake_app_remoting_report_issue_request.cc",
22     "fake_app_remoting_report_issue_request.h",
23     "fake_host_list_fetcher.cc",
24     "fake_host_list_fetcher.h",
25     "fake_network_dispatcher.cc",
26     "fake_network_dispatcher.h",
27     "fake_network_manager.cc",
28     "fake_network_manager.h",
29     "fake_port_allocator.cc",
30     "fake_port_allocator.h",
31     "fake_refresh_token_store.cc",
32     "fake_refresh_token_store.h",
33     "fake_remote_host_info_fetcher.cc",
34     "fake_remote_host_info_fetcher.h",
35     "fake_socket_factory.cc",
36     "fake_socket_factory.h",
37     "host_info.cc",
38     "host_info.h",
39     "host_list_fetcher.cc",
40     "host_list_fetcher.h",
41     "leaky_bucket.cc",
42     "leaky_bucket.h",
43     "mock_access_token_fetcher.cc",
44     "mock_access_token_fetcher.h",
45     "refresh_token_store.cc",
46     "refresh_token_store.h",
47     "remote_application_details.h",
48     "remote_connection_observer.h",
49     "remote_host_info.cc",
50     "remote_host_info.h",
51     "remote_host_info_fetcher.cc",
52     "remote_host_info_fetcher.h",
53     "test_chromoting_client.cc",
54     "test_chromoting_client.h",
55     "test_video_renderer.cc",
56     "test_video_renderer.h",
57   ]
59   public_deps = [
60     "//base",
61     "//net",
62     "//remoting/base",
63     "//remoting/protocol",
64     "//remoting/codec",
65     "//remoting/client",
66     "//remoting/signaling",
67   ]
69   deps = [
70     "//google_apis",
71     "//testing/gmock",
72     "//testing/gtest",
73     "//third_party/libjingle",
74   ]
77 executable("chromoting_test_driver") {
78   testonly = true
80   sources = [
81     "chromoting_test_driver.cc",
82   ]
84   deps = [
85     ":test_support",
86     "//base/test:test_support",
87     "//testing/gtest",
88   ]
91 source_set("ar_test_driver_common") {
92   testonly = true
94   sources = [
95     "app_remoting_connected_client_fixture.cc",
96     "app_remoting_connected_client_fixture.h",
97     "app_remoting_connection_helper.cc",
98     "app_remoting_connection_helper.h",
99     "app_remoting_latency_test_fixture.cc",
100     "app_remoting_latency_test_fixture.h",
101     "app_remoting_test_driver_environment.cc",
102     "app_remoting_test_driver_environment.h",
103   ]
105   deps = [
106     ":test_support",
107     "//testing/gtest",
108     "//third_party/webrtc/modules/desktop_capture",
109   ]
112 # An external version of the test driver tool which includes minimal tests
113 executable("ar_sample_test_driver") {
114   testonly = true
116   sources = [
117     "app_remoting_test_driver.cc",
118     "app_remoting_test_driver_environment_app_details.cc",
119   ]
121   deps = [
122     ":ar_test_driver_common",
123     "//base/test:test_support",
124     "//testing/gtest",
125   ]
128 source_set("unit_tests") {
129   testonly = true
131   sources = [
132     "access_token_fetcher_unittest.cc",
133     "app_remoting_report_issue_request_unittest.cc",
134     "chromoting_test_driver_environment_unittest.cc",
135     "host_list_fetcher_unittest.cc",
136     "remote_host_info_fetcher_unittest.cc",
137     "test_chromoting_client_unittest.cc",
138     "test_video_renderer_unittest.cc",
140     # TODO(sergeyu): app_remoting_test_driver_environment_unittest.cc
141     # depends on ar_test_driver_common target and that target implicitly
142     # depends on app_remoting_test_driver_environment_app_details.cc to
143     # allow some parameters to be overridden (i.e. *app_details.cc file can
144     # be replace with a different one). This means that app_deails.cc file
145     # has to be included here explicitly. Fix
146     # app_remoting_test_driver_environment.cc to avoid this implicit
147     # dependency on *app_details.cc .
148     # http://crbug.com/510887
149     "app_remoting_test_driver_environment_app_details.cc",
150     "app_remoting_test_driver_environment_unittest.cc",
151   ]
153   deps = [
154     ":test_support",
155     ":ar_test_driver_common",
156     "//base",
157     "//net:test_support",
158     "//testing/gmock",
159     "//testing/gtest",
160     "//third_party/libyuv",
161     "//third_party/webrtc/modules/desktop_capture",
162   ]