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

Issue 2616773003: Associate xctest files with corresponding xctest targets. (Closed)

Created:
3 years, 11 months ago by liaoyuke
Modified:
3 years, 11 months ago
CC:
chromium-reviews, Dirk Pranke, tfarina, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Associate xctest files with corresponding xctest targets. Previously, our generated Xcode project has the issue that Xcode couldn't find our xctests. And to fix it, one must find the list of xctest files under each of the application targets and then associate them with the corresponding xctest target. This CL associates xctest files with xctest targets and because our compilation is done via ninja, it also adds '-help' as per file compiler flags to each xctest file reference to prevent Xcode from trying to compile the xctest files. BUG=614818 Review-Url: https://codereview.chromium.org/2616773003 Cr-Commit-Position: refs/heads/master@{#442120} Committed: https://chromium.googlesource.com/chromium/src/+/4ce240b3ecb8ff7d7b902f2ccdf361411915610a

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -13 lines) Patch
M tools/gn/xcode_object.h View 2 chunks +9 lines, -6 lines 0 comments Download
M tools/gn/xcode_object.cc View 3 chunks +21 lines, -6 lines 0 comments Download
M tools/gn/xcode_writer.cc View 1 7 chunks +82 lines, -1 line 0 comments Download

Messages

Total messages: 14 (6 generated)
liaoyuke
PTAL! One last CL :) Thank you very much!
3 years, 11 months ago (2017-01-05 06:18:06 UTC) #3
sdefresne
https://codereview.chromium.org/2616773003/diff/1/tools/gn/xcode_writer.cc File tools/gn/xcode_writer.cc (right): https://codereview.chromium.org/2616773003/diff/1/tools/gn/xcode_writer.cc#newcode215 tools/gn/xcode_writer.cc:215: if (xctest_file_to_application_targets->find(source) == I think you can avoid doing ...
3 years, 11 months ago (2017-01-05 12:14:02 UTC) #4
liaoyuke
Addressed comments. Please take another look. Thank you very much! https://codereview.chromium.org/2616773003/diff/1/tools/gn/xcode_writer.cc File tools/gn/xcode_writer.cc (right): https://codereview.chromium.org/2616773003/diff/1/tools/gn/xcode_writer.cc#newcode215 ...
3 years, 11 months ago (2017-01-05 17:43:12 UTC) #5
sdefresne
lgtm
3 years, 11 months ago (2017-01-06 10:45:26 UTC) #6
liaoyuke
On 2017/01/06 10:45:26, sdefresne wrote: > lgtm Thank you very much for reviewing! Hello Dirk, ...
3 years, 11 months ago (2017-01-06 16:22:25 UTC) #8
Dirk Pranke
lgtm.
3 years, 11 months ago (2017-01-07 00:26:31 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2616773003/20001
3 years, 11 months ago (2017-01-07 00:28:11 UTC) #11
commit-bot: I haz the power
3 years, 11 months ago (2017-01-07 01:00:35 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/4ce240b3ecb8ff7d7b902f2ccdf3...

Powered by Google App Engine
This is Rietveld 408576698