Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: ios/web/ios_web_shell_tests.gyp

Issue 2332843004: Remove GYP files. (Closed)
Patch Set: Merge Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/web/ios_web_shell_exe.gypi ('k') | ios/web/ios_web_unittests.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 {
6 'variables': {
7 'chromium_code': 1,
8 },
9 'targets': [
10 {
11 # GN version: //ios/web/shell/test:ios_web_shell_test
12 'target_name': 'ios_web_shell_test',
13 'type': 'loadable_module',
14 'mac_xctest_bundle': 1,
15 'variables': {
16 'test_host': '<(_target_name)_host',
17 },
18 'dependencies': [
19 '<(test_host)',
20 ],
21 'xcode_settings': {
22 'WRAPPER_EXTENSION': 'xctest',
23 'TEST_HOST': '${BUILT_PRODUCTS_DIR}/<(test_host).app/<(test_host)',
24 'BUNDLE_LOADER': '$(TEST_HOST)',
25 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': 'iPhone Developer',
26 'INFOPLIST_FILE': 'shell/test/Module-Info.plist',
27 'OTHER_LDFLAGS': [
28 '-bundle_loader <(test_host).app/<(test_host)',
29 ],
30 },
31 'sources': [
32 'shell/test/shell_test.mm',
33 ],
34 'link_settings': {
35 'libraries': [
36 'Foundation.framework',
37 'XCTest.framework',
38 ],
39 },
40 },
41 {
42 # Create a test host for earl grey tests, so Xcode 7.3 and above
43 # doesn't contaminate the app structure.
44 # GN version: //ios/web/shell/test:ios_web_shell_test_host
45 'target_name': 'ios_web_shell_test_host',
46 'includes': [
47 'ios_web_shell_exe.gypi',
48 ],
49 'link_settings': {
50 'libraries': [
51 'XCTest.framework',
52 ],
53 },
54 'xcode_settings': {
55 'INFOPLIST_FILE': 'shell/test/Host-Info.plist',
56 'OTHER_LDFLAGS': [
57 '-Xlinker', '-rpath', '-Xlinker', '@executable_path/Frameworks',
58 '-Xlinker', '-rpath', '-Xlinker', '@loader_path/Frameworks'
59 ]
60 },
61 'dependencies': [
62 'ios_web_shell_earl_grey_test_support',
63 '<(DEPTH)/ios/third_party/earl_grey/earl_grey.gyp:EarlGrey',
64 ],
65 'sources': [
66 'shell/test/meta_tags_egtest.mm',
67 'shell/test/navigation_egtest.mm',
68 'shell/test/page_state_egtest.mm',
69 'shell/test/pdf_egtest.mm',
70 'shell/test/plugin_placeholder_egtest.mm',
71 'shell/test/redirect_egtest.mm',
72 ],
73 'actions': [{
74 'action_name': 'copy_test_data',
75 'variables': {
76 'test_data_files': [
77 '../../ios/web/shell/test/http_server_files',
78 ],
79 # Files are copied to .app/<test_data_prefix>/<test_data_files>.
80 # Since the test_data_files are two levels up, the test_data_prefix
81 # needs to be two levels deep so the files end up in the .app bundle
82 # and not in some parent directory. In other words, this will resolve
83 # to: .app/ios/web/../../ios/web/shell/test/http_server_files.
84 'test_data_prefix': 'ios/web',
85 },
86 'includes': [ '../../build/copy_test_data_ios.gypi' ],
87 }],
88
89 'postbuilds': [
90 {
91 'postbuild_name': 'Copy OCHamcrest to TEST_HOST',
92 'action': [
93 'ditto',
94 '${BUILT_PRODUCTS_DIR}/OCHamcrest.framework',
95 '${BUILT_PRODUCTS_DIR}/<(_target_name).app/Frameworks/OCHamcrest.fra mework',
96 ],
97 },
98 {
99 'postbuild_name': 'Copy EarlGrey to TEST_HOST',
100 'action': [
101 'ditto',
102 '${BUILT_PRODUCTS_DIR}/EarlGrey.framework',
103 '${BUILT_PRODUCTS_DIR}/<(_target_name).app/Frameworks/EarlGrey.frame work',
104 ],
105 },
106 ],
107 },
108 {
109 # TODO(crbug.com/606815): Refactor out code that is common across Chrome
110 # and the web shell.
111 # GN version: //ios/web/shell/test:earl_grey_test_support
112 'target_name': 'ios_web_shell_earl_grey_test_support',
113 'type': 'static_library',
114 'dependencies': [
115 '<(DEPTH)/ios/third_party/earl_grey/earl_grey.gyp:EarlGrey',
116 'ios_web.gyp:ios_web_earl_grey_test_support',
117 '../testing/earl_grey/earl_grey_support.gyp:earl_grey_support',
118 ],
119 'sources': [
120 'shell/test/app/navigation_test_util.h',
121 'shell/test/app/navigation_test_util.mm',
122 'shell/test/app/web_shell_test_util.h',
123 'shell/test/app/web_shell_test_util.mm',
124 'shell/test/app/web_view_interaction_test_util.h',
125 'shell/test/app/web_view_interaction_test_util.mm',
126 'shell/test/earl_grey/shell_base_test_case.h',
127 'shell/test/earl_grey/shell_base_test_case.mm',
128 'shell/test/earl_grey/shell_matchers.h',
129 'shell/test/earl_grey/shell_matchers.mm',
130 ],
131 },
132 ],
133 }
OLDNEW
« no previous file with comments | « ios/web/ios_web_shell_exe.gypi ('k') | ios/web/ios_web_unittests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698