#include <stdio.h>
#include <stdlib.h>
#include "gtest/gtest.h"
Go to the source code of this file.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 112 of file sample10_unittest.cc.
References testing::InitGoogleTest(), and RUN_ALL_TESTS().
115 bool check_for_leaks =
false;
116 if (argc > 1 && strcmp(
argv[1],
"--check_for_leaks") == 0 )
117 check_for_leaks =
true;
119 printf(
"%s\n",
"Run this program with --check_for_leaks to enable " 120 "custom leak checking in the tests.");
124 if (check_for_leaks) {
125 TestEventListeners& listeners = UnitTest::GetInstance()->listeners();
141 listeners.Append(
new LeakChecker);
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
GTEST_API_ void InitGoogleTest(int *argc, char **argv)