Index: net/spdy/spdy_test_util.cc |
diff --git a/net/spdy/spdy_test_util.cc b/net/spdy/spdy_test_util.cc |
index 4d30d0cdef0315cabfd546d4c7b7b3332dea4d5c..d654d894d98a080291ae1ead77db909f28be5a16 100644 |
--- a/net/spdy/spdy_test_util.cc |
+++ b/net/spdy/spdy_test_util.cc |
@@ -8,6 +8,8 @@ |
#include "base/basictypes.h" |
#include "base/string_util.h" |
+#include "net/http/http_network_transaction.h" |
+#include "net/spdy/spdy_framer.h" |
namespace net { |
@@ -261,7 +263,8 @@ spdy::SpdyFrame* ConstructSpdyGet(const char* const url, |
spdy::SYN_STREAM, // Kind = Syn |
stream_id, // Stream ID |
0, // Associated stream ID |
- request_priority, // Priority |
+ net::ConvertRequestPriorityToSpdyPriority(request_priority), |
+ // Priority |
spdy::CONTROL_FLAG_FIN, // Control Flags |
compressed, // Compressed |
spdy::INVALID, // Status |
@@ -319,7 +322,8 @@ spdy::SpdyFrame* ConstructSpdyGet(const char* const extra_headers[], |
spdy::SYN_STREAM, // Kind = Syn |
stream_id, // Stream ID |
0, // Associated stream ID |
- request_priority, // Priority |
+ net::ConvertRequestPriorityToSpdyPriority(request_priority), |
+ // Priority |
spdy::CONTROL_FLAG_FIN, // Control Flags |
compressed, // Compressed |
spdy::INVALID, // Status |
@@ -358,7 +362,8 @@ spdy::SpdyFrame* ConstructSpdyGetSynReply(const char* const extra_headers[], |
spdy::SYN_REPLY, // Kind = SynReply |
stream_id, // Stream ID |
0, // Associated stream ID |
- SPDY_PRIORITY_LOWEST, // Priority |
+ net::ConvertRequestPriorityToSpdyPriority(LOWEST), |
+ // Priority |
spdy::CONTROL_FLAG_NONE, // Control Flags |
false, // Compressed |
spdy::INVALID, // Status |
@@ -394,7 +399,8 @@ spdy::SpdyFrame* ConstructSpdyPost(const char* const extra_headers[], |
spdy::SYN_STREAM, // Kind = Syn |
1, // Stream ID |
0, // Associated stream ID |
- SPDY_PRIORITY_LOWEST, // Priority |
+ net::ConvertRequestPriorityToSpdyPriority(LOWEST), |
+ // Priority |
spdy::CONTROL_FLAG_NONE, // Control Flags |
false, // Compressed |
spdy::INVALID, // Status |
@@ -432,7 +438,8 @@ spdy::SpdyFrame* ConstructSpdyPostSynReply(const char* const extra_headers[], |
spdy::SYN_REPLY, // Kind = SynReply |
1, // Stream ID |
0, // Associated stream ID |
- SPDY_PRIORITY_LOWEST, // Priority |
+ net::ConvertRequestPriorityToSpdyPriority(LOWEST), |
+ // Priority |
spdy::CONTROL_FLAG_NONE, // Control Flags |
false, // Compressed |
spdy::INVALID, // Status |