From: Aleksander Zdyb Date: Mon, 15 Jun 2015 08:57:36 +0000 (+0200) Subject: Initialize tests X-Git-Tag: accepted/tizen/3.0/common/20161114.110018~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=efc8b4a4a4ad44807e1f179deda41427ff44ad93;p=platform%2Fcore%2Fsecurity%2Fnice-lad.git Initialize tests Change-Id: If526ef37babdc4466b7602f13e0615f7b370c25d --- diff --git a/tests/main.cpp b/tests/main.cpp new file mode 100644 index 0000000..80227a8 --- /dev/null +++ b/tests/main.cpp @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file tests/main.cpp + * @author Aleksander Zdyb + * @version 1.0 + * @brief Unit-tests setup + */ + +#include +#include + +int main(int argc, char** argv) { + // Disables elapsed time by default. + ::testing::GTEST_FLAG(print_time) = false; + + // This allows the user to override the flag on the command line. + ::testing::InitGoogleTest(&argc, argv); + + return RUN_ALL_TESTS(); +}