summaryrefslogtreecommitdiff
path: root/test/buildtool/execution_api/local/local_api.test.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-06-27 13:27:06 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-05 13:32:39 +0200
commit9f5dcef077a3db2f6c791e403e5036f6464c9576 (patch)
tree5e14f016207af83a8d0458a7ffe960ecba56280d /test/buildtool/execution_api/local/local_api.test.cpp
parent0d8a4ad15b93283cc31787b039051b9e9a285ba8 (diff)
downloadjustbuild-9f5dcef077a3db2f6c791e403e5036f6464c9576.tar.gz
Pass StorageConfig and Storage to LocalApi
Diffstat (limited to 'test/buildtool/execution_api/local/local_api.test.cpp')
-rw-r--r--test/buildtool/execution_api/local/local_api.test.cpp7
1 files changed, 6 insertions, 1 deletions
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