Index: net/der/input_unittest.cc |
diff --git a/net/der/input_unittest.cc b/net/der/input_unittest.cc |
index 12f8c86a7054245c0f49a378b606b920f209600e..63fe715c33e770fc736fb08c67c115646a20486f 100644 |
--- a/net/der/input_unittest.cc |
+++ b/net/der/input_unittest.cc |
@@ -27,6 +27,13 @@ TEST(InputTest, Equals) { |
EXPECT_FALSE(test_truncated.Equals(test)); |
} |
+TEST(InputTest, AsString) { |
+ Input input(kInput); |
+ std::string expected_string(reinterpret_cast<const char*>(kInput), |
+ arraysize(kInput)); |
+ EXPECT_EQ(expected_string, input.AsString()); |
+} |
+ |
TEST(InputTest, StaticArray) { |
Input input(kInput); |
EXPECT_EQ(arraysize(kInput), input.Length()); |