proxygen
gmock-spec-builders.h File Reference
#include <map>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include "gmock/gmock-actions.h"
#include "gmock/gmock-cardinalities.h"
#include "gmock/gmock-matchers.h"
#include "gmock/internal/gmock-internal-utils.h"
#include "gmock/internal/gmock-port.h"
#include "gtest/gtest.h"

Go to the source code of this file.

Classes

class  testing::internal::FunctionMocker< F >
 
class  testing::internal::TypedExpectation< F >
 
class  testing::internal::FunctionMockerBase< F >
 
class  testing::internal::UntypedFunctionMockerBase
 
class  testing::internal::UntypedOnCallSpecBase
 
class  testing::internal::OnCallSpec< F >
 
class  testing::Mock
 
class  testing::Expectation
 
class  testing::Expectation::Less
 
class  testing::ExpectationSet
 
class  testing::Sequence
 
class  testing::InSequence
 
class  testing::internal::ExpectationBase
 
class  testing::internal::TypedExpectation< F >
 
class  testing::internal::MockSpec< F >
 
class  testing::internal::ReferenceOrValueWrapper< T >
 
class  testing::internal::ReferenceOrValueWrapper< T & >
 
class  testing::internal::UntypedActionResultHolderBase
 
class  testing::internal::ActionResultHolder< T >
 
class  testing::internal::ActionResultHolder< void >
 
class  testing::internal::FunctionMockerBase< F >
 

Namespaces

 testing
 
 testing::internal
 

Macros

#define GMOCK_ON_CALL_IMPL_(obj, call)
 
#define ON_CALL(obj, call)   GMOCK_ON_CALL_IMPL_(obj, call)
 
#define GMOCK_EXPECT_CALL_IMPL_(obj, call)   ((obj).gmock_##call).InternalExpectedAt(__FILE__, __LINE__, #obj, #call)
 
#define EXPECT_CALL(obj, call)   GMOCK_EXPECT_CALL_IMPL_(obj, call)
 

Enumerations

enum  testing::internal::CallReaction {
  testing::internal::kAllow, testing::internal::kWarn, testing::internal::kFail, testing::internal::kDefault = kWarn,
  testing::internal::kAllow, testing::internal::kWarn, testing::internal::kFail, testing::internal::kDefault = kWarn,
  testing::internal::kAllow, testing::internal::kWarn, testing::internal::kFail, testing::internal::kDefault = kWarn
}
 

Functions

GTEST_API_ testing::internal::GTEST_DECLARE_STATIC_MUTEX_ (g_gmock_mutex)
 
GTEST_API_ void testing::internal::LogWithLocation (testing::internal::LogSeverity severity, const char *file, int line, const string &message)
 
void testing::internal::ReportUninterestingCall (CallReaction reaction, const string &msg)
 
template<typename T >
const Ttesting::Const (const T &x)
 

Variables

class GTEST_API_ testing::InSequence testing::GTEST_ATTRIBUTE_UNUSED_
 
GTEST_API_ ThreadLocal< Sequence * > testing::internal::g_gmock_implicit_sequence
 

Macro Definition Documentation

#define EXPECT_CALL (   obj,
  call 
)    GMOCK_EXPECT_CALL_IMPL_(obj, call)

Definition at line 1845 of file gmock-spec-builders.h.

