Skip to content

Commit

Permalink
[tests] Remove legacy saiattributelist.h dependency (#1608)
Browse files Browse the repository at this point in the history
This file was refactored in sairedis repo to SaiAttributeList.h proper class
  • Loading branch information
kcudnik authored Feb 8, 2021
1 parent 189a964 commit 6554b5d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/mock_tests/aclorch_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ extern sai_route_api_t *sai_route_api;
extern sai_next_hop_group_api_t* sai_next_hop_group_api;
extern string gMySwitchType;

using namespace saimeta;

namespace aclorch_test
{
using namespace std;
Expand Down
10 changes: 8 additions & 2 deletions tests/mock_tests/check.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@
#include <iostream>
#include <vector>

#include "saiattributelist.h"
#include "SaiAttributeList.h"

#include <hiredis/hiredis.h>
#include "swss/dbconnector.h"
#include "swss/logger.h"
#include "sai_serialize.h"
#include "string.h"

struct Check
{
static bool AttrListEq(sai_object_type_t objecttype, const std::vector<sai_attribute_t> &act_attr_list, SaiAttributeList &exp_attr_list)
static bool AttrListEq(sai_object_type_t objecttype, const std::vector<sai_attribute_t> &act_attr_list, saimeta::SaiAttributeList &exp_attr_list)
{
if (act_attr_list.size() != exp_attr_list.get_attr_count())
{
Expand Down

0 comments on commit 6554b5d

Please sign in to comment.