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.

Referenced by folly::padded::Adaptor< IntNodeVec >::Adaptor(), intrusive_shared_count< Atom >::add_ref(), wangle::SSLContextManager::addSSLContextConfig(), folly::BasicFixedString< Char, N >::append(), folly::MemoryMapping::asRange(), folly::BasicFixedString< Char, N >::assign(), folly::MemoryMapping::asWritableRange(), folly::detail::avgHelper(), folly::FlatCombining< FcSimpleExample< Mutex, Atom >, Mutex, Atom >::awaitDoneTryLock(), folly::BasicFixedString< Char, N >::BasicFixedString(), folly::basicTest(), BENCHMARK(), folly::Bits< T, Traits >::blockCount(), folly::detail::DigestBuilder< DigestT >::build(), burn(), folly::AsyncSocket::WriteRequest::bytesWritten(), folly::BasicFixedString< Char, N >::cappend(), folly::BasicFixedString< Char, N >::cerase(), folly::BlockingWriteServer::checkBuffer(), folly::IOBuf::cloneOneInto(), folly::FlatCombining< FcSimpleExample< Mutex, Atom >, Mutex, Atom >::combiningPass(), folly::FlatCombining< FcSimpleExample< Mutex, Atom >, Mutex, Atom >::combiningSession(), folly::detail::HistogramBuckets< T, BucketT >::computeTotalCount(), folly::BasicFixedString< Char, N >::copy(), folly::hazptr_obj_linked< Atom >::count_inc_safe(), testing::internal::CountIf(), folly::symbolizer::countLoadedElfFiles(), folly::BucketedTimeSeries< VT, CT >::countRate(), folly::detail::ConcurrentHashMapSegment< KeyType, ValueType, ShardBits, HashFn, KeyEqual, Allocator, Atom, Mutex >::Buckets::create(), AtomicBatchDispatcherTesting::createJobs(), proxygen::StructuredHeaders::decodeBase64(), folly::FlatCombining< FcSimpleExample< Mutex, Atom >, Mutex, Atom >::dedicatedCombining(), folly::BasicDynamicTokenBucket< Clock >::defaultClockNow(), testing::internal::DefaultPrintTo(), testing::internal::ElementsAreMatcherImpl< Container >::DescribeNegationTo(), testing::internal::ElementsAreMatcherImpl< Container >::DescribeTo(), folly::detail::ConcurrentHashMapSegment< KeyType, ValueType, ShardBits, HashFn, KeyEqual, Allocator, Atom, Mutex >::Buckets::destroy(), folly::AsyncIO::doWait(), folly::hazptr_obj_linked< Atom >::downgrade_link(), wangle::ConnectionManager::dropIdleConnections(), duration_to_ts(), fizz::server::TicketCodec< Storage >::encode(), proxygen::HPACKEncodeBuffer::encodeHuffman(), proxygen::HPACKEncodeBuffer::encodeInteger(), proxygen::HPACKEncodeBuffer::encodeLiteral(), folly::BasicFixedString< Char, N >::erase(), estimateQuantile(), folly::f14::expectedProbe(), folly::test::fc_test(), folly::BasicFixedString< Char, N >::find(), folly::detail::fixedstring::find_(), folly::detail::fixedstring::find_at_(), folly::BasicFixedString< Char, N >::find_first_not_of(), folly::detail::fixedstring::find_first_not_of_(), folly::BasicFixedString< Char, N >::find_first_of(), folly::detail::fixedstring::find_first_of_(), folly::BasicFixedString< Char, N >::find_last_not_of(), folly::detail::fixedstring::find_last_not_of_(), folly::BasicFixedString< Char, N >::find_last_of(), folly::detail::fixedstring::find_last_of_(), folly::IPAddressV6::fromInverseArpaName(), folly::test::futexWakeImpl(), folly::Bits< T, Traits >::get(), folly::atomic_shared_ptr< T, Atom, CountedDetail >::get_newptr(), upload.MercurialVCS::GetBaseFile(), testing::internal::TypedExpectation< F >::GetCurrentAction(), fizz::test::ProtocolTest< ClientTypes, Actions >::getNumActions(), proxygen::HTTPHeaders::getNumberOfValues(), getNumThreadPoolExecutors(), folly::IOThreadPoolExecutor::getPendingTaskCountImpl(), fizz::sm::getPskExtension(), folly::symbolizer::getStackTraceSafe(), wangle::SSLUtil::getSubjectAltName(), folly::ssl::OpenSSLCertUtils::getSubjectAltNames(), folly::detail::MemoryIdler::getVariationTimeout(), folly::AsyncSocket::getZeroCopyReenableThreshold(), folly::AsyncSSLSocket::handleInitialReadWrite(), folly::hazptr_array< 3, Atom >::hazptr_array(), folly::hazptr_local< M, Atom >::hazptr_local(), folly::Bits< T, Traits >::innerGet(), intervalTest(), folly::IOBuf::IOBuf(), liveClockWaitUntilTests(), folly::RWSpinLock::lock(), folly::RWSpinLock::lock_shared(), folly::RWSpinLock::lock_upgrade(), main(), testing::internal::ElementsAreMatcherImpl< Container >::MatchAndExplain(), testing::internal::BoundSecondMatcher< Tuple2Matcher, Second >::Impl< T >::MatchAndExplain(), proxygen::HTTPTransaction::maybeDelayForRateLimit(), merge(), mergeDigests(), TryWriteUntilCaller< Q, Clock, Duration >::methodName(), TestAsyncTransport::WriteEvent::newEvent(), NonTrivialStruct::NonTrivialStruct(), folly::Bits< T, Traits >::ones(), VariadicArgumentsSum::operator()(), folly::StringKeyedSetBase< Compare, Alloc >::operator=(), folly::F14VectorSet< Key, Hasher, KeyEqual, Alloc >::operator=(), folly::F14VectorMap< Key, Mapped, Hasher, KeyEqual, Alloc >::operator=(), folly::StringKeyedMap< Value, Compare, Alloc >::operator[](), folly::Codel::overloaded(), folly::f14::p99Probe(), proxygen::PassThroughTransportFilter::PassThroughTransportFilter(), folly::AsyncSSLSocket::performWrite(), folly::AsyncSocket::performWrite(), testing::internal::PrintRawArrayTo(), std::chrono::PrintTo(), testing::internal::FunctionMockerBase< R(A1, A2)>::PrintTriedExpectationsLocked(), producer_consumer_test(), folly::atomic_shared_ptr< T, Atom, CountedDetail >::putOwnedBase(), pwritev(), upload::RealMain(), folly::detail::ConcurrentHashMapSegment< KeyType, ValueType, ShardBits, HashFn, KeyEqual, Allocator, Atom, Mutex >::rehash(), folly::atomic_shared_ptr< T, Atom, CountedDetail >::release_external(), folly::hazptr_obj_linked< Atom >::release_link(), intrusive_shared_count< Atom >::release_ref(), folly::hazptr_obj_linked< Atom >::release_ref(), folly::BasicFixedString< Char, N >::resize(), folly::rcu_domain< Tag >::retire(), folly::BasicFixedString< Char, N >::rfind(), folly::detail::fixedstring::rfind_(), folly::ManualExecutor::run(), folly::TimedDrivableExecutor::run(), run_once(), run_steady_clock_test(), run_system_clock_test(), folly::runBenchmarkGetNSPerIteration(), folly::MemoryIdlerTimeout::runLoopCallback(), folly::Bits< T, Traits >::set(), proxygen::HTTPTransaction::setIdleTimeout(), folly::shutdownNoInt(), folly::hazptr_obj_list< Atom >::splice(), folly::stressTest(), folly::BasicFixedString< Char, N >::substr(), folly::IOBuf::takeOwnershipIov(), TEST(), folly::TEST(), folly::futures::test::TEST(), testing::TEST(), TEST_F(), proxygen::TEST_F(), folly::detail::time_point_conv(), folly::fibers::EventBaseLoopController::timedSchedule(), folly::times(), proxygen::TraceEvent::toString(), folly::hazptr_domain< DeterministicAtomic >::try_timed_cleanup(), folly::detail::ConcurrentHashMapSegment< KeyType, ValueType, ShardBits, HashFn, KeyEqual, Allocator, Atom, Mutex >::Buckets::unlink_and_reclaim_nodes(), folly::hazptr_obj_base_linked< NodeAuto< Atom >, Atom >::unlink_and_reclaim_unchecked(), folly::RWSpinLock::unlock_upgrade_and_lock(), folly::unpackInto(), folly::TLRefCount::LocalRefCount::update(), folly::TLRefCount::useGlobal(), folly::IOBuf::wrapIov(), folly::fileutil_detail::wrapvFull(), TestAsyncTransport::writeChain(), folly::AsyncSocket::writeChain(), folly::detail::ConcurrentHashMapSegment< KeyType, ValueType, ShardBits, HashFn, KeyEqual, Allocator, Atom, Mutex >::~ConcurrentHashMapSegment(), testing::internal::GTestFlagSaver::~GTestFlagSaver(), folly::hazptr_array< 3, Atom >::~hazptr_array(), and NonTrivialStruct::~NonTrivialStruct().

MockFoo* mock_foo

Definition at line 175 of file gmock_stress_test.cc.

int y_
private

Definition at line 82 of file gmock_stress_test.cc.

Referenced by TEST_F().

int z_
private

Definition at line 90 of file gmock_stress_test.cc.

Referenced by foo::UnprintableInFoo::z().