blob: 4549c0de332149f22cdac6fac2383f4d933fc3cc [file] [log] [blame]
#include "../custom_dbus.hpp"
#include <gtest/gtest.h>
using namespace pldm::dbus;
TEST(CustomDBus, LocationCode)
{
std::string tmpPath = "/abc/def";
std::string locationCode = "testLocationCode";
CustomDBus::getCustomDBus().setLocationCode(tmpPath, locationCode);
auto retLocationCode = CustomDBus::getCustomDBus().getLocationCode(tmpPath);
EXPECT_NE(retLocationCode, std::nullopt);
EXPECT_EQ(locationCode, retLocationCode);
}