Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Unified Diff: net/der/input_unittest.cc

Issue 1125333005: RFC 2459 name comparison. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ios copy_test_data Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());
« net/cert/internal/verify_name_match.cc ('K') | « net/der/input.cc ('k') | net/der/tag.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698