Skip to content

Commit

Permalink
[vs] Use meta class instead info when using unittests (sonic-net#740)
Browse files Browse the repository at this point in the history
Signed-off-by: kcudnik <kcudnik@gmail.com>
  • Loading branch information
kcudnik authored Dec 13, 2020
1 parent a1c9b7a commit 791b761
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions meta/Meta.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ namespace saimeta
{
public:

using sairedis::SaiInterface::set; // name hidding

Meta(
_In_ std::shared_ptr<SaiInterface> impl);

Expand Down
2 changes: 1 addition & 1 deletion vslib/src/SaiUnittests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void Sai::channelOpSetReadOnlyAttribute(

sai_object_meta_key_t meta_key = { .objecttype = ot, .objectkey = { .key = { .object_id = object_id } } };

status = info->set(&meta_key, &attr);
status = m_meta->set(meta_key, &attr); // name hidden in base class (but same name overloaded in derived class)

if (status != SAI_STATUS_SUCCESS)
{
Expand Down

0 comments on commit 791b761

Please sign in to comment.