Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: mojo/edk/test/BUILD.gn

Issue 1554443003: Stop linking in the old Mojo EDK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge and fix new flaky test Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/edk/system/data_pipe_unittest.cc ('k') | mojo/edk/test/multiprocess_test_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//testing/test.gni") 5 import("//testing/test.gni")
6 6
7 source_set("test_support") { 7 source_set("test_support") {
8 testonly = true 8 testonly = true
9 sources = [ 9 sources = [
10 "multiprocess_test_helper.cc", 10 "multiprocess_test_helper.cc",
11 "multiprocess_test_helper.h", 11 "multiprocess_test_helper.h",
12 "scoped_ipc_support.cc", 12 "scoped_ipc_support.cc",
13 "scoped_ipc_support.h", 13 "scoped_ipc_support.h",
14 "test_utils.h", 14 "test_utils.h",
15 "test_utils_posix.cc", 15 "test_utils_posix.cc",
16 "test_utils_win.cc", 16 "test_utils_win.cc",
17 ] 17 ]
18 18
19 deps = [ 19 deps = [
20 "//base", 20 "//base",
21 "//base/test:test_support", 21 "//base/test:test_support",
22 "//mojo/edk/system",
22 "//mojo/public/cpp/system", 23 "//mojo/public/cpp/system",
23 "//testing/gtest", 24 "//testing/gtest",
24
25 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are
26 # declared in third party only for now.
27 "//third_party/mojo/src/mojo/edk/system",
28 ] 25 ]
29 } 26 }
30 27
31 source_set("run_all_unittests") { 28 source_set("run_all_unittests") {
32 testonly = true 29 testonly = true
33 sources = [ 30 sources = [
34 "run_all_unittests.cc", 31 "run_all_unittests.cc",
35 ] 32 ]
36 33
37 deps = [ 34 deps = [
38 ":test_support", 35 ":test_support",
39 ":test_support_impl", 36 ":test_support_impl",
40 "//base", 37 "//base",
41 "//base/test:test_support", 38 "//base/test:test_support",
39 "//mojo/edk/system",
42 "//mojo/public/c/test_support", 40 "//mojo/public/c/test_support",
43 "//testing/gtest", 41 "//testing/gtest",
42 ]
44 43
45 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are 44 if (is_linux && !is_component_build) {
46 # declared in third party only for now. 45 # This tests dynamically loads libmojo_test_support even in non-component
47 "//third_party/mojo/src/mojo/edk/system", 46 # builds.
48 ] 47 public_configs = [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
48 }
49 } 49 }
50 50
51 source_set("run_all_perftests") { 51 source_set("run_all_perftests") {
52 testonly = true 52 testonly = true
53 deps = [ 53 deps = [
54 ":test_support_impl", 54 ":test_support_impl",
55 "//base", 55 "//base",
56 "//base/test:test_support", 56 "//base/test:test_support",
57 "//mojo/edk/system",
57 "//mojo/edk/test:test_support", 58 "//mojo/edk/test:test_support",
58 "//mojo/public/c/test_support", 59 "//mojo/public/c/test_support",
59 60 "//testing/gtest",
60 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are
61 # declared in third party only for now.
62 "//third_party/mojo/src/mojo/edk/system",
63 ] 61 ]
64 62
65 sources = [ 63 sources = [
66 "run_all_perftests.cc", 64 "run_all_perftests.cc",
67 ] 65 ]
66
67 if (is_linux && !is_component_build) {
68 # This tests dynamically loads libmojo_test_support even in non-component
69 # builds.
70 public_configs = [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
71 }
68 } 72 }
69 73
70 source_set("test_support_impl") { 74 source_set("test_support_impl") {
71 testonly = true 75 testonly = true
72 deps = [ 76 deps = [
73 "//base", 77 "//base",
74 "//base/test:test_support", 78 "//base/test:test_support",
75 "//mojo/public/c/test_support", 79 "//mojo/public/c/test_support",
76 "//mojo/public/cpp/system", 80 "//mojo/public/cpp/system",
77 ] 81 ]
78 82
79 sources = [ 83 sources = [
80 "test_support_impl.cc", 84 "test_support_impl.cc",
81 "test_support_impl.h", 85 "test_support_impl.h",
82 ] 86 ]
83 } 87 }
84 88
85 # Public SDK test targets follow. These targets are not defined within the 89 # Public SDK test targets follow. These targets are not defined within the
86 # public SDK itself as running the unittests requires the EDK. 90 # public SDK itself as running the unittests requires the EDK.
87 # TODO(vtl): These don't really belong here. (They should be converted to 91 # TODO(vtl): These don't really belong here. (They should be converted to
88 # apptests, but even apart from that these targets belong somewhere else.) 92 # apptests, but even apart from that these targets belong somewhere else.)
89 93
90 group("public_tests") { 94 group("public_tests") {
91 testonly = true 95 testonly = true
92 deps = [ 96 deps = [
93 # TODO(use_chrome_edk): remove "2" 97 ":mojo_public_bindings_unittests",
94 ":mojo_public_bindings_unittests2", 98 ":mojo_public_environment_unittests",
95 ":mojo_public_environment_unittests2", 99 ":mojo_public_system_perftests",
96 ":mojo_public_system_perftests2", 100 ":mojo_public_system_unittests",
97 ":mojo_public_system_unittests2", 101 ":mojo_public_utility_unittests",
98 ":mojo_public_utility_unittests2",
99 ] 102 ]
100 } 103 }
101 104
102 # TODO(use_chrome_edk): remove "2" 105 test("mojo_public_bindings_unittests") {
103 test("mojo_public_bindings_unittests2") {
104 deps = [ 106 deps = [
105 ":run_all_unittests", 107 ":run_all_unittests",
106 "//mojo/public/cpp/bindings/tests", 108 "//mojo/public/cpp/bindings/tests",
107 ] 109 ]
108 } 110 }
109 111
110 # TODO(use_chrome_edk): remove "2" 112 test("mojo_public_environment_unittests") {
111 test("mojo_public_environment_unittests2") {
112 deps = [ 113 deps = [
113 ":run_all_unittests", 114 ":run_all_unittests",
114 "//mojo/public/cpp/environment/tests", 115 "//mojo/public/cpp/environment/tests",
115 ] 116 ]
116 } 117 }
117 118
118 # TODO(use_chrome_edk): remove "2" 119 test("mojo_public_system_perftests") {
119 test("mojo_public_system_perftests2") {
120 deps = [ 120 deps = [
121 ":run_all_perftests", 121 ":run_all_perftests",
122 "//mojo/public/c/system/tests:perftests", 122 "//mojo/public/c/system/tests:perftests",
123 ] 123 ]
124 } 124 }
125 125
126 # TODO(use_chrome_edk): remove "2" 126 test("mojo_public_system_unittests") {
127 test("mojo_public_system_unittests2") {
128 deps = [ 127 deps = [
129 ":run_all_unittests", 128 ":run_all_unittests",
130 "//mojo/public/cpp/system/tests", 129 "//mojo/public/cpp/system/tests",
131 ] 130 ]
132 } 131 }
133 132
134 # TODO(use_chrome_edk): remove "2" 133 test("mojo_public_utility_unittests") {
135 test("mojo_public_utility_unittests2") {
136 deps = [ 134 deps = [
137 ":run_all_unittests", 135 ":run_all_unittests",
138 "//mojo/public/cpp/utility/tests", 136 "//mojo/public/cpp/utility/tests",
139 ] 137 ]
140 } 138 }
OLDNEW
« no previous file with comments | « mojo/edk/system/data_pipe_unittest.cc ('k') | mojo/edk/test/multiprocess_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698