Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / remoting / test / BUILD.gn
blobd2b64b398fe04f2c05a7a639f45354432c1358f2
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/client",
70     "//remoting/codec",
71     "//remoting/protocol",
72     "//remoting/signaling",
73     "//third_party/webrtc/modules/desktop_capture",
74     "//ui/gfx",
75   ]
77   deps = [
78     "//google_apis",
79     "//testing/gmock",
80     "//testing/gtest",
81     "//third_party/libjingle",
82   ]
85 executable("chromoting_test_driver") {
86   testonly = true
88   sources = [
89     "chromoting_test_driver.cc",
90   ]
92   deps = [
93     ":test_support",
94     "//base/test:test_support",
95     "//build/config/sanitizers:deps",
96     "//testing/gtest",
97   ]
100 source_set("ar_test_driver_common") {
101   testonly = true
103   sources = [
104     "app_remoting_connected_client_fixture.cc",
105     "app_remoting_connected_client_fixture.h",
106     "app_remoting_connection_helper.cc",
107     "app_remoting_connection_helper.h",
108     "app_remoting_latency_test_fixture.cc",
109     "app_remoting_latency_test_fixture.h",
110     "app_remoting_test_driver_environment.cc",
111     "app_remoting_test_driver_environment.h",
112   ]
114   deps = [
115     ":test_support",
116     "//testing/gtest",
117     "//third_party/webrtc/modules/desktop_capture",
118   ]
121 # An external version of the test driver tool which includes minimal tests
122 executable("ar_sample_test_driver") {
123   testonly = true
125   sources = [
126     "app_remoting_sample_test_driver_environment.cc",
127     "app_remoting_test_driver.cc",
128   ]
130   deps = [
131     ":ar_test_driver_common",
132     "//base/test:test_support",
133     "//build/config/sanitizers:deps",
134     "//testing/gtest",
135   ]
138 source_set("unit_tests") {
139   testonly = true
141   sources = [
142     "access_token_fetcher_unittest.cc",
143     "app_remoting_report_issue_request_unittest.cc",
144     "app_remoting_test_driver_environment_unittest.cc",
145     "chromoting_test_driver_environment_unittest.cc",
146     "connection_time_observer_unittest.cc",
147     "host_list_fetcher_unittest.cc",
148     "remote_host_info_fetcher_unittest.cc",
149     "test_chromoting_client_unittest.cc",
150     "test_video_renderer_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   ]