| 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 "ppapi/tests/test_websocket.h" | 5 #include "ppapi/tests/test_websocket.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 7 #include <stdio.h> | 8 #include <stdio.h> |
| 8 #include <string.h> | 9 #include <string.h> |
| 9 | 10 |
| 10 #include <algorithm> | 11 #include <algorithm> |
| 11 #include <memory> | 12 #include <memory> |
| 12 #include <string> | 13 #include <string> |
| 13 #include <vector> | 14 #include <vector> |
| 14 | 15 |
| 15 #include "ppapi/c/pp_bool.h" | 16 #include "ppapi/c/pp_bool.h" |
| 16 #include "ppapi/c/pp_completion_callback.h" | 17 #include "ppapi/c/pp_completion_callback.h" |
| (...skipping 1592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1609 size_t last_event = events_on_closed - 1; | 1610 size_t last_event = events_on_closed - 1; |
| 1610 for (uint32_t i = 1; i < last_event; ++i) { | 1611 for (uint32_t i = 1; i < last_event; ++i) { |
| 1611 ASSERT_EQ(WebSocketEvent::EVENT_MESSAGE, events[i].event_type); | 1612 ASSERT_EQ(WebSocketEvent::EVENT_MESSAGE, events[i].event_type); |
| 1612 ASSERT_TRUE(AreEqualWithString(events[i].var.pp_var(), message)); | 1613 ASSERT_TRUE(AreEqualWithString(events[i].var.pp_var(), message)); |
| 1613 } | 1614 } |
| 1614 ASSERT_EQ(WebSocketEvent::EVENT_CLOSE, events[last_event].event_type); | 1615 ASSERT_EQ(WebSocketEvent::EVENT_CLOSE, events[last_event].event_type); |
| 1615 ASSERT_TRUE(events[last_event].was_clean); | 1616 ASSERT_TRUE(events[last_event].was_clean); |
| 1616 | 1617 |
| 1617 PASS(); | 1618 PASS(); |
| 1618 } | 1619 } |
| OLD | NEW |