Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[PROXY] Fix build without proxy plugin (#32419)

Egor Duplenskii8d6745ba5aed
diff --git a/src/inference/tests/functional/caching_test.cpp b/src/inference/tests/functional/caching_test.cpp
index 1e5ab296e43..d3b9e7fcad4 100644
--- a/src/inference/tests/functional/caching_test.cpp
+++ b/src/inference/tests/functional/caching_test.cpp
@@ -2960,6 +2960,7 @@ INSTANTIATE_TEST_SUITE_P(CachingTest,
getTestCaseName);
#endif // defined(ENABLE_OV_IR_FRONTEND)
+#ifdef PROXY_PLUGIN_ENABLED
class CacheTestWithProxyEnabled : public CachingTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<std::tuple<TestParam, std::string>>& obj) {
@@ -2983,7 +2984,6 @@ protected:
}
};
-#ifdef PROXY_PLUGIN_ENABLED
TEST_P(CacheTestWithProxyEnabled, TestLoad) {
ON_CALL(*mockPlugin, get_property(ov::available_devices.name(), _))
.WillByDefault(Invoke([&](const std::string&, const ov::AnyMap&) {