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

Issue 11418005: Get a minimal unit_tests target building and running for iOS (Closed)

Created:
8 years, 1 month ago by stuartmorgan
Modified:
8 years, 1 month ago
Reviewers:
Nico
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@chrome-gyp-ios-support
Visibility:
Public.

Description

Get a minimal unit_tests target building and running for iOS This turns on building chrome.gyp for iOS, which includes unit_tests and all the supporting targets. unit_tests for now only includes an extremely limited set of tests on iOS; more will be added to the target as the necessary changes to build them are landed. To get unit_tests building this CL: - Adds at least one file to every library target on iOS (profile_error_dialog, browser_process, etc.), since a static library with no source files will fail to build. - Temporarily cuts ChromeContentBrowserClient out of chrome_test_suite for iOS; that client is very complex and depends on a lot of high-level classes, which makes it very difficult to bring up at this point. - Brings up TestingBrowserProcess, since it's needed by chrome_test_suite. All the specific high-level classes are trimmed out for iOS; pieces will be brought back as they work and are needed, but some of the classes there will never be built on iOS. - Adds an iOS implementation of ChromeContentClient (with a TODO to consider merging it with the existing implementation; there's so little shared code, and so much plugin code in the existing file, that it's not clear if it's worthwhile) since it's needed by chrome_test_suite. - Gets chrome_paths and chrome_version_info working on iOS, since several classes need them and they are trivial to fix. BUG=156699 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168188

Patch Set 1 #

Total comments: 10

Patch Set 2 : Better ifdefing in chrome_paths #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -30 lines) Patch
M build/all.gyp View 4 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/profile_error_dialog.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 3 chunks +2 lines, -1 line 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 3 chunks +7 lines, -1 line 0 comments Download
M chrome/chrome_tests_unit.gypi View 5 chunks +6 lines, -2 lines 0 comments Download
A chrome/common/chrome_content_client_ios.mm View 1 chunk +82 lines, -0 lines 0 comments Download
M chrome/common/chrome_paths.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/chrome_paths.cc View 1 6 chunks +6 lines, -6 lines 0 comments Download
M chrome/common/chrome_paths_internal.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/chrome_paths_mac.mm View 7 chunks +18 lines, -6 lines 0 comments Download
M chrome/common/chrome_version_info_mac.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common_constants.gyp View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/test/base/chrome_test_suite.cc View 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/test/base/testing_browser_process.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/test/base/testing_browser_process.cc View 10 chunks +50 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
stuartmorgan
This ended up being bigger than I would have liked due to the tendrils out ...
8 years, 1 month ago (2012-11-15 12:46:46 UTC) #1
Nico
This looks mostly fine. The chrome_paths file could maybe use a look from someone familiar ...
8 years, 1 month ago (2012-11-15 18:01:33 UTC) #2
stuartmorgan
https://codereview.chromium.org/11418005/diff/1/chrome/common/chrome_paths.cc File chrome/common/chrome_paths.cc (right): https://codereview.chromium.org/11418005/diff/1/chrome/common/chrome_paths.cc#newcode163 chrome/common/chrome_paths.cc:163: switch (key) { On 2012/11/15 18:01:33, Nico wrote: > ...
8 years, 1 month ago (2012-11-15 18:23:11 UTC) #3
Nico
https://codereview.chromium.org/11418005/diff/1/chrome/common_constants.gyp File chrome/common_constants.gyp (right): https://codereview.chromium.org/11418005/diff/1/chrome/common_constants.gyp#newcode71 chrome/common_constants.gyp:71: # re-add it in target_conditionals so it's after that ...
8 years, 1 month ago (2012-11-15 18:27:22 UTC) #4
Nico
ok, lgtm https://codereview.chromium.org/11418005/diff/1/chrome/test/base/testing_browser_process.cc File chrome/test/base/testing_browser_process.cc (right): https://codereview.chromium.org/11418005/diff/1/chrome/test/base/testing_browser_process.cc#newcode71 chrome/test/base/testing_browser_process.cc:71: #if defined(OS_IOS) On 2012/11/15 18:23:11, stuartmorgan wrote: ...
8 years, 1 month ago (2012-11-15 18:30:13 UTC) #5
stuartmorgan
Fixed up the ifdefs to be consistent between the .cc and .h in the paths ...
8 years, 1 month ago (2012-11-16 08:33:44 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stuartmorgan@chromium.org/11418005/1016
8 years, 1 month ago (2012-11-16 09:19:12 UTC) #7
commit-bot: I haz the power
8 years, 1 month ago (2012-11-16 11:22:04 UTC) #8
Change committed as 168188

Powered by Google App Engine
This is Rietveld 408576698