blob: be23924f25b3a7e2448dbdecaaecb52ed1897cc4 [file] [log] [blame]
#include "../dbus/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);
}