1326b6cfba5ab73c9e41a7585d1bc95871631122aPeter Qiu//
2326b6cfba5ab73c9e41a7585d1bc95871631122aPeter Qiu// Copyright (C) 2014 The Android Open Source Project
3326b6cfba5ab73c9e41a7585d1bc95871631122aPeter Qiu//
4326b6cfba5ab73c9e41a7585d1bc95871631122aPeter Qiu// Licensed under the Apache License, Version 2.0 (the "License");
5326b6cfba5ab73c9e41a7585d1bc95871631122aPeter Qiu// you may not use this file except in compliance with the License.
6326b6cfba5ab73c9e41a7585d1bc95871631122aPeter Qiu// You may obtain a copy of the License at
7326b6cfba5ab73c9e41a7585d1bc95871631122aPeter Qiu//
8326b6cfba5ab73c9e41a7585d1bc95871631122aPeter Qiu//      http://www.apache.org/licenses/LICENSE-2.0
9326b6cfba5ab73c9e41a7585d1bc95871631122aPeter Qiu//
10326b6cfba5ab73c9e41a7585d1bc95871631122aPeter Qiu// Unless required by applicable law or agreed to in writing, software
11326b6cfba5ab73c9e41a7585d1bc95871631122aPeter Qiu// distributed under the License is distributed on an "AS IS" BASIS,
12326b6cfba5ab73c9e41a7585d1bc95871631122aPeter Qiu// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13326b6cfba5ab73c9e41a7585d1bc95871631122aPeter Qiu// See the License for the specific language governing permissions and
14326b6cfba5ab73c9e41a7585d1bc95871631122aPeter Qiu// limitations under the License.
15326b6cfba5ab73c9e41a7585d1bc95871631122aPeter Qiu//
165dd242dfe5acf25696f877999320ac4164785a5Peter Qiu
175dd242dfe5acf25696f877999320ac4164785a5Peter Qiu#include <base/at_exit.h>
185dd242dfe5acf25696f877999320ac4164785a5Peter Qiu#include <base/command_line.h>
198d0c31bb481b712a3b2e6612390679e29053c620Alex Vakulenko#include <brillo/syslog_logging.h>
205dd242dfe5acf25696f877999320ac4164785a5Peter Qiu#include <gtest/gtest.h>
215dd242dfe5acf25696f877999320ac4164785a5Peter Qiu
225dd242dfe5acf25696f877999320ac4164785a5Peter Qiuint main(int argc, char** argv) {
235dd242dfe5acf25696f877999320ac4164785a5Peter Qiu  base::AtExitManager exit_manager;
247f267ab51daeda0fb685587953bd494de0226303Alex Vakulenko  base::CommandLine::Init(argc, argv);
258d0c31bb481b712a3b2e6612390679e29053c620Alex Vakulenko  brillo::InitLog(brillo::kLogToStderr);
265dd242dfe5acf25696f877999320ac4164785a5Peter Qiu  ::testing::InitGoogleTest(&argc, argv);
275dd242dfe5acf25696f877999320ac4164785a5Peter Qiu  return RUN_ALL_TESTS();
285dd242dfe5acf25696f877999320ac4164785a5Peter Qiu}
29