mirror of
https://github.com/openappsec/openappsec.git
synced 2025-10-01 20:17:43 +03:00
First release of open-appsec source code
This commit is contained in:
17
external/C-Mock/test/cmock-spec-builders_test.cc
vendored
Normal file
17
external/C-Mock/test/cmock-spec-builders_test.cc
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <cmock/cmock.h>
|
||||
|
||||
#include "math.h"
|
||||
|
||||
DECLARE_FUNCTION_MOCK2(AddFunctionMock, add, int(int, int));
|
||||
|
||||
IMPLEMENT_FUNCTION_MOCK2(AddFunctionMock, add, int(int, int));
|
||||
|
||||
TEST(SpecBuildersTest, ExpectFunctionCallCompiles) {
|
||||
AddFunctionMock mock;
|
||||
EXPECT_FUNCTION_CALL(mock, (1, 2)).Times(0);
|
||||
}
|
||||
|
||||
TEST(SpecBuildersTest, OnFunctionCallCompiles) {
|
||||
AddFunctionMock mock;
|
||||
ON_FUNCTION_CALL(mock, (1, 2));
|
||||
}
|
Reference in New Issue
Block a user