| OLD | NEW |
| 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 <chromeos/test_helpers.h> | |
| 8 #include <gtest/gtest.h> | 7 #include <gtest/gtest.h> |
| 9 #include <glib-object.h> | 8 #include <glib-object.h> |
| 9 #include <base/logging.h> |
| 10 | 10 |
| 11 int main(int argc, char** argv) { | 11 int main(int argc, char **argv) { |
| 12 ::g_type_init(); | 12 ::g_type_init(); |
| 13 SetUpTests(&argc, argv, true); | 13 |
| 14 #if 0 |
| 15 // Initializing with a name does not seem to be changing the log file name. |
| 16 // And options for logging to stderr are being ignored. If we don't initialize |
| 17 // logging goes to stderr by default. |
| 18 google::InitGoogleLogging("power_unittest"); |
| 19 #endif |
| 20 |
| 21 ::testing::InitGoogleTest(&argc, argv); |
| 14 return RUN_ALL_TESTS(); | 22 return RUN_ALL_TESTS(); |
| 15 } | 23 } |
| OLD | NEW |