2018-07-15 01:21:39 +00:00
|
|
|
load(
|
|
|
|
"//ReactNative:DEFS.bzl",
|
|
|
|
"ANDROID_JSC_DEPS",
|
|
|
|
"APPLE",
|
|
|
|
"APPLE_JSC_DEPS",
|
|
|
|
"react_native_xplat_target",
|
|
|
|
"jni_instrumentation_test_lib",
|
|
|
|
"fb_xplat_cxx_test",
|
|
|
|
)
|
2018-01-22 05:54:01 +00:00
|
|
|
|
2016-09-19 11:43:09 +00:00
|
|
|
TEST_SRCS = [
|
2017-02-25 05:40:45 +00:00
|
|
|
"RecoverableErrorTest.cpp",
|
|
|
|
"jsarg_helpers.cpp",
|
|
|
|
"jsbigstring.cpp",
|
|
|
|
"jscexecutor.cpp",
|
|
|
|
"jsclogging.cpp",
|
|
|
|
"methodcall.cpp",
|
|
|
|
"value.cpp",
|
2016-09-19 11:43:09 +00:00
|
|
|
]
|
2016-06-14 01:12:33 +00:00
|
|
|
|
2018-07-15 01:21:39 +00:00
|
|
|
jni_instrumentation_test_lib(
|
|
|
|
name = "tests",
|
|
|
|
srcs = TEST_SRCS,
|
|
|
|
class_under_test = "com/facebook/react/XplatBridgeTest",
|
|
|
|
compiler_flags = [
|
|
|
|
"-fexceptions",
|
|
|
|
"-frtti",
|
|
|
|
"-std=c++14",
|
|
|
|
],
|
|
|
|
soname = "libxplat-bridge.so",
|
|
|
|
visibility = [
|
|
|
|
"fbandroid//instrumentation_tests/...",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
"xplat//third-party/linker_lib:android",
|
|
|
|
"xplat//third-party/gmock:gtest",
|
|
|
|
react_native_xplat_target("cxxreact:bridge"),
|
|
|
|
] + ANDROID_JSC_DEPS,
|
|
|
|
)
|
2018-05-21 06:06:59 +00:00
|
|
|
|
2018-07-15 01:21:39 +00:00
|
|
|
fb_xplat_cxx_test(
|
|
|
|
name = "tests",
|
|
|
|
srcs = TEST_SRCS,
|
|
|
|
compiler_flags = [
|
|
|
|
"-fexceptions",
|
|
|
|
"-frtti",
|
|
|
|
],
|
|
|
|
platforms = APPLE,
|
|
|
|
visibility = [
|
|
|
|
react_native_xplat_target("cxxreact/..."),
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
"xplat//folly:molly",
|
|
|
|
"xplat//third-party/gmock:gtest",
|
|
|
|
react_native_xplat_target("cxxreact:bridge"),
|
|
|
|
react_native_xplat_target("jschelpers:jschelpers"),
|
|
|
|
] + APPLE_JSC_DEPS,
|
|
|
|
)
|