Debian Codegraph @

src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/testtools/micromock/inc/nicecallcomparer.h

raw
1 // Copyright (c) Microsoft. All rights reserved.
2 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
4 #ifndef NICECALLCOMPARER_H
5 #define NICECALLCOMPARER_H
6
7 #pragma once
8
9 #include "stdafx.h"
10 #include "strictunorderedcallcomparer.h"
11 #include "mockmethodcallbase.h"
12
13 template<class T>
14 class CNiceCallComparer :
15 public CStrictUnorderedCallComparer<T>
16 {
17 public:
18 CNiceCallComparer(_In_ AUTOMATIC_CALL_COMPARISON performAutomaticCallComparison = AUTOMATIC_CALL_COMPARISON_ON) :
19 CStrictUnorderedCallComparer<T>(performAutomaticCallComparison)
20 {
21 T::CMockCallRecorder::m_MockCallComparer->SetIgnoreUnexpectedCalls(true);
22 }
23 };
24
25 #endif // NICECALLCOMPARER_H