proxygen
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
CMakeTestMain.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018-present, Facebook, Inc.
3
* All rights reserved.
4
*
5
* This source code is licensed under the BSD-style license found in the
6
* LICENSE file in the root directory of this source tree.
7
*/
8
9
#include <
folly/init/Init.h
>
10
#include <
folly/portability/GTest.h
>
11
12
/*
13
* This is the recommended main function for all tests.
14
* The Makefile links it into all of the test programs so that tests do not need
15
* to - and indeed should typically not - define their own main() functions
16
*/
17
#ifndef _MSC_VER
18
int
main
(
int
argc,
char
**
argv
)
__attribute__
((__weak__));
19
#endif
20
21
int
main
(
int
argc,
char
**
argv
) {
22
::testing::InitGoogleTest
(&argc, argv);
23
folly::init
(&argc, &argv);
24
return
RUN_ALL_TESTS
();
25
}
main
int main(int argc, char **argv) __attribute__((__weak__))
Definition:
CMakeTestMain.cpp:21
RUN_ALL_TESTS
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
Definition:
gtest.h:2232
GTest.h
folly::init
void init(int *argc, char ***argv, bool removeFlags)
Definition:
Init.cpp:34
argv
char ** argv
Definition:
SmallLocksBenchmark.cpp:430
__attribute__
__attribute__((noinline, noclone)) VirtualBase *makeVirtual()
Definition:
SmallLocksBenchmark.cpp:319
testing::InitGoogleTest
GTEST_API_ void InitGoogleTest(int *argc, char **argv)
Definition:
gtest.cc:5370
Init.h
proxygen
fizz
fizz
test
CMakeTestMain.cpp
Generated by
1.8.11