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

Unified Diff: testrunner.cc

Issue 6602095: libchromeos: revert add process control library, syslog logging capability, and run unit tests (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/common.git@master
Patch Set: Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/test_helpers.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testrunner.cc
diff --git a/testrunner.cc b/testrunner.cc
index e4daaea40787e12a95de24082d0ff9f459700216..a8c4626372a764e3b54037a0abdd8980b74ae1c4 100644
--- a/testrunner.cc
+++ b/testrunner.cc
@@ -4,12 +4,20 @@
// 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();
- SetUpTests(&argc, argv, true);
+
+#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);
return RUN_ALL_TESTS();
}
« no previous file with comments | « chromeos/test_helpers.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698