|
1 | | -load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target") |
| 1 | +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") |
2 | 2 | load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") |
| 3 | +load("@fbsource//xplat/folly:defs.bzl", "folly_xplat_cxx_test") |
| 4 | +load("@fbsource//xplat/pfh/triage_InfrastructureSupermoduleOptou:DEFS.bzl", "triage_InfrastructureSupermoduleOptou") |
3 | 5 |
|
4 | 6 | oncall("fbcode_entropy_wardens_folly") |
5 | 7 |
|
| 8 | +# xplat unit tests |
| 9 | + |
| 10 | +non_fbcode_target( |
| 11 | + _kind = folly_xplat_cxx_test, |
| 12 | + name = "apply_tuple_test", |
| 13 | + srcs = ["ApplyTupleTest.cpp"], |
| 14 | + feature = triage_InfrastructureSupermoduleOptou, |
| 15 | + deps = [ |
| 16 | + "//xplat/folly:overload", |
| 17 | + "//xplat/folly:portability_gtest", |
| 18 | + "//xplat/folly/functional:apply_tuple", |
| 19 | + ], |
| 20 | +) |
| 21 | + |
| 22 | +non_fbcode_target( |
| 23 | + _kind = folly_xplat_cxx_test, |
| 24 | + name = "invoke_test", |
| 25 | + srcs = ["InvokeTest.cpp"], |
| 26 | + feature = triage_InfrastructureSupermoduleOptou, |
| 27 | + deps = [ |
| 28 | + "//xplat/folly:cpp_attributes", |
| 29 | + "//xplat/folly:portability_gtest", |
| 30 | + "//xplat/folly/functional:invoke", |
| 31 | + ], |
| 32 | +) |
| 33 | + |
| 34 | +non_fbcode_target( |
| 35 | + _kind = folly_xplat_cxx_test, |
| 36 | + name = "partial_test", |
| 37 | + srcs = ["PartialTest.cpp"], |
| 38 | + feature = triage_InfrastructureSupermoduleOptou, |
| 39 | + deps = [ |
| 40 | + "//xplat/folly:function", |
| 41 | + "//xplat/folly:portability_gtest", |
| 42 | + "//xplat/folly/functional:partial", |
| 43 | + ], |
| 44 | +) |
| 45 | + |
| 46 | +non_fbcode_target( |
| 47 | + _kind = folly_xplat_cxx_test, |
| 48 | + name = "protocol_test", |
| 49 | + srcs = ["protocol_test.cpp"], |
| 50 | + feature = triage_InfrastructureSupermoduleOptou, |
| 51 | + deps = [ |
| 52 | + "//xplat/folly:portability_gtest", |
| 53 | + "//xplat/folly:traits", |
| 54 | + "//xplat/folly/functional:protocol", |
| 55 | + ], |
| 56 | +) |
| 57 | + |
| 58 | +non_fbcode_target( |
| 59 | + _kind = folly_xplat_cxx_test, |
| 60 | + name = "traits_test", |
| 61 | + srcs = ["traits_test.cpp"], |
| 62 | + feature = triage_InfrastructureSupermoduleOptou, |
| 63 | + deps = [ |
| 64 | + "//xplat/folly:portability_gtest", |
| 65 | + "//xplat/folly/functional:traits", |
| 66 | + ], |
| 67 | +) |
| 68 | + |
| 69 | +# fbcode unit tests |
| 70 | + |
6 | 71 | fbcode_target( |
7 | 72 | _kind = cpp_unittest, |
8 | 73 | name = "apply_tuple_test", |
|
0 commit comments