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

Side by Side Diff: testrunner.cc

Issue 3608015: AU: Catch terminate signals and block exit if necessary. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: typo Created 10 years, 2 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
« terminator.cc ('K') | « terminator.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) 2009 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium OS 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 // based on pam_google_testrunner.cc 5 // based on pam_google_testrunner.cc
6 6
7 #include <base/at_exit.h>
8 #include <base/command_line.h>
7 #include <dbus/dbus-glib.h> 9 #include <dbus/dbus-glib.h>
8 #include <dbus/dbus-glib-bindings.h> 10 #include <dbus/dbus-glib-bindings.h>
9 #include <dbus/dbus-glib-lowlevel.h> 11 #include <dbus/dbus-glib-lowlevel.h>
10 #include <glib.h> 12 #include <glib.h>
11 #include <glib-object.h> 13 #include <glib-object.h>
12 #include <gtest/gtest.h> 14 #include <gtest/gtest.h>
13 #include "base/at_exit.h" 15
14 #include "base/command_line.h"
15 #include "update_engine/subprocess.h" 16 #include "update_engine/subprocess.h"
17 #include "update_engine/terminator.h"
16 18
17 int main(int argc, char **argv) { 19 int main(int argc, char **argv) {
18 ::g_type_init(); 20 ::g_type_init();
19 g_thread_init(NULL); 21 g_thread_init(NULL);
20 dbus_g_thread_init(); 22 dbus_g_thread_init();
21 base::AtExitManager exit_manager; 23 base::AtExitManager exit_manager;
24 chromeos_update_engine::Terminator::Init();
22 chromeos_update_engine::Subprocess::Init(); 25 chromeos_update_engine::Subprocess::Init();
23 CommandLine::Init(argc, argv); 26 CommandLine::Init(argc, argv);
24 ::testing::InitGoogleTest(&argc, argv); 27 ::testing::InitGoogleTest(&argc, argv);
25 return RUN_ALL_TESTS(); 28 return RUN_ALL_TESTS();
26 } 29 }
OLDNEW
« terminator.cc ('K') | « terminator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698