Explorar el Código

Formatting.

main
offa hace 7 años
padre
commit
7ea1aa7439
Se han modificado 1 ficheros con 8 adiciones y 7 borrados
  1. +8
    -7
      test/UniqueResourceTest.cpp

+ 8
- 7
test/UniqueResourceTest.cpp Ver fichero

@@ -38,7 +38,9 @@ namespace

struct ThrowOnCopyMock
{
ThrowOnCopyMock() { }
ThrowOnCopyMock()
{
}

ThrowOnCopyMock(const ThrowOnCopyMock&) noexcept(false)
{
@@ -47,7 +49,6 @@ namespace

ThrowOnCopyMock(ThrowOnCopyMock&&) = delete;

MAKE_CONST_MOCK1(deleter, void(ThrowOnCopyMock));

ThrowOnCopyMock& operator=(const ThrowOnCopyMock&) noexcept(false)
{
@@ -60,20 +61,20 @@ namespace

struct NotNothrowMoveMock
{
NotNothrowMoveMock(CallMock* mo) : m_mock(mo) { }
NotNothrowMoveMock(CallMock* mo) : m_mock(mo)
{
}

NotNothrowMoveMock(const NotNothrowMoveMock& other) : m_mock(other.m_mock)
{
throw std::exception{};
}

NotNothrowMoveMock(NotNothrowMoveMock&& other) noexcept(false) : m_mock(other.m_mock) { }

void operator()(Handle h) const
NotNothrowMoveMock(NotNothrowMoveMock&& other) noexcept(false) : m_mock(other.m_mock)
{
m_mock->deleter(h);
}


NotNothrowMoveMock& operator=(const NotNothrowMoveMock&)
{
throw "Not implemented";

Cargando…
Cancelar
Guardar