GPU workaround to simulate Out of Memory errors with large textures
[chromium-blink-merge.git] / ipc / mojo / BUILD.gn
blob50241fe4641cd4d56927ce1aac317fd4d28dea4a
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("//testing/test.gni")
6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
8 mojom("client_channel") {
9   sources = [
10     "client_channel.mojom",
11   ]
14 component("mojo") {
15   sources = [
16     "async_handle_waiter.cc",
17     "async_handle_waiter.h",
18     "client_channel.mojom",
19     "ipc_channel_mojo.cc",
20     "ipc_channel_mojo.h",
21     "ipc_channel_mojo_host.cc",
22     "ipc_channel_mojo_host.h",
23     "ipc_message_pipe_reader.cc",
24     "ipc_message_pipe_reader.h",
25     "ipc_mojo_bootstrap.cc",
26     "ipc_mojo_bootstrap.h",
27     "ipc_mojo_handle_attachment.cc",
28     "ipc_mojo_handle_attachment.h",
29     "ipc_mojo_message_helper.cc",
30     "ipc_mojo_message_helper.h",
31     "ipc_mojo_param_traits.cc",
32     "ipc_mojo_param_traits.h",
33     "scoped_ipc_support.cc",
34     "scoped_ipc_support.h",
35   ]
37   defines = [ "IPC_MOJO_IMPLEMENTATION" ]
39   deps = [
40     "//base",
41     "//base/third_party/dynamic_annotations",
42     "//ipc",
43     "//mojo/environment:chromium",
44     "//third_party/mojo/src/mojo/edk/system",
45     "//third_party/mojo/src/mojo/public/c/environment:environment",
46     "//third_party/mojo/src/mojo/public/cpp/bindings",
47     ":client_channel",
48   ]
51 test("ipc_mojo_unittests") {
52   sources = [
53     "async_handle_waiter_unittest.cc",
54     "ipc_channel_mojo_unittest.cc",
55     "ipc_mojo_bootstrap_unittest.cc",
56     "run_all_unittests.cc",
57   ]
59   deps = [
60     "//base",
61     "//base/test:test_support",
62     "//base/third_party/dynamic_annotations",
63     "//ipc",
64     "//ipc:test_support",
65     "//ipc/mojo",
66     "//mojo/environment:chromium",
67     "//testing/gtest",
68     "//third_party/mojo/src/mojo/edk/system",
69     "//url",
70   ]
73 test("ipc_mojo_perftests") {
74   sources = [
75     "ipc_mojo_perftest.cc",
76   ]
78   deps = [
79     "//base",
80     "//base/test:test_support",
81     "//base/test:test_support_perf",
82     "//base/third_party/dynamic_annotations",
83     "//ipc",
84     "//ipc:test_support",
85     "//ipc/mojo",
86     "//mojo/environment:chromium",
87     "//third_party/mojo/src/mojo/edk/system",
88     "//url",
89   ]