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

Issue 4947002: Mac: Let browser_tests run in bundled mode for their whole lifetime. (Closed)

Created:
10 years, 1 month ago by Nico
Modified:
9 years, 7 months ago
Reviewers:
Mark Mentovai, TVL
CC:
chromium-reviews, Paweł Hajdan Jr., pam+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Mac: Let out-of-process tests run in bundled mode for their whole lifetime. Since out-of-process tests override the EXE path to look like the bundled app, it makes sense to override AmIBundled() as well. This is important because the renderer process started from browser_tests runs as bundled, and if browser and renderer process don't agree on bundled-ness, the "load plugin" requests for internal plugins from the renderer have the wrong plugin path, causing the plugin load to fail. Also add a DCHECK that makes sure that AmIBundled() doesn't flip-flop. This makes PDFBrowserTest work on mac, so enable it. It looks like even unit_tests uses the out-of-process test runner, so this change is a bit hairy :-/ BUG=61258, 63183 TEST=all existing tests still pass, PDFBrowserTest.* passes. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66156

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -32 lines) Patch
M base/base_paths_mac.mm View 1 chunk +2 lines, -1 line 0 comments Download
M base/mac_util.h View 1 chunk +1 line, -0 lines 0 comments Download
M base/mac_util.mm View 2 chunks +24 lines, -1 line 0 comments Download
M chrome/common/pepper_plugin_registry.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/in_process_browser_test.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/in_process_browser_test.cc View 1 2 3 4 chunks +30 lines, -24 lines 0 comments Download
M chrome/test/plugin/pdf_browsertest.cc View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Nico
10 years, 1 month ago (2010-11-15 17:08:29 UTC) #1
TVL
Handing this off to Mark as he wrote a lot of the bundled/version directory stuff. ...
10 years, 1 month ago (2010-11-15 17:15:06 UTC) #2
Mark Mentovai
Things are kind of broken now, but this still feels like a huge hack. I ...
10 years, 1 month ago (2010-11-15 17:49:59 UTC) #3
Nico
On Mon, Nov 15, 2010 at 6:50 PM, <mark@chromium.org> wrote: > Things are kind of ...
10 years, 1 month ago (2010-11-15 18:17:31 UTC) #4
Mark Mentovai
I’ll give you an LGTM because this isn’t really any worse than the current state ...
10 years, 1 month ago (2010-11-15 18:49:12 UTC) #5
Nico
10 years, 1 month ago (2010-11-15 19:20:11 UTC) #6
On Mon, Nov 15, 2010 at 7:49 PM, Mark Mentovai <mark@chromium.org> wrote:
> I’ll give you an LGTM because this isn’t really any worse than the
> current state of the world, but it’d be cleaner if you didn’t have
> that phantom MacOS check that I picked on.

Thanks. Looks like the MacOS check isn't necessary.

Powered by Google App Engine
This is Rietveld 408576698