Index: talk/libjingle_tests.gyp |
diff --git a/talk/libjingle_tests.gyp b/talk/libjingle_tests.gyp |
index e7b354b126b1e07bba8ea1b22a14e2af6fa3af12..1dc3649186cedcf52beacd455888487546342669 100755 |
--- a/talk/libjingle_tests.gyp |
+++ b/talk/libjingle_tests.gyp |
@@ -187,7 +187,7 @@ |
}, # target libjingle_p2p_unittest |
{ |
'target_name': 'libjingle_peerconnection_unittest', |
- 'type': 'executable', |
+ 'type': '<(gtest_target_type)', |
'dependencies': [ |
'<(DEPTH)/testing/gmock.gyp:gmock', |
'<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', |
@@ -218,7 +218,6 @@ |
# 'app/webrtc/peerconnectionproxy_unittest.cc', |
'app/webrtc/remotevideocapturer_unittest.cc', |
'app/webrtc/rtpsenderreceiver_unittest.cc', |
- 'app/webrtc/sctputils.cc', |
'app/webrtc/statscollector_unittest.cc', |
'app/webrtc/test/fakeaudiocapturemodule.cc', |
'app/webrtc/test/fakeaudiocapturemodule.h', |
@@ -239,17 +238,14 @@ |
], |
'conditions': [ |
['OS=="android"', { |
- # We want gmock features that use tr1::tuple, but we currently |
- # don't support the variadic templates used by libstdc++'s |
- # implementation. gmock supports this scenario by providing its |
- # own implementation but we must opt in to it. |
- 'defines': [ |
- 'GTEST_USE_OWN_TR1_TUPLE=1', |
- # GTEST_USE_OWN_TR1_TUPLE only works if GTEST_HAS_TR1_TUPLE is set. |
- # gmock r625 made it so that GTEST_HAS_TR1_TUPLE is set to 0 |
- # automatically on android, so it has to be set explicitly here. |
- 'GTEST_HAS_TR1_TUPLE=1', |
- ], |
+ 'sources': [ |
+ 'app/webrtc/test/androidtestinitializer.cc', |
+ 'app/webrtc/test/androidtestinitializer.h', |
+ ], |
+ 'dependencies': [ |
+ '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', |
+ 'libjingle.gyp:libjingle_peerconnection_jni', |
+ ], |
}], |
['OS=="win" and clang==1', { |
'msvs_settings': { |
@@ -415,6 +411,17 @@ |
}, # target apprtc_signaling_gunit_test |
], |
}], |
+ ['OS=="android"', { |
+ 'targets': [ |
+ { |
+ 'target_name': 'libjingle_peerconnection_unittest_apk_target', |
+ 'type': 'none', |
+ 'dependencies': [ |
+ '<(DEPTH)/webrtc/build/apk_tests.gyp:libjingle_peerconnection_unittest_apk', |
+ ], |
+ }, |
+ ], |
+ }], |
['test_isolation_mode != "noop"', { |
'targets': [ |
{ |