|
proxygen
|
#include "gmock/gmock.h"#include <errno.h>#include "gmock/internal/gmock-port.h"#include "gtest/gtest.h"#include <iostream>#include <vector>Go to the source code of this file.
Classes | |
| class | Interface |
| class | Mock |
| class | InvokeHelper |
| class | FieldHelper |
Functions | |
| TEST (LinkTest, TestReturnVoid) | |
| TEST (LinkTest, TestReturn) | |
| TEST (LinkTest, TestReturnNull) | |
| TEST (LinkTest, TestReturnRef) | |
| TEST (LinkTest, TestAssign) | |
| TEST (LinkTest, TestSetArgPointee) | |
| TEST (LinkTest, TestSetArrayArgument) | |
| TEST (LinkTest, TestSetErrnoAndReturn) | |
| TEST (LinkTest, TestInvoke) | |
| TEST (LinkTest, TestInvokeWithoutArgs) | |
| TEST (LinkTest, TestInvokeArgument) | |
| TEST (LinkTest, TestWithArg) | |
| TEST (LinkTest, TestWithArgs) | |
| TEST (LinkTest, TestWithoutArgs) | |
| TEST (LinkTest, TestDoAll) | |
| TEST (LinkTest, TestDoDefault) | |
| TEST (LinkTest, TestIgnoreResult) | |
| TEST (LinkTest, TestActionMacro) | |
| TEST (LinkTest, TestActionPMacro) | |
| TEST (LinkTest, TestActionP2Macro) | |
| TEST (LinkTest, TestMatcherAnything) | |
| TEST (LinkTest, TestMatcherA) | |
| TEST (LinkTest, TestMatchersEq) | |
| TEST (LinkTest, TestMatchersRelations) | |
| TEST (LinkTest, TestMatcherNotNull) | |
| TEST (LinkTest, TestMatcherIsNull) | |
| TEST (LinkTest, TestMatcherRef) | |
| TEST (LinkTest, TestMatcherTypedEq) | |
| TEST (LinkTest, TestMatchersFloatingPoint) | |
| TEST (LinkTest, TestMatcherContainsRegex) | |
| TEST (LinkTest, TestMatcherMatchesRegex) | |
| TEST (LinkTest, TestMatchersSubstrings) | |
| TEST (LinkTest, TestMatchersStringEquality) | |
| TEST (LinkTest, TestMatcherElementsAre) | |
| TEST (LinkTest, TestMatcherElementsAreArray) | |
| TEST (LinkTest, TestMatcherContainerEq) | |
| TEST (LinkTest, TestMatcherField) | |
| TEST (LinkTest, TestMatcherProperty) | |
| TEST (LinkTest, TestMatcherResultOf) | |
| TEST (LinkTest, TestMatcherPointee) | |
| TEST (LinkTest, TestMatcherTruly) | |
| TEST (LinkTest, TestMatcherAllOf) | |
| TEST (LinkTest, TestMatcherAnyOf) | |
| TEST (LinkTest, TestMatcherNot) | |
| TEST (LinkTest, TestMatcherCast) | |
| TEST | ( | LinkTest | , |
| TestReturnVoid | |||
| ) |
Definition at line 242 of file gmock_link_test.h.
References testing::_, EXPECT_CALL, testing::Return(), and Interface::VoidFromString().
| TEST | ( | LinkTest | , |
| TestReturn | |||
| ) |
Definition at line 250 of file gmock_link_test.h.
References testing::_, ch, EXPECT_CALL, testing::Return(), and Interface::StringFromString().
| TEST | ( | LinkTest | , |
| TestReturnNull | |||
| ) |
Definition at line 259 of file gmock_link_test.h.
References testing::_, EXPECT_CALL, testing::Return(), and Interface::VoidFromString().
| TEST | ( | LinkTest | , |
| TestReturnRef | |||
| ) |
Definition at line 267 of file gmock_link_test.h.
References testing::_, EXPECT_CALL, Interface::IntRefFromString(), and testing::ReturnRef().
| TEST | ( | LinkTest | , |
| TestAssign | |||
| ) |
Definition at line 276 of file gmock_link_test.h.
References testing::_, testing::Assign(), ch, EXPECT_CALL, and Interface::VoidFromString().
| TEST | ( | LinkTest | , |
| TestSetArgPointee | |||
| ) |
Definition at line 285 of file gmock_link_test.h.
References testing::_, ch, EXPECT_CALL, and Interface::VoidFromString().
| TEST | ( | LinkTest | , |
| TestSetArrayArgument | |||
| ) |
Definition at line 294 of file gmock_link_test.h.
References testing::_, ch, EXPECT_CALL, and Interface::VoidFromString().
| TEST | ( | LinkTest | , |
| TestSetErrnoAndReturn | |||
| ) |
Definition at line 307 of file gmock_link_test.h.
References testing::_, EXPECT_CALL, Interface::IntFromString(), and testing::SetErrnoAndReturn().
| TEST | ( | LinkTest | , |
| TestInvoke | |||
| ) |
Definition at line 319 of file gmock_link_test.h.
References testing::_, EXPECT_CALL, testing::Invoke(), InvokeHelper::StaticVoidFromString(), Interface::VoidFromString(), and InvokeHelper::VoidFromString().
| TEST | ( | LinkTest | , |
| TestInvokeWithoutArgs | |||
| ) |
Definition at line 331 of file gmock_link_test.h.
References testing::_, EXPECT_CALL, testing::InvokeWithoutArgs(), InvokeHelper::StaticVoidFromVoid(), Interface::VoidFromString(), and InvokeHelper::VoidFromVoid().
| TEST | ( | LinkTest | , |
| TestInvokeArgument | |||
| ) |
Definition at line 344 of file gmock_link_test.h.
References testing::_, ch, EXPECT_CALL, InvokeHelper::StaticVoidFromString(), and Interface::VoidFromFunc().
| TEST | ( | LinkTest | , |
| TestWithArg | |||
| ) |
Definition at line 353 of file gmock_link_test.h.
References testing::_, EXPECT_CALL, testing::Invoke(), InvokeHelper::StaticVoidFromString(), and Interface::VoidFromString().
| TEST | ( | LinkTest | , |
| TestWithArgs | |||
| ) |
Definition at line 362 of file gmock_link_test.h.
References testing::_, EXPECT_CALL, testing::Invoke(), InvokeHelper::StaticVoidFromString(), and Interface::VoidFromString().
| TEST | ( | LinkTest | , |
| TestWithoutArgs | |||
| ) |
Definition at line 371 of file gmock_link_test.h.
References testing::_, EXPECT_CALL, testing::Return(), Interface::VoidFromString(), and testing::WithoutArgs().
| TEST | ( | LinkTest | , |
| TestDoAll | |||
| ) |
Definition at line 379 of file gmock_link_test.h.
References testing::_, ch, testing::DoAll(), EXPECT_CALL, testing::Return(), and Interface::VoidFromString().
| TEST | ( | LinkTest | , |
| TestDoDefault | |||
| ) |
Definition at line 389 of file gmock_link_test.h.
References testing::_, ch, testing::DoDefault(), EXPECT_CALL, ON_CALL, testing::Return(), and Interface::VoidFromString().
| TEST | ( | LinkTest | , |
| TestIgnoreResult | |||
| ) |
Definition at line 399 of file gmock_link_test.h.
References testing::_, ACTION, EXPECT_CALL, EXPECT_THROW, testing::IgnoreResult(), LinkTest, testing::Return(), TEST(), and Interface::VoidFromString().
| TEST | ( | LinkTest | , |
| TestActionMacro | |||
| ) |
Definition at line 431 of file gmock_link_test.h.
References testing::_, ACTION_P, EXPECT_CALL, and Interface::IntFromString().
| TEST | ( | LinkTest | , |
| TestActionPMacro | |||
| ) |
Definition at line 443 of file gmock_link_test.h.
References testing::_, ACTION_P2, EXPECT_CALL, folly::gen::first, and Interface::IntFromString().
| TEST | ( | LinkTest | , |
| TestActionP2Macro | |||
| ) |
Definition at line 461 of file gmock_link_test.h.
References testing::_, ch, EXPECT_CALL, and Interface::IntFromString().
| TEST | ( | LinkTest | , |
| TestMatcherAnything | |||
| ) |
Definition at line 471 of file gmock_link_test.h.
References testing::_, ON_CALL, testing::Return(), and Interface::VoidFromString().
| TEST | ( | LinkTest | , |
| TestMatcherA | |||
| ) |
Definition at line 478 of file gmock_link_test.h.
References ON_CALL, testing::Return(), and Interface::VoidFromString().
| TEST | ( | LinkTest | , |
| TestMatchersEq | |||
| ) |
Definition at line 485 of file gmock_link_test.h.
References testing::Eq(), ON_CALL, testing::Return(), and Interface::VoidFromString().
| TEST | ( | LinkTest | , |
| TestMatchersRelations | |||
| ) |
Definition at line 495 of file gmock_link_test.h.
References f, testing::Ge(), testing::Gt(), testing::Le(), testing::Lt(), testing::Ne(), ON_CALL, testing::Return(), and Interface::VoidFromFloat().
| TEST | ( | LinkTest | , |
| TestMatcherNotNull | |||
| ) |
Definition at line 506 of file gmock_link_test.h.
References testing::NotNull(), ON_CALL, testing::Return(), and Interface::VoidFromString().
| TEST | ( | LinkTest | , |
| TestMatcherIsNull | |||
| ) |
Definition at line 513 of file gmock_link_test.h.
References testing::IsNull(), ON_CALL, testing::Return(), and Interface::VoidFromString().
| TEST | ( | LinkTest | , |
| TestMatcherRef | |||
| ) |
Definition at line 520 of file gmock_link_test.h.
References a, ON_CALL, testing::Ref(), testing::Return(), and Interface::VoidFromIntRef().
| TEST | ( | LinkTest | , |
| TestMatcherTypedEq | |||
| ) |
Definition at line 528 of file gmock_link_test.h.
References a, ON_CALL, testing::Return(), and Interface::VoidFromIntRef().
| TEST | ( | LinkTest | , |
| TestMatchersFloatingPoint | |||
| ) |
Definition at line 537 of file gmock_link_test.h.
References a, testing::DoubleEq(), testing::FloatEq(), testing::NanSensitiveDoubleEq(), testing::NanSensitiveFloatEq(), ON_CALL, testing::Return(), Interface::VoidFromDouble(), and Interface::VoidFromFloat().
| TEST | ( | LinkTest | , |
| TestMatcherContainsRegex | |||
| ) |
Definition at line 549 of file gmock_link_test.h.
References testing::ContainsRegex(), ON_CALL, testing::Return(), and Interface::VoidFromString().
| TEST | ( | LinkTest | , |
| TestMatcherMatchesRegex | |||
| ) |
Definition at line 556 of file gmock_link_test.h.
References testing::MatchesRegex(), ON_CALL, testing::Return(), and Interface::VoidFromString().
| TEST | ( | LinkTest | , |
| TestMatchersSubstrings | |||
| ) |
Definition at line 563 of file gmock_link_test.h.
References testing::EndsWith(), testing::HasSubstr(), ON_CALL, testing::Return(), testing::StartsWith(), and Interface::VoidFromString().
| TEST | ( | LinkTest | , |
| TestMatchersStringEquality | |||
| ) |
Definition at line 572 of file gmock_link_test.h.
References ON_CALL, testing::Return(), testing::StrCaseEq(), testing::StrCaseNe(), testing::StrEq(), testing::StrNe(), and Interface::VoidFromString().
| TEST | ( | LinkTest | , |
| TestMatcherElementsAre | |||
| ) |
Definition at line 581 of file gmock_link_test.h.
References testing::_, testing::ElementsAre(), ON_CALL, testing::Return(), and Interface::VoidFromVector().
| TEST | ( | LinkTest | , |
| TestMatcherElementsAreArray | |||
| ) |
Definition at line 588 of file gmock_link_test.h.
References testing::ElementsAreArray(), ON_CALL, testing::Return(), and Interface::VoidFromVector().
| TEST | ( | LinkTest | , |
| TestMatcherContainerEq | |||
| ) |
Definition at line 596 of file gmock_link_test.h.
References testing::ContainerEq(), ON_CALL, testing::Return(), v, and Interface::VoidFromVector().
| TEST | ( | LinkTest | , |
| TestMatcherField | |||
| ) |
Definition at line 604 of file gmock_link_test.h.
References testing::Eq(), EXPECT_TRUE, testing::Field(), FieldHelper::field_, m, and testing::internal::MatcherBase< T >::Matches().
| TEST | ( | LinkTest | , |
| TestMatcherProperty | |||
| ) |
Definition at line 615 of file gmock_link_test.h.
References testing::Eq(), EXPECT_TRUE, FieldHelper::field(), m, testing::internal::MatcherBase< T >::Matches(), and testing::Property().
| TEST | ( | LinkTest | , |
| TestMatcherResultOf | |||
| ) |
Definition at line 626 of file gmock_link_test.h.
References testing::Eq(), EXPECT_TRUE, m, testing::internal::MatcherBase< T >::Matches(), and InvokeHelper::StaticIntFromString().
| TEST | ( | LinkTest | , |
| TestMatcherPointee | |||
| ) |
Definition at line 632 of file gmock_link_test.h.
References testing::Eq(), EXPECT_TRUE, m, testing::internal::MatcherBase< T >::Matches(), and testing::Pointee().
| TEST | ( | LinkTest | , |
| TestMatcherTruly | |||
| ) |
Definition at line 640 of file gmock_link_test.h.
References EXPECT_TRUE, m, testing::internal::MatcherBase< T >::Matches(), InvokeHelper::StaticBoolFromString(), and testing::Truly().
| TEST | ( | LinkTest | , |
| TestMatcherAllOf | |||
| ) |
Definition at line 646 of file gmock_link_test.h.
References testing::_, testing::Eq(), EXPECT_TRUE, m, and testing::internal::MatcherBase< T >::Matches().
| TEST | ( | LinkTest | , |
| TestMatcherAnyOf | |||
| ) |
Definition at line 652 of file gmock_link_test.h.
References testing::_, testing::AnyOf(), testing::Eq(), EXPECT_TRUE, m, and testing::internal::MatcherBase< T >::Matches().
| TEST | ( | LinkTest | , |
| TestMatcherNot | |||
| ) |
Definition at line 658 of file gmock_link_test.h.
References testing::_, EXPECT_FALSE, m, testing::internal::MatcherBase< T >::Matches(), and testing::Not().
| TEST | ( | LinkTest | , |
| TestMatcherCast | |||
| ) |
Definition at line 664 of file gmock_link_test.h.
References testing::_, EXPECT_TRUE, m, and testing::internal::MatcherBase< T >::Matches().