diff options
author | Josh Haberman <haberman@google.com> | 2013-02-15 16:27:18 -0800 |
---|---|---|
committer | Josh Haberman <haberman@google.com> | 2013-02-15 16:27:18 -0800 |
commit | 7d3e2bd2c4cfd1296d1d6f996d7548de26540d41 (patch) | |
tree | b4b35967b3322c65cfb1a32220e8718de09d85fc /tests/testmain.cc | |
parent | ea198bdcf947ba4bd51474bdd4f7b82b5e4cf41d (diff) |
Sync with 8 months of Google-internal development.
Many things have changed and been simplified.
The memory-management story for upb_def and upb_handlers
is much more robust; upb_def and upb_handlers should be
fairly stable interfaces now. There is still much work
to do for the runtime component (upb_sink).
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); +} |