OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/websockets/websocket_handshake_handler.h" | 5 #include "net/websockets/websocket_handshake_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 #include "net/http/http_response_headers.h" | 14 #include "net/http/http_response_headers.h" |
15 #include "net/http/http_util.h" | 15 #include "net/http/http_util.h" |
16 | 16 |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 const char* const kCookieHeaders[] = { | 21 const char* const kCookieHeaders[] = { |
22 "cookie", "cookie2" | 22 "cookie", "cookie2" |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 EXPECT_DEBUG_DEATH(GetKeyNumber(), "space"); | 574 EXPECT_DEBUG_DEATH(GetKeyNumber(), "space"); |
575 } | 575 } |
576 | 576 |
577 TEST_F(WebSocketHandshakeGetKeyNumberDeathTest, MustBeIntegralMultiple) { | 577 TEST_F(WebSocketHandshakeGetKeyNumberDeathTest, MustBeIntegralMultiple) { |
578 set_key("1 1"); | 578 set_key("1 1"); |
579 EXPECT_DEBUG_DEATH(GetKeyNumber(), "spaces"); | 579 EXPECT_DEBUG_DEATH(GetKeyNumber(), "spaces"); |
580 } | 580 } |
581 #endif // GTEST_HAS_DEATH_TEST && !defined(NDEBUG) | 581 #endif // GTEST_HAS_DEATH_TEST && !defined(NDEBUG) |
582 | 582 |
583 } // namespace net | 583 } // namespace net |
OLD | NEW |