proxygen
TestMain.cpp File Reference

Go to the source code of this file.

Functions

FOLLY_ATTR_WEAK int main (int argc, char **argv)
 

Function Documentation

FOLLY_ATTR_WEAK int main ( int  argc,
char **  argv 
)

Definition at line 30 of file TestMain.cpp.

References bm::init(), testing::InitGoogleTest(), and RUN_ALL_TESTS().

30  {
31 #if FOLLY_HAVE_LIBGFLAGS
32  // Enable glog logging to stderr by default.
33  gflags::SetCommandLineOptionWithMode(
34  "logtostderr", "1", gflags::SET_FLAGS_DEFAULT);
35 #endif
36 
38  folly::Init init(&argc, &argv);
39 
40  return RUN_ALL_TESTS();
41 }
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
Definition: gtest.h:2232
void init()
char ** argv
GTEST_API_ void InitGoogleTest(int *argc, char **argv)
Definition: gtest.cc:5370