blob: 5d322cbf204f18e96d3dbbaff4facd9fb942e97c [file] [log] [blame]
// Copyright (c) 2013 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.
#include <glib-object.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <base/command_line.h>
#include <base/logging.h>
int main(int argc, char** argv) {
CommandLine::Init(argc, argv);
logging::LoggingSettings logging_settings;
logging_settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG;
logging_settings.lock_log = logging::LOCK_LOG_FILE;
logging_settings.delete_old = logging::APPEND_TO_OLD_LOG_FILE;
LOG(INFO) << "initializing gmock and gtest";
::testing::InitGoogleMock(&argc, argv);
LOG(INFO) << "running unit tests";
int test_result = RUN_ALL_TESTS();
LOG(INFO) << "unittest return value: " << test_result;
return test_result;