David Garcia Quintas | f3e1c45 | 2017-02-17 12:23:07 -0800 | [diff] [blame] | 1 | # Copyright 2016, Google Inc. |
| 2 | # All rights reserved. |
| 3 | # |
| 4 | # Redistribution and use in source and binary forms, with or without |
| 5 | # modification, are permitted provided that the following conditions are |
| 6 | # met: |
| 7 | # |
| 8 | # * Redistributions of source code must retain the above copyright |
| 9 | # notice, this list of conditions and the following disclaimer. |
| 10 | # * Redistributions in binary form must reproduce the above |
| 11 | # copyright notice, this list of conditions and the following disclaimer |
| 12 | # in the documentation and/or other materials provided with the |
| 13 | # distribution. |
| 14 | # * Neither the name of Google Inc. nor the names of its |
| 15 | # contributors may be used to endorse or promote products derived from |
| 16 | # this software without specific prior written permission. |
| 17 | # |
| 18 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 19 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 20 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 21 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 22 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 | |
| 30 | cc_test( |
| 31 | name = "context_test", |
| 32 | srcs = ["context_test.c"], |
| 33 | copts = ["-std=c99"], |
| 34 | deps = [ |
| 35 | "//:gpr", |
| 36 | "//:grpc", |
| 37 | "//test/core/util:gpr_test_util", |
| 38 | "//test/core/util:grpc_test_util", |
| 39 | ], |
| 40 | ) |
| 41 | |
| 42 | cc_test( |
| 43 | name = "mlog_test", |
| 44 | srcs = ["mlog_test.c"], |
| 45 | copts = ["-std=c99"], |
| 46 | deps = [ |
| 47 | "//:gpr", |
| 48 | "//:grpc", |
| 49 | "//test/core/util:gpr_test_util", |
| 50 | "//test/core/util:grpc_test_util", |
| 51 | ], |
| 52 | ) |
| 53 | |
| 54 | cc_test( |
| 55 | name = "resource_test", |
| 56 | srcs = ["resource_test.c"], |
| 57 | copts = ["-std=c99"], |
| 58 | data = [ |
| 59 | ":data/resource_empty_name.pb", |
| 60 | ":data/resource_full.pb", |
| 61 | ":data/resource_minimal_good.pb", |
| 62 | ":data/resource_no_name.pb", |
| 63 | ":data/resource_no_numerator.pb", |
| 64 | ":data/resource_no_unit.pb", |
| 65 | ], |
| 66 | deps = [ |
| 67 | "//:gpr", |
| 68 | "//:grpc", |
| 69 | "//test/core/util:gpr_test_util", |
| 70 | "//test/core/util:grpc_test_util", |
| 71 | ], |
| 72 | ) |
| 73 | |
| 74 | cc_test( |
| 75 | name = "trace_context_test", |
| 76 | srcs = ["trace_context_test.c"], |
| 77 | copts = ["-std=c99"], |
| 78 | data = [ |
| 79 | ":data/context_empty.pb", |
| 80 | ":data/context_full.pb", |
| 81 | ":data/context_no_span_options.pb", |
| 82 | ":data/context_span_only.pb", |
| 83 | ":data/context_trace_only.pb", |
| 84 | ], |
| 85 | deps = [ |
| 86 | "//:gpr", |
| 87 | "//:grpc", |
| 88 | "//test/core/util:gpr_test_util", |
| 89 | "//test/core/util:grpc_test_util", |
| 90 | ], |
| 91 | ) |