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

Side by Side Diff: mojo/public/c/BUILD.gn

Issue 2244503002: mojo/public: Include gtest.h as "gtest/gtest.h", instead of via "absolute" path. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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/public/BUILD.gn ('k') | mojo/public/c/tests/bindings/array_unittest.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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("../mojo_sdk.gni") 5 import("../mojo_sdk.gni")
6 6
7 config("c_config") { 7 config("c_config") {
8 include_dirs = [ "include" ] 8 include_dirs = [ "include" ]
9 } 9 }
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 "tests/bindings/buffer_unittest.cc", 67 "tests/bindings/buffer_unittest.cc",
68 "tests/bindings/message_unittest.cc", 68 "tests/bindings/message_unittest.cc",
69 "tests/bindings/struct_unittest.cc", 69 "tests/bindings/struct_unittest.cc",
70 "tests/bindings/testing_util.h", 70 "tests/bindings/testing_util.h",
71 "tests/bindings/union_unittest.cc", 71 "tests/bindings/union_unittest.cc",
72 "tests/bindings/validation_unittest.cc", 72 "tests/bindings/validation_unittest.cc",
73 ] 73 ]
74 74
75 deps = [ 75 deps = [
76 ":bindings", 76 ":bindings",
77 "//testing/gtest",
78 ] 77 ]
79 78
80 mojo_sdk_deps = [ 79 mojo_sdk_deps = [
80 "mojo/public:gtest",
81 "mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils", 81 "mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils",
82 "mojo/public/cpp/bindings/tests:validation_util", 82 "mojo/public/cpp/bindings/tests:validation_util",
83 "mojo/public/cpp/test_support", 83 "mojo/public/cpp/test_support",
84 "mojo/public/cpp/system", 84 "mojo/public/cpp/system",
85 85
86 # The "_c" suffix'd target compiles the generated C bindings to this mojom 86 # The "_c" suffix'd target compiles the generated C bindings to this mojom
87 # target. 87 # target.
88 "mojo/public/interfaces/bindings/tests:test_interfaces_c", 88 "mojo/public/interfaces/bindings/tests:test_interfaces_c",
89 ] 89 ]
90 } 90 }
(...skipping 16 matching lines...) Expand all
107 mojo_sdk_source_set("common_unittests") { 107 mojo_sdk_source_set("common_unittests") {
108 testonly = true 108 testonly = true
109 109
110 sources = [ 110 sources = [
111 "tests/macros_unittest.cc", 111 "tests/macros_unittest.cc",
112 "tests/result_unittest.cc", 112 "tests/result_unittest.cc",
113 ] 113 ]
114 114
115 deps = [ 115 deps = [
116 ":common", 116 ":common",
117 "//testing/gtest",
118 ] 117 ]
118
119 mojo_sdk_deps = [ "mojo/public:gtest" ]
119 } 120 }
120 121
121 # environment ------------------------------------------------------------------ 122 # environment ------------------------------------------------------------------
122 123
123 # Headers in include/mojo/environment (to be included as 124 # Headers in include/mojo/environment (to be included as
124 # <mojo//environment/HEADER.h>). 125 # <mojo//environment/HEADER.h>).
125 # 126 #
126 # Depends on :system (and thus :common). 127 # Depends on :system (and thus :common).
127 128
128 mojo_sdk_source_set("environment") { 129 mojo_sdk_source_set("environment") {
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 "tests/system/data_pipe_unittest.cc", 294 "tests/system/data_pipe_unittest.cc",
294 "tests/system/handle_unittest.cc", 295 "tests/system/handle_unittest.cc",
295 "tests/system/message_pipe_unittest.cc", 296 "tests/system/message_pipe_unittest.cc",
296 "tests/system/time_unittest.cc", 297 "tests/system/time_unittest.cc",
297 "tests/system/wait_set_unittest.cc", 298 "tests/system/wait_set_unittest.cc",
298 "tests/system/wait_unittest.cc", 299 "tests/system/wait_unittest.cc",
299 ] 300 ]
300 301
301 deps = [ 302 deps = [
302 ":system", 303 ":system",
303 "//testing/gtest",
304 ] 304 ]
305
306 mojo_sdk_deps = [ "mojo/public:gtest" ]
305 } 307 }
306 308
307 mojo_sdk_source_set("system_perftests") { 309 mojo_sdk_source_set("system_perftests") {
308 testonly = true 310 testonly = true
309 311
310 sources = [ 312 sources = [
311 "tests/system/message_pipe_perftest.cc", 313 "tests/system/message_pipe_perftest.cc",
312 "tests/system/perftest_utils.cc", 314 "tests/system/perftest_utils.cc",
313 "tests/system/perftest_utils.h", 315 "tests/system/perftest_utils.h",
314 "tests/system/reference_perftest.cc", 316 "tests/system/reference_perftest.cc",
315 "tests/system/wait_set_perftest.cc", 317 "tests/system/wait_set_perftest.cc",
316 ] 318 ]
317 319
318 deps = [ 320 deps = [
319 ":system", 321 ":system",
320 "//testing/gtest",
321 ] 322 ]
322 323
323 mojo_sdk_deps = [ "mojo/public/cpp/test_support" ] 324 mojo_sdk_deps = [
325 "mojo/public:gtest",
326 "mojo/public/cpp/test_support",
327 ]
324 } 328 }
325 329
326 # Compilation tests ------------------------------------------------------------ 330 # Compilation tests ------------------------------------------------------------
327 331
328 # This test ensures that various headers compile and link properly. 332 # This test ensures that various headers compile and link properly.
329 mojo_sdk_source_set("compile_unittests") { 333 mojo_sdk_source_set("compile_unittests") {
330 testonly = true 334 testonly = true
331 335
332 sources = [ 336 sources = [
333 "tests/compile/compile_unittest.cc", 337 "tests/compile/compile_unittest.cc",
334 ] 338 ]
335 339
336 deps = [ 340 deps = [
337 ":pure_compile_tests", 341 ":pure_compile_tests",
338 "//testing/gtest",
339 ] 342 ]
343
344 mojo_sdk_deps = [ "mojo/public:gtest" ]
340 } 345 }
341 346
342 # This source set contains "pure" tests that only depend on the public SDK (and 347 # This source set contains "pure" tests that only depend on the public SDK (and
343 # the standard library), and in particular not on gtest (whose headers don't 348 # the standard library), and in particular not on gtest (whose headers don't
344 # compile with "-Wundef"). 349 # compile with "-Wundef").
345 mojo_sdk_source_set("pure_compile_tests") { 350 mojo_sdk_source_set("pure_compile_tests") {
346 testonly = true 351 testonly = true
347 352
348 visibility = [ ":compile_unittests" ] 353 visibility = [ ":compile_unittests" ]
349 354
350 cflags = [ "-Wundef" ] 355 cflags = [ "-Wundef" ]
351 356
352 sources = [ 357 sources = [
353 "tests/compile/pure_c.c", 358 "tests/compile/pure_c.c",
354 "tests/compile/pure_cpp.cc", 359 "tests/compile/pure_cpp.cc",
355 ] 360 ]
356 361
357 mojo_sdk_deps = [ "mojo/public/c:environment" ] 362 mojo_sdk_deps = [ "mojo/public/c:environment" ]
358 } 363 }
OLDNEW
« no previous file with comments | « mojo/public/BUILD.gn ('k') | mojo/public/c/tests/bindings/array_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698