Referenced by fizz::server::test::FizzServerTest::accept(), fizz::server::test::AsyncFizzServerTest::accept(), HTTPDownstreamTest< SPDY3_1CodecPair >::addSimpleNiceHandler(), HTTPDownstreamTest< SPDY3_1CodecPair >::addSimpleStrictHandler(), testing::gmock_matchers_test::AllArgsHelper::AllArgsHelper(), GenericFilterTest< Owned >::basicTest(), HTTPDownstreamTest< SPDY3_1CodecPair >::cleanup(), HTTPUpstreamTest< SPDY3CodecPair >::commonSetUp(), HTTP2UpstreamSessionWithVirtualNodesTest::commonSetUp(), fizz::client::test::AsyncFizzClientTest::completeEarlyHandshake(), fizz::server::test::AsyncFizzServerTest::completeHandshake(), fizz::client::test::AsyncFizzClientTest::completeHandshake(), fizz::client::test::AsyncFizzClientTest::connect(), proxygen::DanglingQueueTestBase::DanglingQueueTestBase(), TestAbortPost< stage >::doAbortTest(), fizz::client::test::ClientProtocolTest::doFinishedFlow(), proxygen::MockHTTPTransaction::enablePush(), ZlibServerFilterTest::exercise_compression(), HTTPDownstreamTest< SPDY3_1CodecPair >::expect101(), fizz::test::ProtocolTest< ClientTypes, Actions >::expectAeadCreation(), fizz::server::test::AsyncFizzServerTest::expectAppClose(), fizz::client::test::AsyncFizzClientTest::expectAppClose(), proxygen::MockHTTPHandler::expectBody(), proxygen::MockHTTPHandler::expectChunkComplete(), proxygen::MockHTTPHandler::expectChunkHeader(), fizz::test::HandshakeTest::expectClientRead(), fizz::test::HandshakeTest::expectClientSuccess(), fizz::server::test::ServerProtocolTest::expectCookie(), fizz::server::test::AeadTicketCipherTest::expectDecode(), HTTPDownstreamTest< SPDY3_1CodecPair >::expectDetachSession(), proxygen::MockHTTPHandler::expectDetachTransaction(), fizz::test::HandshakeTest::expectEarlyDataRejectError(), proxygen::MockHTTPHandler::expectEgressPaused(), proxygen::MockHTTPHandler::expectEgressResumed(), fizz::test::ProtocolTest< ClientTypes, Actions >::expectEncryptedReadRecordLayerCreation(), fizz::test::ProtocolTest< ClientTypes, Actions >::expectEncryptedWriteRecordLayerCreation(), proxygen::MockHTTPHandler::expectEOM(), fizz::test::HandshakeTest::expectError(), proxygen::MockHTTPHandler::expectError(), proxygen::MockHTTPHandler::expectGoaway(), proxygen::MockHTTPHandler::expectHeaders(), fizz::test::AsyncFizzBaseTest::expectReadBufRequest(), fizz::test::AsyncFizzBaseTest::expectReadData(), fizz::test::HandshakeTest::expectReplaySafety(), HTTPDownstreamTest< SPDY3_1CodecPair >::expectResponses(), fizz::test::HandshakeTest::expectServerError(), fizz::test::HandshakeTest::expectServerRead(), fizz::test::HandshakeTest::expectServerSuccess(), proxygen::MockHTTPHandler::expectTrailers(), proxygen::MockHTTPHandler::expectTransaction(), fizz::server::test::AsyncFizzServerTest::expectTransportReadCallback(), fizz::client::test::AsyncFizzClientTest::expectTransportReadCallback(), fizz::test::AsyncFizzBaseTest::expectTransportReadCallback(), proxygen::fakeMockCodec(), FilterTest::FilterTest(), fizz::server::test::AsyncFizzServerTest::fullHandshakeSuccess(), fizz::client::test::AsyncFizzClientTest::fullHandshakeSuccess(), testing::gmock_generated_function_mockers_test::FunctionMockerTest::FunctionMockerTest(), HTTPDownstreamTest< SPDY3_1CodecPair >::HTTPDownstreamTest(), fizz::test::CertDecompressionManagerTest::makeMockDecompressor(), proxygen::makeMockParallelCodec(), MockCodecDownstreamTest::MockCodecDownstreamTest(), proxygen::MockHTTPTransaction::MockHTTPTransaction(), proxygen::MockHTTPTransactionTransport::MockHTTPTransactionTransport(), testing::gmock_generated_function_mockers_test::MockOverloadedOnArgNumber::MockOverloadedOnArgNumber(), testing::gmock_generated_function_mockers_test::MockOverloadedOnConstness::MockOverloadedOnConstness(), testing::gmock_generated_function_mockers_test::MockStack< T >::MockStack(), HTTPSessionAcceptorTestBase::newAcceptor(), proxygen::newMockTransport(), MockCodecDownstreamTest::onIngressImpl(), fizz::test::HandshakeTest::resetTransportsAndStartCookieHandshake(), testing::internal::ExpectationTester::SetCallCount(), TimeoutTest::setClock(), HTTPUpstreamTest< SPDY3CodecPair >::setMockByteEventTracker(), HTTPDownstreamTest< SPDY3_1CodecPair >::setMockByteEventTracker(), DownstreamTransactionTest::SetUp(), BroadcastHandlerTest::SetUp(), FlowControlFilterTest< initSize >::SetUp(), TimeoutTest::SetUp(), HTTP2UpstreamSessionWithVirtualNodesTest::SetUp(), MockHTTPUpstreamTest::SetUp(), DownstreamTransactionTest::setupRequestResponseFlow(), testing::gmock_nice_strict_test::MockBar::str(), fizz::test::AsyncFizzBaseTest::TearDown(), fizz::server::test::TEST(), folly::test::TEST(), testing::gmock_nice_strict_test::TEST(), TEST(), testing::gmock_generated_function_mockers_test::TEST(), folly::TEST(), testing::gmock_matchers_test::TEST(), TEST_F(), fizz::test::TEST_F(), folly::TEST_F(), fizz::server::test::TEST_F(), fizz::client::test::TEST_F(), testing::gmock_generated_function_mockers_test::TEST_F(), HTTPUpstreamTest< C >::testBasicRequestHttp10(), TestCatchesLeakedMocksInAdHocTests(), HTTPDownstreamTest< C >::testChunks(), MockCodecDownstreamTest::testConnFlowControlBlocked(), testExpectHandling(), GenericFilterTest< Owned >::testFilters(), MockCodecDownstreamTest::testGoaway(), HTTPDownstreamTest< C >::testPriorities(), proxygen::RFC1867Base::testSimple(), HTTPDownstreamTest< C >::testSimpleUpgrade(), HTTPUpstreamTest< C >::testSimpleUpgrade(), testTraits(), TYPED_TEST(), and TYPED_TEST_P().

