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

Side by Side Diff: content/public/test/test_launcher.cc

Issue 23484026: GTTF: kill spawned test processes when the launcher is killed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: LAZY_INSTANCE_INITIALIZER Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/test/unit_test_launcher.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « base/test/unit_test_launcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698