aboutsummaryrefslogtreecommitdiffstats
path: root/testrunner.cc
diff options
context:
space:
mode:
authorKen Mixter <kmixter@google.com>2011-03-02 11:50:12 -0800
committerKen Mixter <kmixter@google.com>2011-03-02 11:50:12 -0800
commitf7cb327eb8d7dc59d9529f8699b8e528a8903be4 (patch)
tree0dc3e9772b430aba3aa70a3fae41b1120f4cfc09 /testrunner.cc
parentfc02f2344e4431fee095dc3e433a278a90116f95 (diff)
downloadplatform_external_libbrillo-f7cb327eb8d7dc59d9529f8699b8e528a8903be4.tar.gz
platform_external_libbrillo-f7cb327eb8d7dc59d9529f8699b8e528a8903be4.tar.bz2
platform_external_libbrillo-f7cb327eb8d7dc59d9529f8699b8e528a8903be4.zip
libchromeos: add process control library, syslog logging capability, and run unit tests
Change-Id: I9d9a00eeb649666efc1f2fdac1914e4bf6f1149c BUG=n0ne TEST=unit tests Review URL: http://codereview.chromium.org/6509006
Diffstat (limited to 'testrunner.cc')
-rw-r--r--testrunner.cc14
1 files changed, 3 insertions, 11 deletions
diff --git a/testrunner.cc b/testrunner.cc
index a8c4626..e4daaea 100644
--- a/testrunner.cc
+++ b/testrunner.cc
@@ -4,20 +4,12 @@
// based on pam_google_testrunner.cc
+#include <chromeos/test_helpers.h>
#include <gtest/gtest.h>
#include <glib-object.h>
-#include <base/logging.h>
-int main(int argc, char **argv) {
+int main(int argc, char** argv) {
::g_type_init();
-
-#if 0
- // Initializing with a name does not seem to be changing the log file name.
- // And options for logging to stderr are being ignored. If we don't initialize
- // logging goes to stderr by default.
- google::InitGoogleLogging("power_unittest");
-#endif
-
- ::testing::InitGoogleTest(&argc, argv);
+ SetUpTests(&argc, argv, true);
return RUN_ALL_TESTS();
}