summaryrefslogtreecommitdiff
path: root/test/buildtool/build_engine/target_map/target_map.test.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-06-27 16:16:09 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-05 13:32:39 +0200
commit4ebb3bf82551c334d16f4935c751fb554224e19c (patch)
treec358d268e8704bd1b50430f4305ed713b5fb5812 /test/buildtool/build_engine/target_map/target_map.test.cpp
parent9f5dcef077a3db2f6c791e403e5036f6464c9576 (diff)
downloadjustbuild-4ebb3bf82551c334d16f4935c751fb554224e19c.tar.gz
Pass Storage to RepositoryConfig
...and adjust AnalyseContext.
Diffstat (limited to 'test/buildtool/build_engine/target_map/target_map.test.cpp')
-rw-r--r--test/buildtool/build_engine/target_map/target_map.test.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/buildtool/build_engine/target_map/target_map.test.cpp b/test/buildtool/build_engine/target_map/target_map.test.cpp
index a3e1d350..bb15a544 100644
--- a/test/buildtool/build_engine/target_map/target_map.test.cpp
+++ b/test/buildtool/build_engine/target_map/target_map.test.cpp
@@ -109,7 +109,7 @@ TEST_CASE_METHOD(HermeticLocalTestFixture, "simple targets", "[target_map]") {
RemoteExecutionConfig::RemoteAddress()};
auto serve = ServeApi::Create(*serve_config, &Storage::Instance(), &apis);
AnalyseContext ctx{.repo_config = &repo_config,
- .target_cache = &Storage::Instance().TargetCache(),
+ .storage = &Storage::Instance(),
.statistics = &stats,
.progress = &exports_progress,
.serve = serve ? &*serve : nullptr};
@@ -557,7 +557,7 @@ TEST_CASE_METHOD(HermeticLocalTestFixture,
RemoteExecutionConfig::RemoteAddress()};
auto serve = ServeApi::Create(*serve_config, &Storage::Instance(), &apis);
AnalyseContext ctx{.repo_config = &repo_config,
- .target_cache = &Storage::Instance().TargetCache(),
+ .storage = &Storage::Instance(),
.statistics = &stats,
.progress = &exports_progress,
.serve = serve ? &*serve : nullptr};
@@ -650,7 +650,7 @@ TEST_CASE_METHOD(HermeticLocalTestFixture,
RemoteExecutionConfig::RemoteAddress()};
auto serve = ServeApi::Create(*serve_config, &Storage::Instance(), &apis);
AnalyseContext ctx{.repo_config = &repo_config,
- .target_cache = &Storage::Instance().TargetCache(),
+ .storage = &Storage::Instance(),
.statistics = &stats,
.progress = &exports_progress,
.serve = serve ? &*serve : nullptr};
@@ -753,7 +753,7 @@ TEST_CASE_METHOD(HermeticLocalTestFixture, "built-in rules", "[target_map]") {
RemoteExecutionConfig::RemoteAddress()};
auto serve = ServeApi::Create(*serve_config, &Storage::Instance(), &apis);
AnalyseContext ctx{.repo_config = &repo_config,
- .target_cache = &Storage::Instance().TargetCache(),
+ .storage = &Storage::Instance(),
.statistics = &stats,
.progress = &exports_progress,
.serve = serve ? &*serve : nullptr};
@@ -966,7 +966,7 @@ TEST_CASE_METHOD(HermeticLocalTestFixture, "target reference", "[target_map]") {
RemoteExecutionConfig::RemoteAddress()};
auto serve = ServeApi::Create(*serve_config, &Storage::Instance(), &apis);
AnalyseContext ctx{.repo_config = &repo_config,
- .target_cache = &Storage::Instance().TargetCache(),
+ .storage = &Storage::Instance(),
.statistics = &stats,
.progress = &exports_progress,
.serve = serve ? &*serve : nullptr};
@@ -1112,7 +1112,7 @@ TEST_CASE_METHOD(HermeticLocalTestFixture, "trees", "[target_map]") {
RemoteExecutionConfig::RemoteAddress()};
auto serve = ServeApi::Create(*serve_config, &Storage::Instance(), &apis);
AnalyseContext ctx{.repo_config = &repo_config,
- .target_cache = &Storage::Instance().TargetCache(),
+ .storage = &Storage::Instance(),
.statistics = &stats,
.progress = &exports_progress,
.serve = serve ? &*serve : nullptr};
@@ -1224,7 +1224,7 @@ TEST_CASE_METHOD(HermeticLocalTestFixture,
RemoteExecutionConfig::RemoteAddress()};
auto serve = ServeApi::Create(*serve_config, &Storage::Instance(), &apis);
AnalyseContext ctx{.repo_config = &repo_config,
- .target_cache = &Storage::Instance().TargetCache(),
+ .storage = &Storage::Instance(),
.statistics = &stats,
.progress = &exports_progress,
.serve = serve ? &*serve : nullptr};
@@ -1393,7 +1393,7 @@ TEST_CASE_METHOD(HermeticLocalTestFixture, "wrong arguments", "[target_map]") {
RemoteExecutionConfig::RemoteAddress()};
auto serve = ServeApi::Create(*serve_config, &Storage::Instance(), &apis);
AnalyseContext ctx{.repo_config = &repo_config,
- .target_cache = &Storage::Instance().TargetCache(),
+ .storage = &Storage::Instance(),
.statistics = &stats,
.progress = &exports_progress,
.serve = serve ? &*serve : nullptr};