Fix typo in //ui/base/BUILD.gn.
[chromium-blink-merge.git] / remoting / test / BUILD.gn
blob47c2a338930b42e2c893bf0519ff9b8cb33e1846
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     "connection_setup_info.cc",
16     "connection_setup_info.h",
17     "fake_access_token_fetcher.cc",
18     "fake_access_token_fetcher.h",
19     "fake_app_remoting_report_issue_request.cc",
20     "fake_app_remoting_report_issue_request.h",
21     "fake_network_dispatcher.cc",
22     "fake_network_dispatcher.h",
23     "fake_network_manager.cc",
24     "fake_network_manager.h",
25     "fake_port_allocator.cc",
26     "fake_port_allocator.h",
27     "fake_remote_host_info_fetcher.cc",
28     "fake_remote_host_info_fetcher.h",
29     "fake_socket_factory.cc",
30     "fake_socket_factory.h",
31     "host_info.cc",
32     "host_info.h",
33     "host_list_fetcher.cc",
34     "host_list_fetcher.h",
35     "leaky_bucket.cc",
36     "leaky_bucket.h",
37     "mock_access_token_fetcher.cc",
38     "mock_access_token_fetcher.h",
39     "refresh_token_store.cc",
40     "refresh_token_store.h",
41     "remote_application_details.h",
42     "remote_connection_observer.h",
43     "remote_host_info.cc",
44     "remote_host_info.h",
45     "remote_host_info_fetcher.cc",
46     "remote_host_info_fetcher.h",
47     "test_chromoting_client.cc",
48     "test_chromoting_client.h",
49     "test_video_renderer.cc",
50     "test_video_renderer.h",
51   ]
53   public_deps = [
54     "//base",
55     "//net",
56     "//remoting/base",
57     "//remoting/protocol",
58     "//remoting/codec",
59     "//remoting/client",
60     "//remoting/signaling",
61   ]
63   deps = [
64     "//google_apis",
65     "//testing/gmock",
66     "//testing/gtest",
67     "//third_party/libjingle",
68   ]
71 executable("chromoting_test_driver") {
72   testonly = true
74   sources = [
75     "chromoting_test_driver.cc",
76   ]
78   deps = [
79     ":test_support",
80     "//base/test:test_support",
81     "//testing/gtest",
82   ]
85 source_set("ar_test_driver_common") {
86   testonly = true
88   sources = [
89     "app_remoting_connected_client_fixture.cc",
90     "app_remoting_connected_client_fixture.h",
91     "app_remoting_connection_helper.cc",
92     "app_remoting_connection_helper.h",
93     "app_remoting_latency_test_fixture.cc",
94     "app_remoting_latency_test_fixture.h",
95     "app_remoting_test_driver_environment.cc",
96     "app_remoting_test_driver_environment.h",
97   ]
99   deps = [
100     ":test_support",
101     "//testing/gtest",
102     "//third_party/webrtc/modules/desktop_capture",
103   ]
106 # An external version of the test driver tool which includes minimal tests
107 executable("ar_sample_test_driver") {
108   testonly = true
110   sources = [
111     "app_remoting_test_driver.cc",
112     "app_remoting_test_driver_environment_app_details.cc",
113   ]
115   deps = [
116     ":ar_test_driver_common",
117     "//base/test:test_support",
118     "//testing/gtest",
119   ]
122 source_set("unit_tests") {
123   testonly = true
125   sources = [
126     "access_token_fetcher_unittest.cc",
127     "app_remoting_report_issue_request_unittest.cc",
128     "host_list_fetcher_unittest.cc",
129     "remote_host_info_fetcher_unittest.cc",
130     "test_chromoting_client_unittest.cc",
131     "test_video_renderer_unittest.cc",
133     # TODO(sergeyu): app_remoting_test_driver_environment_unittest.cc
134     # depends on ar_test_driver_common target and that target implicitly
135     # depends on app_remoting_test_driver_environment_app_details.cc to
136     # allow some parameters to be overridden (i.e. *app_details.cc file can
137     # be replace with a different one). This means that app_deails.cc file
138     # has to be included here explicitly. Fix
139     # app_remoting_test_driver_environment.cc to avoid this implicit
140     # dependency on *app_details.cc .
141     # http://crbug.com/510887
142     "app_remoting_test_driver_environment_app_details.cc",
143     "app_remoting_test_driver_environment_unittest.cc",
144   ]
146   deps = [
147     ":test_support",
148     ":ar_test_driver_common",
149     "//base",
150     "//net:test_support",
151     "//testing/gmock",
152     "//testing/gtest",
153     "//third_party/libyuv",
154     "//third_party/webrtc/modules/desktop_capture",
155   ]