#define GMOCK_EXPECT_CALL_IMPL_ (   obj,
  call 
)    ((obj).gmock_##call).InternalExpectedAt(__FILE__, __LINE__, #obj, #call)

Definition at line 1843 of file gmock-spec-builders.h.

#define GMOCK_ON_CALL_IMPL_ (   obj,
  call 
)
Value:
((obj).gmock_##call).InternalDefaultActionSetAt(__FILE__, __LINE__, \
#obj, #call)
Future< bool > call(int depth, Executor *executor)

Definition at line 1838 of file gmock-spec-builders.h.

#define ON_CALL (   obj,
  call 
)    GMOCK_ON_CALL_IMPL_(obj, call)

Definition at line 1841 of file gmock-spec-builders.h.

Referenced by fizz::server::test::ServerProtocolTest::acceptEarlyData(), testing::gmock_matchers_test::AllArgsHelper::AllArgsHelper(), fizz::test::AsyncFizzBaseTest::AsyncFizzBaseTest(), fizz::test::HandshakeTest::expectClientSuccess(), fizz::test::HandshakeTest::expectServerSuccess(), fizz::server::test::CertManagerTest::getCert(), proxygen::MockHTTPTransaction::MockHTTPTransaction(), fizz::test::HandshakeTest::resetTransportsAndStartCookieHandshake(), fizz::MockKeyExchange::setDefaults(), fizz::test::MockKeyScheduler::setDefaults(), fizz::test::MockAead::setDefaults(), fizz::MockPlaintextWriteRecordLayer::setDefaults(), fizz::test::MockHandshakeContext::setDefaults(), fizz::server::test::MockTicketCipher::setDefaults(), fizz::test::MockFactory::setDefaults(), fizz::test::MockCertificateDecompressor::setDefaults(), fizz::test::MockCertificateCompressor::setDefaults(), fizz::test::KeySchedulerTest::SetUp(), fizz::server::test::ServerProtocolTest::SetUp(), fizz::server::test::AsyncFizzServerTest::SetUp(), fizz::client::test::AsyncFizzClientTest::SetUp(), fizz::test::HandshakeTest::SetUp(), LRUPersistentCacheTest< MutexT >::SetUp(), MockHTTP2UpstreamTest::SetUp(), fizz::setWriteDefaults(), testing::gmock_nice_strict_test::MockBar::str(), testing::gmock_nice_strict_test::TEST(), TEST(), testing::gmock_matchers_test::TEST(), fizz::server::test::TEST_F(), fizz::test::TEST_F(), TEST_F(), fizz::client::test::TEST_F(), and TYPED_TEST().