Skip to content

Commit

Permalink
Googletest export
Browse files Browse the repository at this point in the history
Update docs to point to the github.io pages.

PiperOrigin-RevId: 367711335
  • Loading branch information
Abseil Team authored and dinord committed Apr 13, 2021
1 parent ec7fa96 commit c3fc92f
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions googlemock/include/gmock/gmock-nice-strict.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,11 @@ class GTEST_INTERNAL_EMPTY_BASE_CLASS NiceMock
: private internal::NiceMockImpl<MockClass>,
public MockClass {
public:
static_assert(
!internal::HasStrictnessModifier<MockClass>(),
"Can't apply NiceMock to a class hierarchy that already has a "
"strictness modifier. See "
"https://github.com/google/googletest/blob/master/docs/"
"gmock_cook_book.md#the-nice-the-strict-and-the-naggy-nicestrictnaggy");
static_assert(!internal::HasStrictnessModifier<MockClass>(),
"Can't apply NiceMock to a class hierarchy that already has a "
"strictness modifier. See "
"https://google.github.io/googletest/"
"gmock_cook_book.html#NiceStrictNaggy");
NiceMock() : MockClass() {
static_assert(sizeof(*this) == sizeof(MockClass),
"The impl subclass shouldn't introduce any padding");
Expand Down Expand Up @@ -177,12 +176,11 @@ template <class MockClass>
class GTEST_INTERNAL_EMPTY_BASE_CLASS NaggyMock
: private internal::NaggyMockImpl<MockClass>,
public MockClass {
static_assert(
!internal::HasStrictnessModifier<MockClass>(),
"Can't apply NaggyMock to a class hierarchy that already has a "
"strictness modifier. See "
"https://github.com/google/googletest/blob/master/docs/"
"gmock_cook_book.md#the-nice-the-strict-and-the-naggy-nicestrictnaggy");
static_assert(!internal::HasStrictnessModifier<MockClass>(),
"Can't apply NaggyMock to a class hierarchy that already has a "
"strictness modifier. See "
"https://google.github.io/googletest/"
"gmock_cook_book.html#NiceStrictNaggy");

public:
NaggyMock() : MockClass() {
Expand Down Expand Up @@ -224,8 +222,8 @@ class GTEST_INTERNAL_EMPTY_BASE_CLASS StrictMock
!internal::HasStrictnessModifier<MockClass>(),
"Can't apply StrictMock to a class hierarchy that already has a "
"strictness modifier. See "
"https://github.com/google/googletest/blob/master/docs/"
"gmock_cook_book.md#the-nice-the-strict-and-the-naggy-nicestrictnaggy");
"https://google.github.io/googletest/"
"gmock_cook_book.html#NiceStrictNaggy");
StrictMock() : MockClass() {
static_assert(sizeof(*this) == sizeof(MockClass),
"The impl subclass shouldn't introduce any padding");
Expand Down

0 comments on commit c3fc92f

Please sign in to comment.