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

Unified Diff: net/spdy/hpack/hpack_round_trip_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 | « net/spdy/hpack/hpack_decoder_test.cc ('k') | net/spdy/spdy_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack/hpack_round_trip_test.cc
diff --git a/net/spdy/hpack/hpack_round_trip_test.cc b/net/spdy/hpack/hpack_round_trip_test.cc
index 1dd2f6e8763586131cd6cd244ec0ee94aba992a2..606e22895363fdc0782fdf4fbd939ad935f5c226 100644
--- a/net/spdy/hpack/hpack_round_trip_test.cc
+++ b/net/spdy/hpack/hpack_round_trip_test.cc
@@ -12,9 +12,11 @@
#include "net/spdy/hpack/hpack_constants.h"
#include "net/spdy/hpack/hpack_decoder.h"
#include "net/spdy/hpack/hpack_encoder.h"
+#include "net/spdy/spdy_test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
+namespace test {
using std::map;
using std::string;
@@ -42,7 +44,7 @@ class HpackRoundTripTest : public ::testing::Test {
encoded.size());
success &= decoder_.HandleControlFrameHeadersComplete(1, nullptr);
- EXPECT_EQ(header_set, decoder_.decoded_block());
+ EXPECT_TRUE(CompareSpdyHeaderBlocks(header_set, decoder_.decoded_block()));
return success;
}
@@ -179,4 +181,5 @@ TEST_F(HpackRoundTripTest, RandomizedExamples) {
} // namespace
+} // namespace test
} // namespace net
« no previous file with comments | « net/spdy/hpack/hpack_decoder_test.cc ('k') | net/spdy/spdy_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698