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
|
|
|
|
2016-09-19 11:43:09 +00:00
|
|
|
if THIS_IS_FBANDROID:
|
|
|
|
include_defs('//ReactAndroid/DEFS')
|
|
|
|
include_defs('//ReactAndroid/TEST_DEFS')
|
|
|
|
|
|
|
|
jni_instrumentation_test_lib(
|
|
|
|
name = 'tests',
|
|
|
|
class_under_test = 'com/facebook/react/XplatBridgeTest',
|
|
|
|
soname = 'libxplat-bridge.so',
|
|
|
|
srcs = TEST_SRCS,
|
|
|
|
compiler_flags = [
|
|
|
|
'-fexceptions',
|
2017-02-28 22:14:51 +00:00
|
|
|
'-std=c++1y',
|
2016-09-19 11:43:09 +00:00
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
'//native/third-party/android-ndk:android',
|
2016-12-09 19:03:16 +00:00
|
|
|
'xplat//third-party/gmock:gtest',
|
2016-09-19 11:43:09 +00:00
|
|
|
react_native_xplat_target('cxxreact:bridge'),
|
|
|
|
],
|
|
|
|
visibility = ['//instrumentation_tests/...'],
|
|
|
|
)
|
|
|
|
|
|
|
|
if THIS_IS_FBOBJC:
|
|
|
|
fb_xplat_cxx_test(
|
|
|
|
name = 'tests',
|
|
|
|
srcs = TEST_SRCS,
|
|
|
|
compiler_flags = [
|
|
|
|
'-fexceptions',
|
|
|
|
],
|
|
|
|
deps = [
|
2016-11-16 23:08:42 +00:00
|
|
|
'//xplat/folly:molly',
|
2016-12-09 19:03:16 +00:00
|
|
|
'xplat//third-party/gmock:gtest',
|
2016-09-19 11:43:09 +00:00
|
|
|
react_native_xplat_target('cxxreact:bridge'),
|
2016-11-01 18:38:43 +00:00
|
|
|
react_native_xplat_target('jschelpers:jschelpers'),
|
2016-09-19 11:43:09 +00:00
|
|
|
],
|
|
|
|
visibility = [react_native_xplat_target('cxxreact/...')],
|
|
|
|
)
|