From 9f5dcef077a3db2f6c791e403e5036f6464c9576 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 27 Jun 2024 13:27:06 +0200 Subject: Pass StorageConfig and Storage to LocalApi --- test/buildtool/execution_api/local/local_api.test.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/buildtool/execution_api/local/local_api.test.cpp') diff --git a/test/buildtool/execution_api/local/local_api.test.cpp b/test/buildtool/execution_api/local/local_api.test.cpp index f5680a10..fa296c9b 100644 --- a/test/buildtool/execution_api/local/local_api.test.cpp +++ b/test/buildtool/execution_api/local/local_api.test.cpp @@ -17,12 +17,17 @@ #include "catch2/catch_test_macros.hpp" #include "src/buildtool/execution_api/local/local_api.hpp" +#include "src/buildtool/storage/config.hpp" +#include "src/buildtool/storage/storage.hpp" #include "test/buildtool/execution_api/common/api_test.hpp" #include "test/utils/hermeticity/local.hpp" namespace { -auto const kApiFactory = []() { return IExecutionApi::Ptr{new LocalApi()}; }; +auto const kApiFactory = []() { + return IExecutionApi::Ptr{ + new LocalApi(&StorageConfig::Instance(), &Storage::Instance())}; +}; } // namespace -- cgit v1.2.3