OLD | NEW |
(Empty) | |
| 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 // Some portions Copyright (c) 2009 The Chromium Authors. |
| 5 |
| 6 #include "microbenchmark/microbenchmark.h" |
| 7 |
| 8 #include <stdlib.h> |
| 9 |
| 10 int main(int argc, char **argv) { |
| 11 CommandLine::Init(argc, argv); |
| 12 logging::InitLogging(NULL, |
| 13 logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, |
| 14 logging::DONT_LOCK_LOG_FILE, |
| 15 logging::APPEND_TO_OLD_LOG_FILE); |
| 16 ::testing::InitGoogleTest(&argc, argv); |
| 17 CommandLine *cl = CommandLine::ForCurrentProcess(); |
| 18 if (cl->GetSwitchValueASCII(chromeos::Microbenchmark::kRunsSwitch).empty()) { |
| 19 LOG(INFO) << "Defaulting to the number of runs specified per test"; |
| 20 LOG(INFO) << "To override, use --" |
| 21 << chromeos::Microbenchmark::kRunsSwitch |
| 22 << "=NUM"; |
| 23 } |
| 24 return RUN_ALL_TESTS(); |
| 25 } |
OLD | NEW |