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

Issue 11224: Add url_request_unittest to mac build. (Closed)

Created:
12 years, 1 month ago by eroman
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add url_request_unittest to mac build. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=5712

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -37 lines) Patch
M base/process_util_mac.mm View 1 2 3 4 5 3 chunks +21 lines, -6 lines 0 comments Download
M net/net.xcodeproj/project.pbxproj View 2 chunks +2 lines, -0 lines 0 comments Download
M net/url_request/url_request_unittest.h View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 4 5 28 chunks +31 lines, -29 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
eroman
First stab at adding url_request_unittest to mac build. The tests pass (provided you install tls), ...
12 years, 1 month ago (2008-11-18 05:52:32 UTC) #1
eroman
Ok, resolved the autorelease pool issue by extending PlatformTest, and changing to TEST_F. The only ...
12 years, 1 month ago (2008-11-18 07:46:34 UTC) #2
wtc
http://codereview.chromium.org/11224/diff/209/212 File base/process_util_mac.mm (right): http://codereview.chromium.org/11224/diff/209/212#newcode78 Line 78: return true; Should this stub return false instead? ...
12 years, 1 month ago (2008-11-18 18:07:59 UTC) #3
eroman
http://codereview.chromium.org/11224/diff/209/212 File base/process_util_mac.mm (right): http://codereview.chromium.org/11224/diff/209/212#newcode78 Line 78: return true; On 2008/11/18 18:07:59, wtc wrote: > ...
12 years, 1 month ago (2008-11-18 18:51:23 UTC) #4
eroman
> How about updating > http://src.chromium.org/svn/trunk/src/build/install-build-deps.sh > to support Mac OS X, and have it ...
12 years, 1 month ago (2008-11-18 19:13:16 UTC) #5
wtc
http://codereview.chromium.org/11224/diff/209/211 File net/url_request/url_request_unittest.h (right): http://codereview.chromium.org/11224/diff/209/211#newcode302 Line 302: bool tlslite_installed = !access("/usr/local/bin/tls.py", X_OK); On 2008/11/18 18:51:23, ...
12 years, 1 month ago (2008-11-18 19:23:53 UTC) #6
wtc
http://codereview.chromium.org/11224/diff/209/211 File net/url_request/url_request_unittest.h (right): http://codereview.chromium.org/11224/diff/209/211#newcode307 Line 307: command_line.push_back("/usr/bin/python"); On 2008/11/18 18:51:23, eroman wrote: > > ...
12 years, 1 month ago (2008-11-18 19:32:01 UTC) #7
eroman
> Why not switch it to use posix_spawnp, then? Good idea, done!
12 years, 1 month ago (2008-11-18 19:40:49 UTC) #8
Amanda Walker
12 years, 1 month ago (2008-11-19 01:12:04 UTC) #9
On 2008/11/18 19:32:01, wtc wrote:
> Mark, since Mac OS X can also do fork + execvp, should we
> change base::LaunchApp to use the conventional Unix
> fork + execvp sequence on Mac OS X?

Because fork+execvp will usually break any executable that uses any native
(non-POSIX) APIs (though you can sometimes get away with it with great care). 
Mach port rights do not get transferred to the child, which causes problem with
many Mac system libraries.  posix_spawn and posix_spawnp do not have this
problem.

Powered by Google App Engine
This is Rietveld 408576698