Skip to content

Commit

Permalink
InMemory: Fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorian Eikenberg committed Jan 2, 2024
1 parent cf631c6 commit e4e412b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions plugins/inmemoryscanner/src/lib/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <memory>
#include <set>
#include <stdexcept>
#include <vmicore/plugins/IPluginConfig.h>
#include <vmicore/plugins/PluginInterface.h>

namespace InMemoryScanner
Expand Down
16 changes: 8 additions & 8 deletions plugins/inmemoryscanner/test/Scanner_unittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,15 @@ namespace InMemoryScanner
.WillByDefault(
[&memoryRegionDescriptor = memoryRegionDescriptor]()
{
auto memoryRegions = std::make_unique<std::list<MemoryRegion>>();
auto memoryRegions = std::make_unique<std::vector<MemoryRegion>>();
memoryRegions->push_back(std::move(memoryRegionDescriptor));
return memoryRegions;
});
ON_CALL(*sharedBaseImageMemoryRegionExtractorRaw, extractAllMemoryRegions())
.WillByDefault(
[&memoryRegionDescriptorForSharedMemory = memoryRegionDescriptorForSharedMemory]()
{
auto memoryRegions = std::make_unique<std::list<MemoryRegion>>();
auto memoryRegions = std::make_unique<std::vector<MemoryRegion>>();
memoryRegions->push_back(std::move(memoryRegionDescriptorForSharedMemory));
return memoryRegions;
});
Expand Down Expand Up @@ -175,7 +175,7 @@ namespace InMemoryScanner
.WillByDefault(
[startAddress = startAddress, maxScanSize = maxScanSize]()
{
auto memoryRegions = std::make_unique<std::list<MemoryRegion>>();
auto memoryRegions = std::make_unique<std::vector<MemoryRegion>>();
memoryRegions->emplace_back(
startAddress, maxScanSize + 1, "", std::make_unique<MockPageProtection>(), false, false, false);
return memoryRegions;
Expand All @@ -192,7 +192,7 @@ namespace InMemoryScanner
.WillByDefault(
[startAddress = startAddress, size = size]()
{
auto memoryRegions = std::make_unique<std::list<MemoryRegion>>();
auto memoryRegions = std::make_unique<std::vector<MemoryRegion>>();
memoryRegions->emplace_back(
startAddress, size, "", std::make_unique<MockPageProtection>(), false, false, false);
return memoryRegions;
Expand All @@ -209,7 +209,7 @@ namespace InMemoryScanner
.WillByDefault(
[startAddress = startAddress, size = size]()
{
auto memoryRegions = std::make_unique<std::list<MemoryRegion>>();
auto memoryRegions = std::make_unique<std::vector<MemoryRegion>>();
memoryRegions->emplace_back(
startAddress, size, "", std::make_unique<MockPageProtection>(), false, false, false);
return memoryRegions;
Expand Down Expand Up @@ -244,7 +244,7 @@ namespace InMemoryScanner
.WillByDefault(
[&memoryRegionDescriptor = memoryRegionDescriptor]()
{
auto memoryRegions = std::make_unique<std::list<MemoryRegion>>();
auto memoryRegions = std::make_unique<std::vector<MemoryRegion>>();
memoryRegions->push_back(std::move(memoryRegionDescriptor));
return memoryRegions;
});
Expand Down Expand Up @@ -311,7 +311,7 @@ namespace InMemoryScanner
.WillByDefault(
[startAddress = startAddress, size = size]()
{
auto memoryRegions = std::make_unique<std::list<MemoryRegion>>();
auto memoryRegions = std::make_unique<std::vector<MemoryRegion>>();
memoryRegions->emplace_back(
startAddress, size, "", std::make_unique<MockPageProtection>(), false, false, false);

Expand Down Expand Up @@ -364,7 +364,7 @@ namespace InMemoryScanner
.WillByDefault(
[&memoryRegionDescriptor = memoryRegionDescriptor]()
{
auto memoryRegions = std::make_unique<std::list<MemoryRegion>>();
auto memoryRegions = std::make_unique<std::vector<MemoryRegion>>();
memoryRegions->push_back(std::move(memoryRegionDescriptor));

return memoryRegions;
Expand Down

0 comments on commit e4e412b

Please sign in to comment.