Upstream version 9.38.205.0
[platform/framework/web/crosswalk.git] / src / xwalk / xwalk_tests.gypi
1 {
2   'targets': [
3     {
4       'target_name': 'xwalk_all_tests',
5       'type': 'none',
6       'dependencies': [
7         'xwalk_browsertest',
8         'xwalk_unittest',
9         'extensions/extensions_tests.gyp:xwalk_extensions_browsertest',
10         'extensions/extensions_tests.gyp:xwalk_extensions_unittest',
11         'sysapps/sysapps_tests.gyp:xwalk_sysapps_browsertest',
12         'sysapps/sysapps_tests.gyp:xwalk_sysapps_unittest',
13       ],
14       'conditions': [
15         ['OS=="linux"', {
16           'dependencies': [
17             'dbus/xwalk_dbus.gyp:xwalk_dbus_unittests',
18           ],
19         }],
20       ],
21     },
22     {
23       'target_name': 'xwalk_unittest',
24       'type': 'executable',
25       'dependencies': [
26         '../base/base.gyp:base',
27         '../content/content.gyp:content_common',
28         '../content/content_shell_and_tests.gyp:test_support_content',
29         '../testing/gtest.gyp:gtest',
30         '../ui/base/ui_base.gyp:ui_base',
31         'test/base/base.gyp:xwalk_test_base',
32         'xwalk_application_lib',
33         'xwalk_runtime',
34       ],
35       'sources': [
36         'application/common/package/package_unittest.cc',
37         'application/common/application_unittest.cc',
38         'application/common/application_file_util_unittest.cc',
39         'application/common/id_util_unittest.cc',
40         'application/common/manifest_handlers/csp_handler_unittest.cc',
41         'application/common/manifest_handlers/permissions_handler_unittest.cc',
42         'application/common/manifest_handlers/warp_handler_unittest.cc',
43         'application/common/manifest_handlers/widget_handler_unittest.cc',
44         'application/common/manifest_handler_unittest.cc',
45         'application/common/manifest_unittest.cc',
46         'runtime/common/xwalk_content_client_unittest.cc',
47         'runtime/common/xwalk_runtime_features_unittest.cc',
48       ],
49       'conditions': [
50         ['toolkit_views == 1', {
51           'sources': [
52             'runtime/browser/ui/top_view_layout_views_unittest.cc',
53           ],
54           'dependencies': [
55             '../skia/skia.gyp:skia',
56           ],
57         }],
58         ['tizen==1', {
59           'sources': [
60             'application/common/manifest_handlers/navigation_handler_unittest.cc',
61           ],
62         }],
63       ],
64     },
65     {
66       'target_name': 'xwalk_browsertest',
67       'type': 'executable',
68       'dependencies': [
69         '../base/base.gyp:base',
70         '../content/content.gyp:content_browser',
71         '../content/content.gyp:content_common',
72         '../content/content_shell_and_tests.gyp:test_support_content',
73         '../net/net.gyp:net',
74         '../skia/skia.gyp:skia',
75         '../testing/gmock.gyp:gmock',
76         '../testing/gtest.gyp:gtest',
77         '../third_party/libxml/libxml.gyp:libxml',
78         '../ui/base/ui_base.gyp:ui_base',
79         'test/base/base.gyp:xwalk_test_base',
80         'xwalk_application_lib',
81         'xwalk_resources',
82         'xwalk_runtime',
83       ],
84       'includes': [
85         '../build/filename_rules.gypi',
86       ],
87       'defines': [
88         'HAS_OUT_OF_PROC_TEST_RUNNER',
89       ],
90       'sources': [
91         'application/test/application_browsertest.cc',
92         'application/test/application_browsertest.h',
93         'application/test/application_multi_app_test.cc',
94         'application/test/application_testapi.cc',
95         'application/test/application_testapi.h',
96         'application/test/application_testapi_test.cc',
97         'experimental/native_file_system/native_file_system_api_browsertest.cc',
98         'runtime/browser/devtools/xwalk_devtools_browsertest.cc',
99         'runtime/browser/ui/taskbar_util_browsertest_win.cc',
100         'runtime/browser/xwalk_download_browsertest.cc',
101         'runtime/browser/xwalk_form_input_browsertest.cc',
102         'runtime/browser/xwalk_runtime_browsertest.cc',
103         'runtime/browser/xwalk_switches_browsertest.cc',
104       ],
105     }
106   ],
107 }