proxygen
gmock_stress_test.cc File Reference
#include "gmock/gmock.h"
#include "gtest/gtest.h"

Go to the source code of this file.

Namespaces

 testing
 

Functions

int main (int argc, char **argv)
 

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 314 of file gmock_stress_test.cc.

References GTEST_CHECK_, testing::InitGoogleMock(), and RUN_ALL_TESTS().

314  {
316 
317  const int exit_code = RUN_ALL_TESTS(); // Expected to fail.
318  GTEST_CHECK_(exit_code != 0) << "RUN_ALL_TESTS() did not fail as expected";
319 
320  printf("\nPASS\n");
321  return 0;
322 }
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
Definition: gtest.h:2232
GTEST_API_ void InitGoogleMock(int *argc, char **argv)
Definition: gmock.cc:173
char ** argv
#define GTEST_CHECK_(condition)
Definition: gtest-port.h:1295

Variable Documentation

int* count

Definition at line 176 of file gmock_stress_test.cc.

MockFoo* mock_foo

Definition at line 175 of file gmock_stress_test.cc.

int x_
private

Definition at line 74 of file gmock_stress_test.cc.

int y_
private

Definition at line 82 of file gmock_stress_test.cc.

int z_
private

Definition at line 90 of file gmock_stress_test.cc.