gtest_main.cpp revision 66dd09e8e2407082ce93bf0784de641298131912
1323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui/* 2323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui * Copyright (C) 2015 The Android Open Source Project 3323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui * 4323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui * Licensed under the Apache License, Version 2.0 (the "License"); 5323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui * you may not use this file except in compliance with the License. 6323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui * You may obtain a copy of the License at 7323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui * 8323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui * http://www.apache.org/licenses/LICENSE-2.0 9323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui * 10323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui * Unless required by applicable law or agreed to in writing, software 11323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui * distributed under the License is distributed on an "AS IS" BASIS, 12323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui * See the License for the specific language governing permissions and 14323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui * limitations under the License. 15323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui */ 16323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui 17323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui#include <gtest/gtest.h> 18323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui 1966dd09e8e2407082ce93bf0784de641298131912Elliott Hughes#include <android-base/logging.h> 20323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui 21323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cuiint main(int argc, char** argv) { 22323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui InitLogging(argv, android::base::StderrLogger); 23323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui testing::InitGoogleTest(&argc, argv); 24323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui return RUN_ALL_TESTS(); 25323e945313b190373b3fcfe578e25ee8390a76d3Yabin Cui} 26