OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 // Check non-token header fails. | 577 // Check non-token header fails. |
578 CheckHeaderFails("foo()"); | 578 CheckHeaderFails("foo()"); |
579 | 579 |
580 // Check forbidden headers fail. | 580 // Check forbidden headers fail. |
581 CheckHeaderFails("accept-charset"); | 581 CheckHeaderFails("accept-charset"); |
582 CheckHeaderFails("accept-encoding"); | 582 CheckHeaderFails("accept-encoding"); |
583 CheckHeaderFails("connection"); | 583 CheckHeaderFails("connection"); |
584 CheckHeaderFails("content-length"); | 584 CheckHeaderFails("content-length"); |
585 CheckHeaderFails("cookie"); | 585 CheckHeaderFails("cookie"); |
586 CheckHeaderFails("cookie2"); | 586 CheckHeaderFails("cookie2"); |
| 587 CheckHeaderFails("content-transfer-encoding"); |
587 CheckHeaderFails("date"); | 588 CheckHeaderFails("date"); |
588 CheckHeaderFails("dnt"); | |
589 CheckHeaderFails("expect"); | 589 CheckHeaderFails("expect"); |
590 CheckHeaderFails("host"); | 590 CheckHeaderFails("host"); |
591 CheckHeaderFails("keep-alive"); | 591 CheckHeaderFails("keep-alive"); |
592 CheckHeaderFails("origin"); | 592 CheckHeaderFails("origin"); |
593 CheckHeaderFails("referer"); | 593 CheckHeaderFails("referer"); |
594 CheckHeaderFails("te"); | 594 CheckHeaderFails("te"); |
595 CheckHeaderFails("trailer"); | 595 CheckHeaderFails("trailer"); |
596 CheckHeaderFails("transfer-encoding"); | 596 CheckHeaderFails("transfer-encoding"); |
597 CheckHeaderFails("upgrade"); | 597 CheckHeaderFails("upgrade"); |
598 CheckHeaderFails("user-agent"); | 598 CheckHeaderFails("user-agent"); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 m_expectedLoader->loadAsynchronously(request, this); | 661 m_expectedLoader->loadAsynchronously(request, this); |
662 serveRequests(); | 662 serveRequests(); |
663 EXPECT_TRUE(m_didReceiveResponse); | 663 EXPECT_TRUE(m_didReceiveResponse); |
664 EXPECT_TRUE(m_didReceiveData); | 664 EXPECT_TRUE(m_didReceiveData); |
665 EXPECT_TRUE(m_didFinishLoading); | 665 EXPECT_TRUE(m_didFinishLoading); |
666 | 666 |
667 EXPECT_FALSE(m_actualResponse.httpHeaderField(headerNameString).isEmpty()); | 667 EXPECT_FALSE(m_actualResponse.httpHeaderField(headerNameString).isEmpty()); |
668 } | 668 } |
669 | 669 |
670 } | 670 } |
OLD | NEW |