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

Unified Diff: net/spdy/spdy_network_transaction_spdy2_unittest.cc

Issue 10689034: SPDY - chunked upload - speech recognition doesn't work with SPDY/3 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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/spdy_http_stream_spdy3_unittest.cc ('k') | net/spdy/spdy_network_transaction_spdy3_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_network_transaction_spdy2_unittest.cc
===================================================================
--- net/spdy/spdy_network_transaction_spdy2_unittest.cc (revision 145922)
+++ net/spdy/spdy_network_transaction_spdy2_unittest.cc (working copy)
@@ -35,6 +35,7 @@
SPDYNOSSL,
SPDYSSL,
};
+
class SpdyNetworkTransactionSpdy2Test
: public ::testing::TestWithParam<SpdyNetworkTransactionSpdy2TestTypes> {
protected:
@@ -47,10 +48,15 @@
}
virtual void TearDown() {
+ UploadDataStream::ResetMergeChunks();
// Empty the current queue.
MessageLoop::current()->RunAllPending();
}
+ void set_merge_chunks(bool merge) {
+ UploadDataStream::set_merge_chunks(merge);
+ }
+
struct TransactionHelperResult {
int rv;
std::string status_line;
@@ -1587,7 +1593,8 @@
// Test that a chunked POST works.
TEST_P(SpdyNetworkTransactionSpdy2Test, ChunkedPost) {
- UploadDataStream::set_merge_chunks(false);
+ set_merge_chunks(false);
+
scoped_ptr<SpdyFrame> req(ConstructChunkedSpdyPost(NULL, 0));
scoped_ptr<SpdyFrame> chunk1(ConstructSpdyBodyFrame(1, false));
scoped_ptr<SpdyFrame> chunk2(ConstructSpdyBodyFrame(1, true));
« no previous file with comments | « net/spdy/spdy_http_stream_spdy3_unittest.cc ('k') | net/spdy/spdy_network_transaction_spdy3_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698