mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-29 11:16:30 +03:00
Jul 5th update
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
#ifndef __GET_STATUS_RES_H__
|
||||
#define __GET_STATUS_RES_H__
|
||||
|
||||
#include "i_messaging_downloader.h"
|
||||
#include "i_messaging.h"
|
||||
#include "i_mainloop.h"
|
||||
#include "i_shell_cmd.h"
|
||||
|
@@ -1,39 +0,0 @@
|
||||
// Copyright (C) 2022 Check Point Software Technologies Ltd. All rights reserved.
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#ifndef __MOCK_MESSAGING_DOWNLOADER_H__
|
||||
#define __MOCK_MESSAGING_DOWNLOADER_H__
|
||||
|
||||
#include "cptest.h"
|
||||
#include <string>
|
||||
|
||||
#include "i_messaging_downloader.h"
|
||||
|
||||
class MockMessagingDownloader
|
||||
:
|
||||
public Singleton::Provide<I_MessagingDownloader>::From<MockProvider<I_MessagingDownloader>>
|
||||
{
|
||||
public:
|
||||
MOCK_METHOD4(
|
||||
downloadFile,
|
||||
bool(
|
||||
const std::string &,
|
||||
const std::string &,
|
||||
OnCompleteCB,
|
||||
const unsigned int
|
||||
)
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
#endif // __MOCK_MESSAGING_DOWNLOADER_H__
|
@@ -26,6 +26,10 @@ class MockServiceController :
|
||||
public:
|
||||
MOCK_METHOD0(refreshPendingServices, void());
|
||||
|
||||
MOCK_METHOD0(mockMoveChangedPolicies, std::set<std::string>());
|
||||
std::set<std::string> tmp;
|
||||
std::set<std::string> && moveChangedPolicies() override { tmp = mockMoveChangedPolicies(); return std::move(tmp); }
|
||||
|
||||
MOCK_METHOD0(doesFailedServicesExist, bool());
|
||||
|
||||
MOCK_METHOD0(clearFailedServices, void());
|
||||
|
Reference in New Issue
Block a user