Web MIDI: add MidiScheduler for send() with timestamp
[chromium-blink-merge.git] / ppapi / BUILD.gn
blob182c671c0f6d9e708977f507debc00a76e89f13b
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 copy("copy_test_files") {
6   visibility = [ ":*" ]
7   sources = [
8     # Keep "test_case.html.mock-http-headers" with "test_case.html".
9     "tests/ppapi_nacl_tests_newlib.nmf",
10     "tests/test_case.html",
11     "tests/test_case.html.mock-http-headers",
12     "tests/test_page.css",
13   ]
14   outputs = [
15     "$root_out_dir/{{source_file_part}}",
16   ]
19 copy("copy_test_files2") {
20   visibility = [ ":*" ]
21   sources = [
22     "tests/test_url_loader_data/hello.txt",
23   ]
24   outputs = [
25     "$root_out_dir/test_url_loader_data/{{source_file_part}}",
26   ]
29 import("//ppapi/ppapi_sources.gni")
30 import("//testing/test.gni")
32 shared_library("ppapi_tests") {
33   sources = ppapi_sources.test_common_source_files +
34             ppapi_sources.test_trusted_source_files
36   defines = [ "GL_GLEXT_PROTOTYPES" ]
37   include_dirs = [ "lib/gl/include" ]
39   deps = [
40     "//ppapi/cpp",
41     "//ppapi/shared_impl",
42     ":copy_test_files",
43     ":copy_test_files2",
44   ]
47 test("ppapi_unittests") {
48   sources = [
49     "host/resource_message_filter_unittest.cc",
50     "proxy/device_enumeration_resource_helper_unittest.cc",
51     "proxy/file_chooser_resource_unittest.cc",
52     "proxy/file_system_resource_unittest.cc",
53     "proxy/flash_resource_unittest.cc",
54     "proxy/interface_list_unittest.cc",
55     "proxy/mock_resource.cc",
56     "proxy/mock_resource.h",
57     "proxy/nacl_message_scanner_unittest.cc",
58     "proxy/pdf_resource_unittest.cc",
59     "proxy/plugin_dispatcher_unittest.cc",
60     "proxy/plugin_resource_tracker_unittest.cc",
61     "proxy/plugin_var_tracker_unittest.cc",
62     "proxy/ppb_var_unittest.cc",
63     "proxy/ppp_instance_private_proxy_unittest.cc",
64     "proxy/ppp_instance_proxy_unittest.cc",
65     "proxy/ppp_messaging_proxy_unittest.cc",
66     "proxy/printing_resource_unittest.cc",
67     "proxy/raw_var_data_unittest.cc",
68     "proxy/serialized_var_unittest.cc",
69     "proxy/talk_resource_unittest.cc",
70     "proxy/tracked_callback_unittest.cc",
71     "proxy/video_decoder_resource_unittest.cc",
72     "proxy/video_encoder_resource_unittest.cc",
73     "proxy/websocket_resource_unittest.cc",
74     "shared_impl/media_stream_audio_track_shared_unittest.cc",
75     "shared_impl/media_stream_buffer_manager_unittest.cc",
76     "shared_impl/media_stream_video_track_shared_unittest.cc",
77     "shared_impl/proxy_lock_unittest.cc",
78     "shared_impl/resource_tracker_unittest.cc",
79     "shared_impl/thread_aware_callback_unittest.cc",
80     "shared_impl/time_conversion_unittest.cc",
81     "shared_impl/var_tracker_unittest.cc",
82   ]
84   deps = [
85     "//base/allocator",
86     "//base/test:run_all_unittests",
87     "//base/test:test_support",
88     "//gpu/ipc",
89     "//ipc",
90     "//ipc:test_support",
91     "//media:shared_memory_support",
92     "//ppapi/host",
93     "//ppapi/proxy",
94     "//ppapi/proxy:test_support",
95     "//ppapi/shared_impl",
96     "//ppapi/shared_impl:test_support",
97     "//testing/gmock",
98     "//testing/gtest",
99     "//ui/surface",
100   ]
103 test("ppapi_perftests") {
104   sources = [
105     "proxy/ppapi_perftests.cc",
106     "proxy/ppp_messaging_proxy_perftest.cc",
107   ]
109   deps = [
110     "//base/allocator",
111     "//base/test:test_support",
112     "//ppapi/proxy",
113     "//ppapi/proxy:test_support",
114     "//ppapi/shared_impl",
115     "//ppapi/shared_impl:test_support",
116     "//testing/gtest",
117   ]
120 executable("pepper_hash_for_uma") {
121   sources = [
122     "tools/pepper_hash_for_uma.cc",
123   ]
125   deps = [
126     "//base",
127   ]