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

Unified Diff: net/spdy/spdy_test_utils.h

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 | « net/spdy/hpack/hpack_round_trip_test.cc ('k') | net/spdy/spdy_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_test_utils.h
diff --git a/net/spdy/spdy_test_utils.h b/net/spdy/spdy_test_utils.h
index 14bc8efbb4cf138d6085f74270b55d3e447dc292..ee3d6582fb86c0318abd2042098d180f0971bdc2 100644
--- a/net/spdy/spdy_test_utils.h
+++ b/net/spdy/spdy_test_utils.h
@@ -36,6 +36,11 @@ void SetFrameLength(SpdyFrame* frame,
size_t length,
SpdyMajorVersion spdy_version);
+// Returns true if |a| and |b| are the same size, and contain the same
+// entries in the same positions.
+bool CompareSpdyHeaderBlocks(const SpdyHeaderBlock& a,
+ const SpdyHeaderBlock& b);
+
std::string a2b_hex(const char* hex_data);
// Returns a SHA1 HashValue in which each byte has the value |label|.
@@ -52,7 +57,6 @@ void AddPin(TransportSecurityState* state,
uint8_t backup_label);
} // namespace test
-
} // namespace net
#endif // NET_SPDY_TEST_UTILS_H_
« no previous file with comments | « net/spdy/hpack/hpack_round_trip_test.cc ('k') | net/spdy/spdy_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698