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

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

Issue 728783003: Add infrastructure to run tests on android. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Follow review Created 6 years, 1 month 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
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 if (is_android) {
6 import("//build/config/android/config.gni")
7 import("//build/config/android/rules.gni")
8 }
9
5 config("system_config") { 10 config("system_config") {
6 defines = [ 11 defines = [
7 # Ensures that dependent projects import the core functions on Windows. 12 # Ensures that dependent projects import the core functions on Windows.
8 "MOJO_USE_SYSTEM_IMPL", 13 "MOJO_USE_SYSTEM_IMPL",
9 ] 14 ]
10 } 15 }
11 16
12 component("system") { 17 component("system") {
13 output_name = "mojo_system_impl" 18 output_name = "mojo_system_impl"
14 19
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 ] 97 ]
93 98
94 deps = [ 99 deps = [
95 "//base", 100 "//base",
96 "//base/third_party/dynamic_annotations", 101 "//base/third_party/dynamic_annotations",
97 ] 102 ]
98 103
99 allow_circular_includes_from = [ "//mojo/edk/embedder" ] 104 allow_circular_includes_from = [ "//mojo/edk/embedder" ]
100 } 105 }
101 106
102 # GYP version: mojo/edk/mojo_edk.gyp:mojo_system_unittests
103 test("mojo_system_unittests") { 107 test("mojo_system_unittests") {
104 sources = [ 108 sources = [
105 "../test/multiprocess_test_helper_unittest.cc", 109 "../test/multiprocess_test_helper_unittest.cc",
106 "channel_endpoint_id_unittest.cc", 110 "channel_endpoint_id_unittest.cc",
107 "channel_unittest.cc", 111 "channel_unittest.cc",
108 "core_test_base.cc", 112 "core_test_base.cc",
109 "core_test_base.h", 113 "core_test_base.h",
110 "core_unittest.cc", 114 "core_unittest.cc",
111 "data_pipe_unittest.cc", 115 "data_pipe_unittest.cc",
112 "dispatcher_unittest.cc", 116 "dispatcher_unittest.cc",
(...skipping 22 matching lines...) Expand all
135 139
136 deps = [ 140 deps = [
137 ":system", 141 ":system",
138 "//base", 142 "//base",
139 "//base/test:test_support", 143 "//base/test:test_support",
140 "//mojo/edk/embedder:embedder_unittests", 144 "//mojo/edk/embedder:embedder_unittests",
141 "//mojo/edk/test:test_support", 145 "//mojo/edk/test:test_support",
142 "//testing/gtest", 146 "//testing/gtest",
143 ] 147 ]
144 148
149 if (is_android) {
150 deps += [
151 "//testing/android:native_test_native_code",
152 ]
153 }
154
145 allow_circular_includes_from = [ "//mojo/edk/embedder:embedder_unittests" ] 155 allow_circular_includes_from = [ "//mojo/edk/embedder:embedder_unittests" ]
146 } 156 }
147 157
148 # GYP version: mojo/edk/mojo_edk.gyp:mojo_message_pipe_perftests
149 test("mojo_message_pipe_perftests") { 158 test("mojo_message_pipe_perftests") {
150 sources = [ 159 sources = [
151 "message_pipe_perftest.cc", 160 "message_pipe_perftest.cc",
152 "message_pipe_test_utils.h", 161 "message_pipe_test_utils.h",
153 "message_pipe_test_utils.cc", 162 "message_pipe_test_utils.cc",
154 "test_utils.cc", 163 "test_utils.cc",
155 "test_utils.h", 164 "test_utils.h",
156 ] 165 ]
157 166
158 deps = [ 167 deps = [
159 ":system", 168 ":system",
160 "//base", 169 "//base",
161 "//base/test:test_support", 170 "//base/test:test_support",
162 "//base/test:test_support_perf", 171 "//base/test:test_support_perf",
163 "//mojo/edk/test:test_support", 172 "//mojo/edk/test:test_support",
164 "//testing/gtest", 173 "//testing/gtest",
165 ] 174 ]
166 } 175 }
176
177 if (is_android) {
178 unittest_apk("mojo_system_unittests_apk") {
179 deps = [
180 ":mojo_system_unittests",
181 ]
182 unittests_dep = ":mojo_system_unittests"
183 }
184 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698