Skip to content

Commit

Permalink
Fixing the sairedis build issue caused at sonic-net/sonic-buildimage#…
Browse files Browse the repository at this point in the history
…21614 , Removing the undefine MOCK functions to fix the issue.

Signed-off-by: Rajesh Perumal <[email protected]>
  • Loading branch information
rpmarvell committed Feb 10, 2025
1 parent 8fe5596 commit 5785852
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions unittest/lib/MockSaiInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

#include <functional>
#include "DummySaiInterface.h"

#ifdef MOCK_METHOD
#undef MOCK_METHOD
#endif

#include <gmock/gmock.h>

class MockSaiInterface: public saimeta::DummySaiInterface
Expand All @@ -19,8 +24,6 @@ class MockSaiInterface: public saimeta::DummySaiInterface
_In_ const sai_service_method_table_t *service_method_table) override;
virtual sai_status_t apiUninitialize(void) override;
public:
MOCK_METHOD(sai_status_t, queryStatsCapability,
(sai_object_id_t switchOid, sai_object_type_t objectType, sai_stat_capability_list_t* statCapList),
(override));
MOCK_METHOD(sai_status_t, queryStatsCapability, (sai_object_id_t switchOid, sai_object_type_t objectType, sai_stat_capability_list_t* statCapList), (override));
};

0 comments on commit 5785852

Please sign in to comment.