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

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

Issue 2229573002: Change the canonical way to include the C macros.h to <mojo/macros.h>. (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/c/system/macros.h ('k') | mojo/public/c/system/tests/compile_unittest_pure_c.c » ('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("../../../mojo_sdk.gni") 5 import("../../../mojo_sdk.gni")
6 6
7 mojo_sdk_source_set("tests") { 7 mojo_sdk_source_set("tests") {
8 testonly = true 8 testonly = true
9 9
10 cflags_c = [ "-Wundef" ] 10 cflags_c = [ "-Wundef" ]
(...skipping 10 matching lines...) Expand all
21 "wait_set_unittest.cc", 21 "wait_set_unittest.cc",
22 "wait_unittest.cc", 22 "wait_unittest.cc",
23 ] 23 ]
24 24
25 deps = [ 25 deps = [
26 ":pure_tests", 26 ":pure_tests",
27 "//testing/gtest", 27 "//testing/gtest",
28 ] 28 ]
29 29
30 mojo_sdk_deps = [ 30 mojo_sdk_deps = [
31 "mojo/public/c:system",
31 "mojo/public/c/environment", 32 "mojo/public/c/environment",
32 "mojo/public/c/system", 33 "mojo/public/c/system",
33 ] 34 ]
34 } 35 }
35 36
36 # This source set contains "pure" tests that only depend on the public SDK (and 37 # This source set contains "pure" tests that only depend on the public SDK (and
37 # the standard library), and in particular not on gtest (whose headers don't 38 # the standard library), and in particular not on gtest (whose headers don't
38 # compile with "-Wundef"). 39 # compile with "-Wundef").
39 mojo_sdk_source_set("pure_tests") { 40 mojo_sdk_source_set("pure_tests") {
40 testonly = true 41 testonly = true
41 42
42 visibility = [ ":tests" ] 43 visibility = [ ":tests" ]
43 44
44 cflags = [ "-Wundef" ] 45 cflags = [ "-Wundef" ]
45 46
46 sources = [ 47 sources = [
47 "compile_unittest_pure_c.c", 48 "compile_unittest_pure_c.c",
48 "compile_unittest_pure_cpp.cc", 49 "compile_unittest_pure_cpp.cc",
49 ] 50 ]
50 51
51 mojo_sdk_deps = [ 52 mojo_sdk_deps = [
53 "mojo/public/c:system",
52 "mojo/public/c/environment", 54 "mojo/public/c/environment",
53 "mojo/public/c/system", 55 "mojo/public/c/system",
54 ] 56 ]
55 } 57 }
56 58
57 mojo_sdk_source_set("perftests") { 59 mojo_sdk_source_set("perftests") {
58 testonly = true 60 testonly = true
59 61
60 sources = [ 62 sources = [
61 "message_pipe_perftest.cc", 63 "message_pipe_perftest.cc",
62 "perftest_utils.cc", 64 "perftest_utils.cc",
63 "perftest_utils.h", 65 "perftest_utils.h",
64 "reference_perftest.cc", 66 "reference_perftest.cc",
65 "wait_set_perftest.cc", 67 "wait_set_perftest.cc",
66 ] 68 ]
67 69
68 deps = [ 70 deps = [
69 "//testing/gtest", 71 "//testing/gtest",
70 ] 72 ]
71 73
72 mojo_sdk_deps = [ 74 mojo_sdk_deps = [
75 "mojo/public/c:system",
73 "mojo/public/c/environment", 76 "mojo/public/c/environment",
74 "mojo/public/c/system", 77 "mojo/public/c/system",
75 "mojo/public/cpp/test_support", 78 "mojo/public/cpp/test_support",
76 ] 79 ]
77 } 80 }
OLDNEW
« no previous file with comments | « mojo/public/c/system/macros.h ('k') | mojo/public/c/system/tests/compile_unittest_pure_c.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698