tesseract v5.3.3.20231005
gmock_stress_test.cc File Reference
#include "gmock/gmock.h"
#include "gtest/gtest.h"

Go to the source code of this file.

Namespaces

namespace  testing
 

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 232 of file gmock_stress_test.cc.

232 {
233 testing::InitGoogleMock(&argc, argv);
234
235 const int exit_code = RUN_ALL_TESTS(); // Expected to fail.
236 GTEST_CHECK_(exit_code != 0) << "RUN_ALL_TESTS() did not fail as expected";
237
238 printf("\nPASS\n");
239 return 0;
240}
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
Definition: gtest.h:2489
#define GTEST_CHECK_(condition)
Definition: gtest-port.h:1008
GTEST_API_ void InitGoogleMock(int *argc, char **argv)
Definition: gmock.cc:191

Variable Documentation

◆ count

int* count

Definition at line 96 of file gmock_stress_test.cc.

◆ mock_foo

MockFoo* mock_foo

Definition at line 95 of file gmock_stress_test.cc.