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

Unified Diff: net/spdy/fuzzing/hpack_fuzz_util_test.cc

Issue 1273743002: Add CompareSpdyHeaderBlocks() test helper method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | net/spdy/hpack/hpack_decoder_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/fuzzing/hpack_fuzz_util_test.cc
diff --git a/net/spdy/fuzzing/hpack_fuzz_util_test.cc b/net/spdy/fuzzing/hpack_fuzz_util_test.cc
index 6dace20fab0bcbf6e402ddb6f0f687e9da4b94f7..732b90d48692f66a9fe0e165baa1bbade635f2ef 100644
--- a/net/spdy/fuzzing/hpack_fuzz_util_test.cc
+++ b/net/spdy/fuzzing/hpack_fuzz_util_test.cc
@@ -15,8 +15,7 @@
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
-
-namespace {
+namespace test {
using base::StringPiece;
using std::map;
@@ -109,7 +108,8 @@ TEST(HpackFuzzUtilTest, PassValidInputThroughAllStages) {
expect[":scheme"] = "http";
expect[":path"] = "/";
expect[":authority"] = "www.example.com";
- EXPECT_EQ(expect, context.third_stage->decoded_block());
+ EXPECT_TRUE(
+ CompareSpdyHeaderBlocks(expect, context.third_stage->decoded_block()));
}
TEST(HpackFuzzUtilTest, ValidFuzzExamplesRegressionTest) {
@@ -147,6 +147,5 @@ TEST(HpackFuzzUtilTest, FlipBitsMutatesBuffer) {
EXPECT_NE(unmodified, buffer);
}
-} // namespace
-
+} // namespace test
} // namespace net
« no previous file with comments | « no previous file | net/spdy/hpack/hpack_decoder_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698