[Upstream] Force instantiation of BSKSF during unit tests
commitb28a28e9dab905b80853424ec344aa1667b06285
authorsdefresne <sdefresne@chromium.org>
Wed, 29 Apr 2015 09:55:06 +0000 (29 02:55 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 29 Apr 2015 09:55:42 +0000 (29 09:55 +0000)
tree80a2ff8b426ec6d246c42fa1d317b669f9d7f413
parentd4ae6e6bf64e5ef52dad2b897267b92e92d71ec8
[Upstream] Force instantiation of BSKSF during unit tests

Call EnsureBrowserStateKeyedServiceFactoriesBuilt() during initialisation of
"chrome_ios_unittests" to ensure the BSKSF are correctly registered against
the DependencyManager before launching the tests.

Call ios::RegisterPathProvider() before running the tests so that they can
use the iOS specific paths by name.

BUG=468694
R=droger@chromium.org

Review URL: https://codereview.chromium.org/1111193002

Cr-Commit-Position: refs/heads/master@{#327461}
ios/chrome/browser/browser_state/browser_state_keyed_service_factories.h [new file with mode: 0644]
ios/chrome/browser/browser_state/browser_state_keyed_service_factories.mm [new file with mode: 0644]
ios/chrome/ios_chrome.gyp
ios/chrome/test/ios_chrome_unit_test_suite.cc