| // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // based on pam_google_testrunner.cc |
| |
| #include <dbus/dbus-glib.h> |
| #include <dbus/dbus-glib-bindings.h> |
| #include <dbus/dbus-glib-lowlevel.h> |
| #include <glib.h> |
| #include <glib-object.h> |
| #include <gtest/gtest.h> |
| #include "base/command_line.h" |
| #include "update_engine/subprocess.h" |
| |
| int main(int argc, char **argv) { |
| ::g_type_init(); |
| g_thread_init(NULL); |
| dbus_g_thread_init(); |
| chromeos_update_engine::Subprocess::Init(); |
| CommandLine::Init(argc, argv); |
| ::testing::InitGoogleTest(&argc, argv); |
| return RUN_ALL_TESTS(); |
| } |