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 <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 "For debugging a test inside a debugger, use the\n" | 352 "For debugging a test inside a debugger, use the\n" |
353 "--gtest_filter=<your_test_name> flag along with either\n" | 353 "--gtest_filter=<your_test_name> flag along with either\n" |
354 "--single_process (to run the test in one launcher/browser process) or\n" | 354 "--single_process (to run the test in one launcher/browser process) or\n" |
355 "--single-process (to do the above, and also run Chrome in single-" | 355 "--single-process (to do the above, and also run Chrome in single-" |
356 "process mode).\n"); | 356 "process mode).\n"); |
357 | 357 |
358 base::AtExitManager at_exit; | 358 base::AtExitManager at_exit; |
359 testing::InitGoogleTest(&argc, argv); | 359 testing::InitGoogleTest(&argc, argv); |
360 TestTimeouts::Initialize(); | 360 TestTimeouts::Initialize(); |
361 | 361 |
362 base::MessageLoop message_loop; | 362 base::MessageLoopForIO message_loop; |
363 | 363 |
364 WrapperTestLauncherDelegate delegate(launcher_delegate); | 364 WrapperTestLauncherDelegate delegate(launcher_delegate); |
365 return base::LaunchTests(&delegate, argc, argv); | 365 return base::LaunchTests(&delegate, argc, argv); |
366 } | 366 } |
367 | 367 |
368 TestLauncherDelegate* GetCurrentTestLauncherDelegate() { | 368 TestLauncherDelegate* GetCurrentTestLauncherDelegate() { |
369 return g_launcher_delegate; | 369 return g_launcher_delegate; |
370 } | 370 } |
371 | 371 |
372 } // namespace content | 372 } // namespace content |
OLD | NEW |