| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/public/test/test_launcher.h" | 5 #include "content/public/test/test_launcher.h" |
| 6 | 6 |
| 7 #include <stack> | 7 #include <stack> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/linked_ptr.h" | 11 #include "base/memory/linked_ptr.h" |
| 12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "base/test/test_file_util.h" | 14 #include "base/test/test_file_util.h" |
| 15 #include "chrome/app/chrome_main_delegate.h" | 15 #include "chrome/app/chrome_main_delegate.h" |
| 16 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" | |
| 17 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
| 18 #include "chrome/common/chrome_constants.h" | 17 #include "chrome/common/chrome_constants.h" |
| 19 #include "chrome/test/base/chrome_test_suite.h" | 18 #include "chrome/test/base/chrome_test_suite.h" |
| 20 #include "content/public/app/content_main.h" | 19 #include "content/public/app/content_main.h" |
| 21 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
| 22 | 21 |
| 23 #if defined(OS_MACOSX) | 22 #if defined(OS_MACOSX) |
| 24 #include "chrome/browser/chrome_browser_application_mac.h" | 23 #include "chrome/browser/chrome_browser_application_mac.h" |
| 25 #endif // defined(OS_MACOSX) | 24 #endif // defined(OS_MACOSX) |
| 26 | 25 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 130 |
| 132 #if defined(OS_CHROMEOS) | 131 #if defined(OS_CHROMEOS) |
| 133 ui_controls::InstallUIControlsAura(ui_controls::CreateAshUIControls()); | 132 ui_controls::InstallUIControlsAura(ui_controls::CreateAshUIControls()); |
| 134 #elif defined(USE_AURA) | 133 #elif defined(USE_AURA) |
| 135 // TODO(win_ash): when running interactive_ui_tests for Win Ash, use above. | 134 // TODO(win_ash): when running interactive_ui_tests for Win Ash, use above. |
| 136 ui_controls::InstallUIControlsAura(ui_controls::CreateUIControlsAura(NULL)); | 135 ui_controls::InstallUIControlsAura(ui_controls::CreateUIControlsAura(NULL)); |
| 137 #endif | 136 #endif |
| 138 | 137 |
| 139 #endif | 138 #endif |
| 140 | 139 |
| 141 ChromeWebUIControllerFactory::UseTestFactoryForTesting(); | |
| 142 | |
| 143 ChromeTestLauncherDelegate launcher_delegate; | 140 ChromeTestLauncherDelegate launcher_delegate; |
| 144 return content::LaunchTests(&launcher_delegate, argc, argv); | 141 return content::LaunchTests(&launcher_delegate, argc, argv); |
| 145 } | 142 } |
| OLD | NEW |