diff options
Diffstat (limited to 'tests/testmain.cc')
-rw-r--r-- | tests/testmain.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/testmain.cc b/tests/testmain.cc new file mode 100644 index 0000000..ac0b313 --- /dev/null +++ b/tests/testmain.cc @@ -0,0 +1,18 @@ +// Copyright 2012 Google Inc. All Rights Reserved. +// Author: haberman@google.com (Josh Haberman) + +#include <stdlib.h> +#ifdef USE_GOOGLE +#include "base/init_google.h" +#endif + +extern "C" { +int run_tests(int argc, char *argv[]); +} + +int main(int argc, char *argv[]) { +#ifdef USE_GOOGLE + InitGoogle(NULL, &argc, &argv, true); +#endif + run_tests(argc, argv); +} |