Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / remoting / test / BUILD.gn
blobbba2a34ca500a93297359fb62b915bb85340cc47
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     "connection_time_observer.cc",
20     "connection_time_observer.h",
21     "fake_access_token_fetcher.cc",
22     "fake_access_token_fetcher.h",
23     "fake_app_remoting_report_issue_request.cc",
24     "fake_app_remoting_report_issue_request.h",
25     "fake_host_list_fetcher.cc",
26     "fake_host_list_fetcher.h",
27     "fake_network_dispatcher.cc",
28     "fake_network_dispatcher.h",
29     "fake_network_manager.cc",
30     "fake_network_manager.h",
31     "fake_port_allocator.cc",
32     "fake_port_allocator.h",
33     "fake_refresh_token_store.cc",
34     "fake_refresh_token_store.h",
35     "fake_remote_host_info_fetcher.cc",
36     "fake_remote_host_info_fetcher.h",
37     "fake_socket_factory.cc",
38     "fake_socket_factory.h",
39     "host_info.cc",
40     "host_info.h",
41     "host_list_fetcher.cc",
42     "host_list_fetcher.h",
43     "leaky_bucket.cc",
44     "leaky_bucket.h",
45     "mock_access_token_fetcher.cc",
46     "mock_access_token_fetcher.h",
47     "refresh_token_store.cc",
48     "refresh_token_store.h",
49     "remote_application_details.h",
50     "remote_connection_observer.h",
51     "remote_host_info.cc",
52     "remote_host_info.h",
53     "remote_host_info_fetcher.cc",
54     "remote_host_info_fetcher.h",
55     "rgb_value.cc",
56     "rgb_value.h",
57     "test_chromoting_client.cc",
58     "test_chromoting_client.h",
59     "test_video_renderer.cc",
60     "test_video_renderer.h",
61     "video_frame_writer.cc",
62     "video_frame_writer.h",
63   ]
65   public_deps = [
66     "//base",
67     "//net",
68     "//remoting/base",
69     "//remoting/protocol",
70     "//remoting/codec",
71     "//remoting/client",
72     "//remoting/signaling",
73   ]
75   deps = [
76     "//google_apis",
77     "//testing/gmock",
78     "//testing/gtest",
79     "//third_party/libjingle",
80   ]
83 executable("chromoting_test_driver") {
84   testonly = true
86   sources = [
87     "chromoting_test_driver.cc",
88   ]
90   deps = [
91     ":test_support",
92     "//base/test:test_support",
93     "//testing/gtest",
94   ]
97 source_set("ar_test_driver_common") {
98   testonly = true
100   sources = [
101     "app_remoting_connected_client_fixture.cc",
102     "app_remoting_connected_client_fixture.h",
103     "app_remoting_connection_helper.cc",
104     "app_remoting_connection_helper.h",
105     "app_remoting_latency_test_fixture.cc",
106     "app_remoting_latency_test_fixture.h",
107     "app_remoting_test_driver_environment.cc",
108     "app_remoting_test_driver_environment.h",
109   ]
111   deps = [
112     ":test_support",
113     "//testing/gtest",
114     "//third_party/webrtc/modules/desktop_capture",
115   ]
118 # An external version of the test driver tool which includes minimal tests
119 executable("ar_sample_test_driver") {
120   testonly = true
122   sources = [
123     "app_remoting_test_driver.cc",
124     "app_remoting_test_driver_environment_app_details.cc",
125   ]
127   deps = [
128     ":ar_test_driver_common",
129     "//base/test:test_support",
130     "//testing/gtest",
131   ]
134 source_set("unit_tests") {
135   testonly = true
137   sources = [
138     "access_token_fetcher_unittest.cc",
139     "app_remoting_report_issue_request_unittest.cc",
140     "chromoting_test_driver_environment_unittest.cc",
141     "connection_time_observer_unittest.cc",
142     "host_list_fetcher_unittest.cc",
143     "remote_host_info_fetcher_unittest.cc",
144     "test_chromoting_client_unittest.cc",
145     "test_video_renderer_unittest.cc",
147     # TODO(sergeyu): app_remoting_test_driver_environment_unittest.cc
148     # depends on ar_test_driver_common target and that target implicitly
149     # depends on app_remoting_test_driver_environment_app_details.cc to
150     # allow some parameters to be overridden (i.e. *app_details.cc file can
151     # be replace with a different one). This means that app_deails.cc file
152     # has to be included here explicitly. Fix
153     # app_remoting_test_driver_environment.cc to avoid this implicit
154     # dependency on *app_details.cc .
155     # http://crbug.com/510887
156     "app_remoting_test_driver_environment_app_details.cc",
157     "app_remoting_test_driver_environment_unittest.cc",
158   ]
160   deps = [
161     ":test_support",
162     ":ar_test_driver_common",
163     "//base",
164     "//net:test_support",
165     "//testing/gmock",
166     "//testing/gtest",
167     "//third_party/libyuv",
168     "//third_party/webrtc/modules/desktop_capture",
169   ]