2016-09-19 11:43:09 +00:00
|
|
|
TEST_SRCS = [
|
|
|
|
'CxxMessageQueueTest.cpp',
|
2016-12-17 12:46:50 +00:00
|
|
|
'RecoverableErrorTest.cpp',
|
2016-09-19 11:43:09 +00:00
|
|
|
'jsarg_helpers.cpp',
|
2016-11-16 23:08:42 +00:00
|
|
|
'jsbigstring.cpp',
|
2016-09-19 11:43:09 +00:00
|
|
|
'jscexecutor.cpp',
|
|
|
|
'jsclogging.cpp',
|
|
|
|
'methodcall.cpp',
|
|
|
|
'value.cpp',
|
|
|
|
]
|
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',
|
|
|
|
],
|
|
|
|
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/...')],
|
|
|
|
)
|