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") {
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 "tests/test_page.css.mock-http-headers",
16 "$root_out_dir/{{source_file_part}}",
20 copy("copy_test_files2") {
23 "tests/test_url_loader_data/hello.txt",
26 "$root_out_dir/test_url_loader_data/{{source_file_part}}",
30 import("//ppapi/ppapi_sources.gni")
31 import("//testing/test.gni")
33 shared_library("ppapi_tests") {
34 sources = ppapi_sources.test_common_source_files +
35 ppapi_sources.test_trusted_source_files
37 configs += [ "//build/config:precompiled_headers" ]
38 defines = [ "GL_GLEXT_PROTOTYPES" ]
39 include_dirs = [ "lib/gl/include" ]
43 "//ppapi/shared_impl",
49 shared_library("power_saver_test_plugin") {
51 "tests/power_saver_test_plugin.cc",
52 "tests/test_utils.cc",
57 "//ppapi/shared_impl",
61 test("ppapi_unittests") {
63 "host/resource_message_filter_unittest.cc",
64 "proxy/device_enumeration_resource_helper_unittest.cc",
65 "proxy/file_chooser_resource_unittest.cc",
66 "proxy/file_system_resource_unittest.cc",
67 "proxy/flash_resource_unittest.cc",
68 "proxy/interface_list_unittest.cc",
69 "proxy/mock_resource.cc",
70 "proxy/mock_resource.h",
71 "proxy/nacl_message_scanner_unittest.cc",
72 "proxy/pdf_resource_unittest.cc",
73 "proxy/plugin_dispatcher_unittest.cc",
74 "proxy/plugin_resource_tracker_unittest.cc",
75 "proxy/plugin_var_tracker_unittest.cc",
76 "proxy/ppb_var_unittest.cc",
77 "proxy/ppp_instance_private_proxy_unittest.cc",
78 "proxy/ppp_instance_proxy_unittest.cc",
79 "proxy/ppp_messaging_proxy_unittest.cc",
80 "proxy/printing_resource_unittest.cc",
81 "proxy/raw_var_data_unittest.cc",
82 "proxy/serialized_var_unittest.cc",
83 "proxy/tracked_callback_unittest.cc",
84 "proxy/video_decoder_resource_unittest.cc",
85 "proxy/video_encoder_resource_unittest.cc",
86 "proxy/websocket_resource_unittest.cc",
87 "shared_impl/media_stream_audio_track_shared_unittest.cc",
88 "shared_impl/media_stream_buffer_manager_unittest.cc",
89 "shared_impl/media_stream_video_track_shared_unittest.cc",
90 "shared_impl/proxy_lock_unittest.cc",
91 "shared_impl/resource_tracker_unittest.cc",
92 "shared_impl/thread_aware_callback_unittest.cc",
93 "shared_impl/time_conversion_unittest.cc",
94 "shared_impl/var_tracker_unittest.cc",
99 "//base/test:run_all_unittests",
100 "//base/test:test_support",
103 "//ipc:test_support",
104 "//media:shared_memory_support",
107 "//ppapi/proxy:test_support",
108 "//ppapi/shared_impl",
109 "//ppapi/shared_impl:test_support",
116 test("ppapi_perftests") {
118 "proxy/ppapi_perftests.cc",
119 "proxy/ppp_messaging_proxy_perftest.cc",
124 "//base/test:test_support",
126 "//ppapi/proxy:test_support",
127 "//ppapi/shared_impl",
128 "//ppapi/shared_impl:test_support",
133 executable("pepper_hash_for_uma") {
135 "tools/pepper_hash_for_uma.cc",
143 source_set("ppapi_cpp_lib") {
144 sources = ppapi_sources.cpp_source_files
146 "cpp/module_embedder.h",
147 "cpp/ppp_entrypoints.cc",
151 source_set("ppapi_gles2_lib") {
152 include_dirs = [ "lib/gl/include" ]
154 "lib/gl/gles2/gl2ext_ppapi.c",
155 "lib/gl/gles2/gl2ext_ppapi.h",
156 "lib/gl/gles2/gles2.c",
164 executable("ppapi_nacl_tests_newlib") {
170 sources = ppapi_sources.test_common_source_files +
171 ppapi_sources.test_nacl_source_files
173 defines = [ "GL_GLEXT_PROTOTYPES" ]
177 "//ppapi/native_client:ppapi_lib",
181 copy("nacl_tests_copy") {
183 "${root_out_dir}/ppapi_nacl_tests_newlib.nexe",
186 "${root_build_dir}/{{source_name_part}}_${target_cpu}.nexe",
189 ":ppapi_nacl_tests_newlib",
194 group("ppapi_nacl_tests") {
196 if (target_cpu == "x86" || target_cpu == "x64") {
197 deps += [ ":nacl_tests_copy(//native_client/build/toolchain/nacl:clang_newlib_${target_cpu})" ]