| Sunny Srivastava | fa5e4d3 | 2023-03-12 11:59:49 -0500 | [diff] [blame] | 1 | #include <utility/vpd_specific_utility.hpp> | 
|  | 2 |  | 
|  | 3 | #include <cassert> | 
|  | 4 | #include <string> | 
|  | 5 |  | 
|  | 6 | #include <gtest/gtest.h> | 
|  | 7 |  | 
|  | 8 | using namespace vpd; | 
|  | 9 |  | 
|  | 10 | TEST(UtilsTest, TestValidValue) | 
|  | 11 | { | 
|  | 12 | std::string key = "VINI"; | 
|  | 13 | std::string encoding = "MAC"; | 
|  | 14 | std::string expected = "56:49:4e:49"; | 
|  | 15 | EXPECT_EQ(expected, vpdSpecificUtility::encodeKeyword(key, encoding)); | 
|  | 16 | } | 
|  | 17 |  | 
|  | 18 | int main(int argc, char** argv) | 
|  | 19 | { | 
|  | 20 | ::testing::InitGoogleTest(&argc, argv); | 
|  | 21 |  | 
|  | 22 | return RUN_ALL_TESTS(); | 
|  | 23 | } |