summaryrefslogtreecommitdiffstats
path: root/staging_vespalib/src/vespa/vespalib/gtest/gtest.h
blob: 67d3d438a527bfbee91427b66a4f8645948a230b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include <gtest/gtest.h>

/**
 * Macro for creating a main function that runs all gtests.
 */
#define GTEST_MAIN_RUN_ALL_TESTS()          \
int                                         \
main(int argc, char* argv[])                \
{                                           \
    ::testing::InitGoogleTest(&argc, argv); \
    return RUN_ALL_TESTS();                 \
}