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

Issue 1211213003: mac: Swizzle out +[NSBundle mainBundle] for in process browser tests. (Closed)

Created:
5 years, 6 months ago by erikchen
Modified:
5 years, 5 months ago
CC:
chromium-reviews, nyquist
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mac: Swizzle out +[NSBundle mainBundle] for in process browser tests. The replacement is a partial mock for the real +[NSBundle mainBundle], but with -[NSBundle bundleIdentifier] stubbed to return a non-nil string. This fixes many browser_tests and interactive_ui_tests on OSX 10.10. BUG=445495 Committed: https://crrev.com/67995392313280c583e6936f267898cb13ab0db2 Cr-Commit-Position: refs/heads/master@{#338105}

Patch Set 1 #

Patch Set 2 : Add DEPs. #

Patch Set 3 : GN. #

Patch Set 4 : Minor formatting, nits. #

Total comments: 9

Patch Set 5 : Comments from rsesek. #

Total comments: 2

Patch Set 6 : Comments from rsesek. #

Total comments: 2

Patch Set 7 : Remove blank line. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -0 lines) Patch
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 2 chunks +5 lines, -0 lines 2 comments Download
M chrome/test/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/in_process_browser_test.h View 2 chunks +4 lines, -0 lines 2 comments Download
M chrome/test/base/in_process_browser_test.cc View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
A chrome/test/base/scoped_bundle_swizzler_mac.h View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/test/base/scoped_bundle_swizzler_mac.mm View 1 2 3 4 5 1 chunk +49 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (6 generated)
erikchen
rsesek: Please review.
5 years, 6 months ago (2015-06-26 18:31:02 UTC) #2
Robert Sesek
https://codereview.chromium.org/1211213003/diff/60001/chrome/test/BUILD.gn File chrome/test/BUILD.gn (right): https://codereview.chromium.org/1211213003/diff/60001/chrome/test/BUILD.gn#newcode168 chrome/test/BUILD.gn:168: # deps += [ '../third_party/ocmock/ocmock.gyp:ocmock' ] TODO(GYP) LOL :( ...
5 years, 6 months ago (2015-06-26 22:36:54 UTC) #3
erikchen
rsesek: PTAL https://codereview.chromium.org/1211213003/diff/60001/chrome/test/base/in_process_browser_test.cc File chrome/test/base/in_process_browser_test.cc (right): https://codereview.chromium.org/1211213003/diff/60001/chrome/test/base/in_process_browser_test.cc#newcode382 chrome/test/base/in_process_browser_test.cc:382: bundle_swizzler_.reset(); On 2015/06/26 22:36:54, Robert Sesek wrote: ...
5 years, 6 months ago (2015-06-26 23:14:53 UTC) #4
Robert Sesek
https://codereview.chromium.org/1211213003/diff/60001/chrome/test/base/scoped_bundle_swizzler_mac.h File chrome/test/base/scoped_bundle_swizzler_mac.h (right): https://codereview.chromium.org/1211213003/diff/60001/chrome/test/base/scoped_bundle_swizzler_mac.h#newcode22 chrome/test/base/scoped_bundle_swizzler_mac.h:22: class ScopedBundleSwizzlerMac { On 2015/06/26 23:14:53, erikchen wrote: > ...
5 years, 5 months ago (2015-06-30 22:21:07 UTC) #5
erikchen
rsesek: PTAL https://codereview.chromium.org/1211213003/diff/60001/chrome/test/base/scoped_bundle_swizzler_mac.h File chrome/test/base/scoped_bundle_swizzler_mac.h (right): https://codereview.chromium.org/1211213003/diff/60001/chrome/test/base/scoped_bundle_swizzler_mac.h#newcode22 chrome/test/base/scoped_bundle_swizzler_mac.h:22: class ScopedBundleSwizzlerMac { On 2015/06/30 22:21:07, Robert ...
5 years, 5 months ago (2015-07-06 22:00:06 UTC) #6
Robert Sesek
LGTM https://codereview.chromium.org/1211213003/diff/100001/chrome/test/base/in_process_browser_test.cc File chrome/test/base/in_process_browser_test.cc (right): https://codereview.chromium.org/1211213003/diff/100001/chrome/test/base/in_process_browser_test.cc#newcode382 chrome/test/base/in_process_browser_test.cc:382: nit: remove extra blank line now?
5 years, 5 months ago (2015-07-07 15:45:07 UTC) #7
erikchen
https://codereview.chromium.org/1211213003/diff/100001/chrome/test/base/in_process_browser_test.cc File chrome/test/base/in_process_browser_test.cc (right): https://codereview.chromium.org/1211213003/diff/100001/chrome/test/base/in_process_browser_test.cc#newcode382 chrome/test/base/in_process_browser_test.cc:382: On 2015/07/07 15:45:07, Robert Sesek wrote: > nit: remove ...
5 years, 5 months ago (2015-07-07 18:28:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1211213003/120001
5 years, 5 months ago (2015-07-07 18:29:50 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/76541)
5 years, 5 months ago (2015-07-07 18:38:17 UTC) #13
erikchen
phajdan.jr: Looking for an OWNER review.
5 years, 5 months ago (2015-07-07 19:43:46 UTC) #15
Paweł Hajdan Jr.
Thanks for the patch! https://codereview.chromium.org/1211213003/diff/120001/chrome/test/BUILD.gn File chrome/test/BUILD.gn (right): https://codereview.chromium.org/1211213003/diff/120001/chrome/test/BUILD.gn#newcode168 chrome/test/BUILD.gn:168: # deps += [ '../third_party/ocmock/ocmock.gyp:ocmock' ...
5 years, 5 months ago (2015-07-08 10:01:13 UTC) #16
erikchen
phajdan: PTAL https://codereview.chromium.org/1211213003/diff/120001/chrome/test/BUILD.gn File chrome/test/BUILD.gn (right): https://codereview.chromium.org/1211213003/diff/120001/chrome/test/BUILD.gn#newcode168 chrome/test/BUILD.gn:168: # deps += [ '../third_party/ocmock/ocmock.gyp:ocmock' ] TODO(GYP) ...
5 years, 5 months ago (2015-07-08 17:48:38 UTC) #17
erikchen
On 2015/07/08 17:48:38, erikchen wrote: > phajdan: PTAL > > https://codereview.chromium.org/1211213003/diff/120001/chrome/test/BUILD.gn > File chrome/test/BUILD.gn (right): ...
5 years, 5 months ago (2015-07-08 22:39:26 UTC) #18
Paweł Hajdan Jr.
LGTM
5 years, 5 months ago (2015-07-09 08:33:36 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1211213003/120001
5 years, 5 months ago (2015-07-09 17:55:49 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 5 months ago (2015-07-09 18:58:29 UTC) #22
commit-bot: I haz the power
5 years, 5 months ago (2015-07-09 19:00:08 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/67995392313280c583e6936f267898cb13ab0db2
Cr-Commit-Position: refs/heads/master@{#338105}

Powered by Google App Engine
This is Rietveld 408576698