| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ios/chrome/test/ios_chrome_unit_test_suite.h" | 5 #include "ios/chrome/test/ios_chrome_unit_test_suite.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "ios/chrome/browser/browser_state/browser_state_keyed_service_factories
.h" | 8 #include "ios/chrome/browser/browser_state/browser_state_keyed_service_factories
.h" |
| 9 #include "ios/chrome/browser/chrome_paths.h" | 9 #include "ios/chrome/browser/chrome_paths.h" |
| 10 #include "ios/chrome/browser/chrome_url_constants.h" | 10 #include "ios/chrome/browser/chrome_url_constants.h" |
| 11 #include "ios/chrome/test/testing_application_context.h" | 11 #include "ios/chrome/test/testing_application_context.h" |
| 12 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" | 12 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" |
| 13 #include "ios/public/test/test_chrome_provider_initializer.h" | 13 #include "ios/public/provider/chrome/browser/test_chrome_provider_initializer.h" |
| 14 #include "ios/web/public/web_client.h" | 14 #include "ios/web/public/web_client.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "ui/base/resource/resource_bundle.h" | 16 #include "ui/base/resource/resource_bundle.h" |
| 17 #include "ui/base/ui_base_paths.h" | 17 #include "ui/base/ui_base_paths.h" |
| 18 #include "url/url_util.h" | 18 #include "url/url_util.h" |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 class IOSChromeUnitTestSuiteInitializer | 22 class IOSChromeUnitTestSuiteInitializer |
| 23 : public testing::EmptyTestEventListener { | 23 : public testing::EmptyTestEventListener { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // test is run so that the dependencies are correctly resolved. | 82 // test is run so that the dependencies are correctly resolved. |
| 83 EnsureBrowserStateKeyedServiceFactoriesBuilt(); | 83 EnsureBrowserStateKeyedServiceFactoriesBuilt(); |
| 84 | 84 |
| 85 ios::RegisterPathProvider(); | 85 ios::RegisterPathProvider(); |
| 86 ui::RegisterPathProvider(); | 86 ui::RegisterPathProvider(); |
| 87 | 87 |
| 88 url::AddStandardScheme(kChromeUIScheme, url::SCHEME_WITHOUT_PORT); | 88 url::AddStandardScheme(kChromeUIScheme, url::SCHEME_WITHOUT_PORT); |
| 89 | 89 |
| 90 base::TestSuite::Initialize(); | 90 base::TestSuite::Initialize(); |
| 91 } | 91 } |
| OLD | NEW |