#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); | |
} |