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

Unified Diff: net/spdy/spdy_http_utils_unittest.cc

Issue 1357953002: Replace the existing SpdyHeaderBlock typedef with a class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include spdy_test_utils.h in tests for StringPieceProxy comparison operator. Created 5 years, 3 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/spdy/spdy_http_utils_unittest.cc
diff --git a/net/spdy/spdy_http_utils_unittest.cc b/net/spdy/spdy_http_utils_unittest.cc
index c6464aef6b401974a3ac89444104cd4a3145f226..7a94ecabd526d8e7d311837c1ec90f7fd7611c7f 100644
--- a/net/spdy/spdy_http_utils_unittest.cc
+++ b/net/spdy/spdy_http_utils_unittest.cc
@@ -7,6 +7,7 @@
#include "base/basictypes.h"
#include "net/http/http_request_info.h"
#include "net/spdy/spdy_framer.h"
+#include "net/spdy/spdy_test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
@@ -186,8 +187,8 @@ TEST(SpdyHttpUtilsTest, CreateSpdyHeadersFromHttpRequestConnectHTTP2) {
EXPECT_EQ("CONNECT", headers[":method"]);
EXPECT_TRUE(headers.end() == headers.find(":scheme"));
EXPECT_EQ("www.google.com:443", headers[":authority"]);
- EXPECT_EQ(0u, headers.count(":path"));
- EXPECT_EQ(0u, headers.count(":scheme"));
+ EXPECT_EQ(headers.end(), headers.find(":path"));
+ EXPECT_EQ(headers.end(), headers.find(":scheme"));
EXPECT_TRUE(headers.end() == headers.find(":version"));
EXPECT_EQ("Chrome/1.1", headers["user-agent"]);
}

Powered by Google App Engine
This is Rietveld 408576698