Use a real struct
There's no usage of these structures as a tuple, and get<0> isn't very
descriptive. Replace them with a struct.
Change-Id: I7705a14fe1486c9398fd4bbc426f3c8208060c8e
Signed-off-by: Ed Tanous <edtanous@google.com>
diff --git a/test/test_error_notification.cpp b/test/test_error_notification.cpp
index bfcf8e9..5bf72d5 100644
--- a/test/test_error_notification.cpp
+++ b/test/test_error_notification.cpp
@@ -35,11 +35,11 @@
EXPECT_EQ(ERROR_NOTIF_FIELD_COUNT, oidList.size());
// Verify the type of each field.
- EXPECT_EQ(ASN_UNSIGNED, std::get<Type>(oidList[0]));
+ EXPECT_EQ(ASN_UNSIGNED, oidList[0].type);
- EXPECT_EQ(ASN_OPAQUE_U64, std::get<Type>(oidList[1]));
- EXPECT_EQ(ASN_INTEGER, std::get<Type>(oidList[2]));
- EXPECT_EQ(ASN_OCTET_STR, std::get<Type>(oidList[3]));
+ EXPECT_EQ(ASN_OPAQUE_U64, oidList[1].type);
+ EXPECT_EQ(ASN_INTEGER, oidList[2].type);
+ EXPECT_EQ(ASN_OCTET_STR, oidList[3].type);
}
TEST_F(TestErrorNotification, GetASNType)