| OLD | NEW | 
|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "net/spdy/spdy_network_transaction.h" | 5 #include "net/spdy/spdy_network_transaction.h" | 
| 6 | 6 | 
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" | 
| 8 #include "base/ref_counted.h" | 8 #include "base/ref_counted.h" | 
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" | 
| 10 #include "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" | 
| (...skipping 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1397   data->SetCompletionCallback(NULL); | 1397   data->SetCompletionCallback(NULL); | 
| 1398 } | 1398 } | 
| 1399 | 1399 | 
| 1400 TEST_F(SpdyNetworkTransactionTest, ServerPush) { | 1400 TEST_F(SpdyNetworkTransactionTest, ServerPush) { | 
| 1401   // Reply with the X-Associated-Content header. | 1401   // Reply with the X-Associated-Content header. | 
| 1402   static const unsigned char syn_reply[] = { | 1402   static const unsigned char syn_reply[] = { | 
| 1403     0x80, 0x01, 0x00, 0x02, | 1403     0x80, 0x01, 0x00, 0x02, | 
| 1404     0x00, 0x00, 0x00, 0x71, | 1404     0x00, 0x00, 0x00, 0x71, | 
| 1405     0x00, 0x00, 0x00, 0x01, | 1405     0x00, 0x00, 0x00, 0x01, | 
| 1406     0x00, 0x00, 0x00, 0x04, | 1406     0x00, 0x00, 0x00, 0x04, | 
| 1407     0x00, 0x14, 'X', '-', 'A', 's', 's', 'o', 'c', 'i', 'a', 't', | 1407     0x00, 0x14, 'x', '-', 'a', 's', 's', 'o', 'c', 'i', 'a', 't', | 
| 1408                 'e', 'd', '-', 'C', 'o', 'n', 't', 'e', 'n', 't', | 1408                 'e', 'd', '-', 'c', 'o', 'n', 't', 'e', 'n', 't', | 
| 1409     0x00, 0x20, '1', '?', '?', 'h', 't', 't', 'p', ':', '/', '/', 'w', 'w', | 1409     0x00, 0x20, '1', '?', '?', 'h', 't', 't', 'p', ':', '/', '/', 'w', 'w', | 
| 1410                 'w', '.', 'g', 'o', 'o', 'g', 'l', 'e', '.', 'c', 'o', 'm', | 1410                 'w', '.', 'g', 'o', 'o', 'g', 'l', 'e', '.', 'c', 'o', 'm', | 
| 1411                 '/', 'f', 'o', 'o', '.', 'd', 'a', 't', | 1411                 '/', 'f', 'o', 'o', '.', 'd', 'a', 't', | 
| 1412     0x00, 0x06, 's', 't', 'a', 't', 'u', 's', | 1412     0x00, 0x06, 's', 't', 'a', 't', 'u', 's', | 
| 1413     0x00, 0x03, '2', '0', '0', | 1413     0x00, 0x03, '2', '0', '0', | 
| 1414     0x00, 0x03, 'u', 'r', 'l', | 1414     0x00, 0x03, 'u', 'r', 'l', | 
| 1415     0x00, 0x0a, '/', 'i', 'n', 'd', 'e', 'x', '.', 'p', 'h', 'p', | 1415     0x00, 0x0a, '/', 'i', 'n', 'd', 'e', 'x', '.', 'p', 'h', 'p', | 
| 1416     0x00, 0x07, 'v', 'e', 'r', 's', 'i', 'o', 'n', | 1416     0x00, 0x07, 'v', 'e', 'r', 's', 'i', 'o', 'n', | 
| 1417     0x00, 0x08, 'H', 'T', 'T', 'P', '/', '1', '.', '1', | 1417     0x00, 0x08, 'H', 'T', 'T', 'P', '/', '1', '.', '1', | 
| 1418   }; | 1418   }; | 
| (...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2572   request.load_flags = 0; | 2572   request.load_flags = 0; | 
| 2573   scoped_refptr<DelayedSocketData> data( | 2573   scoped_refptr<DelayedSocketData> data( | 
| 2574       new DelayedSocketData(1, reads, arraysize(reads), | 2574       new DelayedSocketData(1, reads, arraysize(reads), | 
| 2575                             writes, arraysize(writes))); | 2575                             writes, arraysize(writes))); | 
| 2576   TransactionHelperResult out = TransactionHelper(request, data.get(), | 2576   TransactionHelperResult out = TransactionHelper(request, data.get(), | 
| 2577                                                   BoundNetLog()); | 2577                                                   BoundNetLog()); | 
| 2578   EXPECT_EQ(ERR_CONNECTION_CLOSED, out.rv); | 2578   EXPECT_EQ(ERR_CONNECTION_CLOSED, out.rv); | 
| 2579 } | 2579 } | 
| 2580 | 2580 | 
| 2581 }  // namespace net | 2581 }  // namespace net | 
| OLD | NEW | 
|---|