Add remoting and PPAPI tests to GN build
[chromium-blink-merge.git] / ppapi / BUILD.gn
blob7ecb40ad46bc5eb92be86da4cc550972eb97f287
1 # Copyright 2014 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 import("//ppapi/ppapi_sources.gni")
6 import("//testing/test.gni")
8 shared_library("ppapi_tests") {
9   sources = ppapi_sources.test_common_source_files +
10             ppapi_sources.test_trusted_source_files
12   defines = [ "GL_GLEXT_PROTOTYPES" ]
13   include_dirs = [ "lib/gl/include" ]
15   deps = [
16     "//ppapi/cpp",
17     "//ppapi/shared_impl",
18   ]
21 test("ppapi_unittests") {
22   sources = [
23     "host/resource_message_filter_unittest.cc",
24     "proxy/device_enumeration_resource_helper_unittest.cc",
25     "proxy/file_chooser_resource_unittest.cc",
26     "proxy/file_system_resource_unittest.cc",
27     "proxy/flash_resource_unittest.cc",
28     "proxy/interface_list_unittest.cc",
29     "proxy/mock_resource.cc",
30     "proxy/mock_resource.h",
31     "proxy/nacl_message_scanner_unittest.cc",
32     "proxy/pdf_resource_unittest.cc",
33     "proxy/plugin_dispatcher_unittest.cc",
34     "proxy/plugin_resource_tracker_unittest.cc",
35     "proxy/plugin_var_tracker_unittest.cc",
36     "proxy/ppb_var_unittest.cc",
37     "proxy/ppp_instance_private_proxy_unittest.cc",
38     "proxy/ppp_instance_proxy_unittest.cc",
39     "proxy/ppp_messaging_proxy_unittest.cc",
40     "proxy/printing_resource_unittest.cc",
41     "proxy/raw_var_data_unittest.cc",
42     "proxy/serialized_var_unittest.cc",
43     "proxy/talk_resource_unittest.cc",
44     "proxy/video_decoder_resource_unittest.cc",
45     "proxy/video_encoder_resource_unittest.cc",
46     "proxy/websocket_resource_unittest.cc",
47     "shared_impl/media_stream_audio_track_shared_unittest.cc",
48     "shared_impl/media_stream_buffer_manager_unittest.cc",
49     "shared_impl/media_stream_video_track_shared_unittest.cc",
50     "shared_impl/proxy_lock_unittest.cc",
51     "shared_impl/resource_tracker_unittest.cc",
52     "shared_impl/thread_aware_callback_unittest.cc",
53     "shared_impl/time_conversion_unittest.cc",
54     "shared_impl/tracked_callback_unittest.cc",
55     "shared_impl/var_tracker_unittest.cc",
56   ]
58   deps = [
59     "//base/allocator",
60     "//base/test:run_all_unittests",
61     "//base/test:test_support",
62     "//gpu/ipc",
63     "//ipc",
64     "//ipc:test_support",
65     "//media:shared_memory_support",
66     "//ppapi/host",
67     "//ppapi/proxy",
68     "//ppapi/proxy:test_support",
69     "//ppapi/shared_impl",
70     "//ppapi/shared_impl:test_support",
71     "//testing/gmock",
72     "//testing/gtest",
73     "//ui/surface",
74   ]
77 test("ppapi_perftests") {
78   sources = [
79     "proxy/ppapi_perftests.cc",
80     "proxy/ppp_messaging_proxy_perftest.cc",
81   ]
83   deps = [
84     "//base/allocator",
85     "//base/test:test_support",
86     "//ppapi/proxy",
87     "//ppapi/proxy:test_support",
88     "//ppapi/shared_impl",
89     "//ppapi/shared_impl:test_support",
90     "//testing/gtest",
91   ]