JUnit test framework for AppRTC Android demo.

This allows creating tests for AppRTC Android demo that will be run on
the host machine instead of a device. These tests can mock Android APIs
through Robolectric. Because the tests are run on the host machine,
they run much faster.

BUG=webrtc:5896
NOTRY=True

Review-Url: https://codereview.webrtc.org/1985663002
Cr-Commit-Position: refs/heads/master@{#12769}
This commit is contained in:
sakal
2016-05-17 03:22:32 -07:00
committed by Commit bot
parent 2ccfbdf011
commit ee3732622c
2 changed files with 31 additions and 0 deletions

View File

@ -464,6 +464,29 @@
'../build/android/test_runner.gypi',
],
},
{
'target_name': 'AppRTCDemoJUnitTest',
'type': 'none',
'dependencies': [
'AppRTCDemo_apk',
'<(DEPTH)/base/base.gyp:base_java',
'<(DEPTH)/base/base.gyp:base_java_test_support',
'<(DEPTH)/base/base.gyp:base_junit_test_support',
],
'variables': {
'main_class': 'org.chromium.testing.local.JunitTestMain',
'src_paths': [
'examples/androidjunit/',
],
'test_type': 'junit',
'wrapper_script_name': 'helper/<(_target_name)',
},
'includes': [
'../build/host_jar.gypi',
'../build/android/test_runner.gypi',
],
},
], # targets
}], # OS=="android"
],