blob: be23924f25b3a7e2448dbdecaaecb52ed1897cc4 [file] [log] [blame]
Kamalkumar Patel14107a12024-06-19 08:50:01 -05001#include "../dbus/custom_dbus.hpp"
George Liu682ee182020-12-25 15:24:33 +08002
3#include <gtest/gtest.h>
4
5using namespace pldm::dbus;
6TEST(CustomDBus, LocationCode)
7{
8 std::string tmpPath = "/abc/def";
9 std::string locationCode = "testLocationCode";
10
11 CustomDBus::getCustomDBus().setLocationCode(tmpPath, locationCode);
12 auto retLocationCode = CustomDBus::getCustomDBus().getLocationCode(tmpPath);
13
14 EXPECT_NE(retLocationCode, std::nullopt);
15 EXPECT_EQ(locationCode, retLocationCode);
16}