Permalink
Fetching contributors…
Cannot retrieve contributors at this time
160 lines (158 sloc) 4.66 KB
{
'targets': [
{
'target_name': 'xwalk_all_tests',
'type': 'none',
'dependencies': [
'xwalk_unittest',
'xwalk_browsertest',
],
'conditions': [
['OS=="linux"', {
'dependencies': [
'dbus/xwalk_dbus.gyp:xwalk_dbus_unittests',
],
}],
],
},
{
'target_name': 'xwalk_test_common',
'type': 'static_library',
'dependencies': [
'xwalk_application_lib',
'xwalk_runtime',
'xwalk_resources',
'../base/base.gyp:test_support_base',
'../base/base.gyp:base_prefs_test_support',
'../content/content.gyp:content',
'../content/content_shell_and_tests.gyp:test_support_content',
'../net/net.gyp:net',
'../net/net.gyp:net_test_support',
'../skia/skia.gyp:skia',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
'../third_party/zlib/zlib.gyp:zlib',
],
'export_dependent_settings': [
'../base/base.gyp:test_support_base',
],
'include_dirs': [
'..',
],
'sources': [
'test/base/xwalk_test_suite.cc',
'test/base/xwalk_test_suite.h',
'test/base/xwalk_test_utils.cc',
'test/base/xwalk_test_utils.h',
],
'conditions': [
['OS=="win"', {
'include_dirs': [
'<DEPTH>/third_party/wtl/include',
],
}],
['OS=="win" and win_use_allocator_shim==1', {
'dependencies': [
'../base/allocator/allocator.gyp:allocator',
],
}],
],
}, # xwalk_test_common target
{
'target_name': 'xwalk_unittest',
'type': 'executable',
'dependencies': [
'xwalk_test_common',
'../testing/gtest.gyp:gtest',
],
'include_dirs' : [
'..',
],
'includes': [
'extensions/extensions_unittests.gypi',
'sysapps/sysapps_unittests.gypi',
],
'sources': [
'application/browser/application_event_router_unittest.cc',
'application/browser/installer/package_unittest.cc',
'application/common/application_unittest.cc',
'application/common/application_file_util_unittest.cc',
'application/common/id_util_unittest.cc',
'application/common/manifest_handlers/permissions_handler_unittest.cc',
'application/common/manifest_handler_unittest.cc',
'application/common/manifest_unittest.cc',
'application/common/db_store_sqlite_impl_unittest.cc',
'runtime/common/xwalk_content_client_unittest.cc',
'test/base/run_all_unittests.cc',
],
'conditions': [
['OS=="win" and win_use_allocator_shim==1', {
'dependencies': [
'../base/allocator/allocator.gyp:allocator',
],
}],
['toolkit_views == 1', {
'sources': [
'runtime/browser/ui/top_view_layout_views_unittest.cc',
],
'dependencies': [
'../skia/skia.gyp:skia',
],
}],
],
}, # xwalk_unit_tests target
{
'target_name': 'xwalk_browsertest',
'type': 'executable',
'dependencies': [
'xwalk',
'xwalk_test_common',
'../skia/skia.gyp:skia',
'../testing/gtest.gyp:gtest',
'../testing/gmock.gyp:gmock',
],
'include_dirs': [
'..',
],
'defines': [
'HAS_OUT_OF_PROC_TEST_RUNNER',
],
'sources': [
'application/test/application_apitest.cc',
'application/test/application_apitest.h',
'application/test/application_browsertest.cc',
'application/test/application_browsertest.h',
'application/test/application_eventapi_test.cc',
'application/test/application_main_document_browsertest.cc',
'application/test/application_testapi.cc',
'application/test/application_testapi.h',
'application/test/application_testapi_test.cc',
'runtime/browser/xwalk_download_browsertest.cc',
'runtime/browser/xwalk_form_input_browsertest.cc',
'runtime/browser/xwalk_runtime_browsertest.cc',
'runtime/browser/xwalk_switches_browsertest.cc',
'runtime/browser/devtools/xwalk_devtools_browsertest.cc',
'runtime/browser/geolocation/xwalk_geolocation_browsertest.cc',
'test/base/in_process_browser_test.cc',
'test/base/in_process_browser_test.h',
'test/base/xwalk_test_launcher.cc',
],
'includes': [
'extensions/extensions_browsertests.gypi',
'sysapps/sysapps_browsertests.gypi',
'xwalk_jsapi.gypi',
],
'conditions': [
['OS=="win" and win_use_allocator_shim==1', {
'dependencies': [
'../base/allocator/allocator.gyp:allocator',
],
}],
['OS=="win"', {
'sources': [
'runtime/browser/ui/taskbar_util_browsertest.cc',
],
}], # OS=="win"
],
}], # xwalk_browser_tests target
}