testrunner.cc revision 5c0a8afa879886800d82b195e3164e5a580a2cc7
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 3// found in the LICENSE file. 4 5// based on pam_google_testrunner.cc 6 7#include <dbus/dbus-glib.h> 8#include <dbus/dbus-glib-bindings.h> 9#include <dbus/dbus-glib-lowlevel.h> 10#include <glib.h> 11#include <glib-object.h> 12#include <gtest/gtest.h> 13#include "base/at_exit.h" 14#include "base/command_line.h" 15#include "update_engine/subprocess.h" 16 17int main(int argc, char **argv) { 18 ::g_type_init(); 19 g_thread_init(NULL); 20 dbus_g_thread_init(); 21 base::AtExitManager exit_manager; 22 chromeos_update_engine::Subprocess::Init(); 23 CommandLine::Init(argc, argv); 24 ::testing::InitGoogleTest(&argc, argv); 25 return RUN_ALL_TESTS(); 26} 27