| 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 MOCK_H |
| 5 |
#define MOCK_H |
| 6 |
|
| 7 |
#pragma once |
| 8 |
|
| 9 |
#include "mockcallrecorder.h" |
| 10 |
#include "strictunorderedcallcomparer.h" |
| 11 |
|
| 12 |
#ifndef UNREFERENCED_PARAMETER |
| 13 |
#define UNREFERENCED_PARAMETER(param) param = param; |
| 14 |
#endif |
| 15 |
|
| 16 |
template<class C> |
| 17 |
class CMock : public CMockCallRecorder |
| 18 |
{ |
| 19 |
public: |
| 20 |
CMock(_In_ AUTOMATIC_CALL_COMPARISON performAutomaticCallComparison = AUTOMATIC_CALL_COMPARISON_ON) |
| 21 |
{ |
| 22 |
SetPerformAutomaticCallComparison(performAutomaticCallComparison); |
| 23 |
} |
| 24 |
}; |
| 25 |
|
| 26 |
#endif // MOCK_H |