forked from crosswalk-project/crosswalk
/
xwalk_tests.gypi
135 lines (133 loc) · 3.84 KB
/
xwalk_tests.gypi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
'targets': [
{
'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.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',
],
'sources': [
'application/browser/installer/xpk_extractor_unittest.cc',
'application/common/application_unittest.cc',
'application/common/application_file_util_unittest.cc',
'application/common/id_util_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_api_browsertest.cc',
'application/test/application_browsertest.cc',
'application/test/application_browsertest.h',
'application/test/application_main_document_browsertest.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',
'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
}